/*
Theme Name: Pun Gents
Theme URI: https://pungents.com/
Author: Pun Gents
Description: Custom child theme of GeneratePress for pungents.com — a warm editorial redesign for the daily-puns blog. Implements the approved redesign mockup: masthead with wordmark and tagline, featured Pun of the Day hero card, pun-card feed, ranked sidebar styling, and a quiet footer.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: generatepress
Text Domain: pun-gents
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400;1,500;1,600&display=swap');

/* ============================================================
   PUN GENTS — design tokens
   ============================================================ */
:root {
	--pg-paper: #fbfaf6;   /* warm paper */
	--pg-ink: #17201f;     /* ink */
	--pg-mist: #eef1ed;    /* mist */
	--pg-amber: #e7aa24;   /* amber */
	--pg-cyan: #2997a4;    /* cyan */
	--pg-clay: #c98255;    /* clay */
	--pg-red: #c94c43;     /* red */
	--pg-leaf: #3f8c63;    /* leaf */
	--pg-muted: #5d6663;
	--pg-line: rgba(23, 32, 31, 0.14);
	--pg-serif: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
	--pg-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--pg-card-shadow: 0 10px 26px -18px rgba(23, 32, 31, 0.4);
}

/* ============================================================
   Base
   ============================================================ */
body {
	background-color: var(--pg-paper);
	color: var(--pg-ink);
	font-family: var(--pg-sans);
	font-size: 1rem;
	line-height: 1.65;
}

a {
	color: var(--pg-cyan);
}

a:hover,
a:focus {
	color: var(--pg-ink);
}

/* Punchlines were historically bolded with inline <strong> tags inside
   post content (used ONLY for punchlines — nothing else). The site owner
   asked for the bolding to be removed. CSS-only, scoped to post content,
   so it applies to all 5,500+ existing posts and every future one without
   touching the database. WP-PostRatings emits its own <strong> for vote
   counts OUTSIDE .entry-content/.entry-summary, so it is unaffected. */
.entry-content strong,
.entry-summary strong {
	font-weight: normal;
}

/* ============================================================
   Masthead
   ============================================================ */
.site-header {
	background-color: var(--pg-paper);
	border-top: 6px solid var(--pg-amber);
}

.inside-header {
	padding: 2.75rem 1.5rem 1.25rem;
	text-align: center;
}

.site-branding {
	text-align: center;
}

.main-title {
	font-family: var(--pg-serif);
	font-size: clamp(3rem, 9vw, 5.25rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1;
	margin: 0;
}

.main-title a {
	color: var(--pg-ink);
	text-decoration: none;
}

.main-title a:hover {
	color: var(--pg-ink);
}

.site-description {
	color: var(--pg-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	margin: 0.9rem 0 0;
	text-transform: uppercase;
}

/* Primary navigation — centered, editorial rule lines */
.main-navigation {
	background: transparent;
}

.main-navigation .inside-navigation {
	display: block;
	text-align: center;
	border-top: 1px solid var(--pg-line);
	border-bottom: 3px double var(--pg-line);
	margin-top: 1.5rem;
	padding: 0.15rem 0;
}

.main-navigation ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 2rem;
	list-style: none;
	margin: 0;
	padding: 0.55rem 1rem;
}

.main-navigation a {
	color: var(--pg-ink);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	border-bottom-color: var(--pg-amber);
	color: var(--pg-ink);
}

/* ============================================================
   Hero — featured Pun of the Day
   ============================================================ */
.pg-hero {
	background: #fff;
	border: 1px solid var(--pg-line);
	border-top: 5px solid var(--pg-amber);
	border-radius: 12px;
	box-shadow: var(--pg-card-shadow);
	margin: 0 0 2.75rem;
	padding: clamp(1.75rem, 4vw, 3.25rem);
	text-align: center;
}

.pg-eyebrow {
	color: var(--pg-clay);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.pg-eyebrow a {
	color: var(--pg-clay);
	text-decoration: none;
}

.pg-hero-pun {
	font-family: var(--pg-serif);
	font-size: clamp(1.55rem, 3.4vw, 2.5rem);
	line-height: 1.4;
	margin: 0 auto;
	max-width: 44rem;
}

.pg-hero-pun p:first-child {
	margin-top: 0;
}

.pg-hero-pun p:last-child {
	margin-bottom: 0;
}

.pg-hero-meta {
	color: var(--pg-muted);
	font-size: 0.82rem;
	margin: 1.25rem 0 0;
}

.pg-hero-meta a {
	color: var(--pg-muted);
}

/* ============================================================
   Pun cards (blog home, archives, search)
   ============================================================ */
.blog .inside-article,
.archive .inside-article,
.search .inside-article {
	background: #fff;
	border: 1px solid var(--pg-line);
	border-radius: 10px;
	box-shadow: var(--pg-card-shadow);
	margin-bottom: 2rem;
	padding: clamp(1.4rem, 3vw, 2.25rem);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog .inside-article:hover,
.archive .inside-article:hover,
.search .inside-article:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -18px rgba(23, 32, 31, 0.45);
}

.pg-card .entry-title {
	font-family: var(--pg-serif);
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.6rem;
}

.pg-card .entry-title a {
	color: var(--pg-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--pg-amber), var(--pg-amber));
	background-size: 0% 3px;
	background-repeat: no-repeat;
	background-position: left 96%;
	transition: background-size 0.2s ease;
}

.pg-card .entry-title a:hover {
	background-size: 100% 3px;
	color: var(--pg-ink);
}

.pg-card-meta {
	color: var(--pg-muted);
	font-size: 0.82rem;
	margin: 0 0 1rem;
}

.pg-card-meta a {
	color: var(--pg-muted);
}

.pg-meta-sep {
	margin: 0 0.45em;
}

.pg-card .entry-content,
.pg-card .entry-summary {
	font-size: 1.02rem;
}

.pg-card .entry-content p:first-child,
.pg-card .entry-summary p:first-child {
	margin-top: 0;
}

.pg-card-footer {
	margin-top: 1.1rem;
}

/* WP-PostRatings widget output — sits in a mist-tinted strip */
.post-ratings {
	background: var(--pg-mist);
	border-radius: 6px;
	font-size: 0.85rem;
	margin-top: 1.25rem;
	padding: 0.65rem 1rem;
}

.post-ratings img {
	vertical-align: middle;
}

/* ============================================================
   Single post article
   ============================================================ */
.single-post .inside-article,
.single .inside-article {
	background: #fff;
	border: 1px solid var(--pg-line);
	border-radius: 10px;
	box-shadow: var(--pg-card-shadow);
	padding: clamp(1.6rem, 4vw, 3rem);
}

.pg-single .entry-title {
	font-family: var(--pg-serif);
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.pg-single .entry-title a {
	color: var(--pg-ink);
	text-decoration: none;
}

.pg-single-meta {
	color: var(--pg-muted);
	font-size: 0.85rem;
	margin: 0 0 1.5rem;
}

.pg-single-meta a {
	color: var(--pg-muted);
}

.pg-single .entry-content {
	font-size: 1.06rem;
	line-height: 1.75;
	max-width: 46rem;
}

.pg-tags {
	color: var(--pg-muted);
	font-size: 0.85rem;
	margin-top: 1.75rem;
}

.pg-tags a {
	color: var(--pg-clay);
}

/* Small edit link (preserved from the old child theme) */
.pg-edit-link,
.edit-link {
	font-size: 12px;
}

.pg-edit-link a {
	color: var(--pg-muted);
	text-decoration: none;
}

.pg-edit-link a:hover {
	color: var(--pg-ink);
	text-decoration: underline;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar .widget {
	margin-bottom: 2.25rem;
}

.sidebar .widget-title {
	border-bottom: 2px solid var(--pg-amber);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	margin: 0 0 1rem;
	padding-bottom: 0.55rem;
	text-transform: uppercase;
}

.sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar .widget ul li {
	border-bottom: 1px dotted var(--pg-line);
	padding: 0.45rem 0;
}

.sidebar .widget ul li:last-child {
	border-bottom: 0;
}

.sidebar .widget a {
	color: var(--pg-ink);
	text-decoration: none;
}

.sidebar .widget a:hover {
	color: var(--pg-cyan);
}

/* Ranked "Best Puns" list: if the WP-PostRatings highest/most-rated
   widget is placed in the sidebar, number its items editorially. */
.sidebar .widget ul.pg-ranked {
	counter-reset: pg-rank;
}

.sidebar .widget ul.pg-ranked > li {
	counter-increment: pg-rank;
	padding-left: 2.5rem;
	position: relative;
}

.sidebar .widget ul.pg-ranked > li::before {
	content: counter(pg-rank, decimal-leading-zero);
	color: var(--pg-amber);
	font-family: var(--pg-serif);
	font-size: 1.25rem;
	font-weight: 700;
	left: 0;
	position: absolute;
	top: 0.35rem;
}

/* ============================================================
   Pagination (below content, as before)
   ============================================================ */
.paging-navigation {
	margin: 2.5rem 0 1rem;
	text-align: center;
}

.paging-navigation .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.paging-navigation .page-numbers {
	border: 1px solid var(--pg-line);
	border-radius: 5px;
	color: var(--pg-ink);
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	min-width: 2.5rem;
	padding: 0.45rem 0.7rem;
	text-decoration: none;
	background: #fff;
}

.paging-navigation a.page-numbers:hover {
	border-color: var(--pg-amber);
	color: var(--pg-ink);
}

.paging-navigation .page-numbers.current {
	background: var(--pg-ink);
	border-color: var(--pg-ink);
	color: var(--pg-paper);
}

/* ============================================================
   Comments
   ============================================================ */
.comments-area {
	margin-top: 2.5rem;
}

.comments-area .comments-title {
	font-family: var(--pg-serif);
	font-size: 1.4rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	border-top: 1px solid var(--pg-line);
	padding: 1.25rem 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	background: var(--pg-ink);
	color: var(--pg-paper);
	margin-top: 3.5rem;
}

.site-footer .footer-widgets {
	border-bottom: 1px solid rgba(251, 250, 246, 0.15);
}

.site-info {
	font-size: 0.85rem;
	padding: 1.75rem 1rem;
	text-align: center;
}

.site-info a {
	color: var(--pg-amber);
	text-decoration: none;
}

.site-info a:hover {
	color: var(--pg-paper);
	text-decoration: underline;
}

/* ============================================================
   Search results title / archive headers
   ============================================================ */
.page-header {
	margin-bottom: 2rem;
	text-align: center;
}

.page-header .page-title {
	font-family: var(--pg-serif);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0;
}

.page-header .taxonomy-description p {
	color: var(--pg-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
	.inside-header {
		padding: 2rem 1rem 1rem;
	}

	.main-navigation ul {
		gap: 0.25rem 1.1rem;
	}

	.pg-hero {
		margin-bottom: 2rem;
	}

	.blog .inside-article,
	.archive .inside-article,
	.search .inside-article {
		margin-bottom: 1.5rem;
	}

	/* Sidebar stacks below content via GeneratePress; tighten spacing */
	.sidebar .widget {
		margin-bottom: 1.75rem;
	}
}

/* ============================================================
   PG redesign refinements — mockup alignment
   ============================================================ */

/* Masthead eyebrow, as in the approved mockup. */
.site-branding::before {
	content: "Freshly groaned every day";
	display: block;
	color: var(--pg-ink);
	font-family: var(--pg-sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

/* Tagline — italic serif, as in the approved mockup. */
.site-description {
	font-family: var(--pg-serif);
	font-size: 1.12rem;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}

/* Primary navigation — lock in readable ink text with a distinct hover state. */
.main-navigation .main-nav ul li a {
	color: var(--pg-ink);
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
	color: var(--pg-red);
	border-bottom-color: var(--pg-amber);
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
	color: var(--pg-ink);
	border-bottom-color: var(--pg-amber);
}
/* ============================================================
   PG redesign refinements II - homepage layout (mockup alignment)
   Scoped to body.blog so single posts and archives are unaffected.
   ============================================================ */

/* ---------- Ranked pun-card feed ---------- */
body.blog .site-main {
	counter-reset: pg-feed;
}

body.blog .site-main > article.pg-card {
	counter-increment: pg-feed;
	display: grid;
	grid-template-columns: 108px 1fr;
	background: #f8f4ea;
	border: 1px solid var(--pg-line);
	border-radius: 12px;
	box-shadow: var(--pg-card-shadow);
	margin-bottom: 2.5rem;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.blog .site-main > article.pg-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -18px rgba(23, 32, 31, 0.45);
}

body.blog .site-main > article.pg-card::before {
	content: counter(pg-feed, decimal-leading-zero);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 1.75rem;
	background: #fff;
	border-right: 1px solid var(--pg-line);
	color: var(--pg-red);
	font-family: var(--pg-serif);
	font-style: italic;
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1;
}

body.blog .pg-card .inside-article {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"pun pun"
		"ratings meta";
	align-items: end;
	column-gap: 1.5rem;
}

body.blog .pg-card .inside-article:hover {
	transform: none;
	box-shadow: none;
}

body.blog .pg-card .pg-eyebrow,
body.blog .pg-card .entry-header,
body.blog .pg-card .pg-card-footer {
	display: none;
}

body.blog .pg-card .entry-content {
	grid-area: pun;
	font-family: var(--pg-serif);
	font-weight: 700;
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	line-height: 1.45;
	color: var(--pg-ink);
}

body.blog .pg-card .entry-content p {
	margin: 0 0 0.75rem;
}

body.blog .pg-card .entry-content p:last-child {
	margin-bottom: 0;
}

body.blog .pg-card .wp-postratings {
	grid-area: ratings;
	border-top: 1px solid var(--pg-line);
	margin-top: 1.4rem;
	padding-top: 1rem;
}

body.blog .pg-card footer.entry-meta {
	grid-area: meta;
	border-top: 1px solid var(--pg-line);
	margin-top: 1.4rem;
	padding-top: 1rem;
	text-align: right;
	font-size: 0.8rem;
}

body.blog .pg-card footer.entry-meta .tags-links,
body.blog .pg-card footer.entry-meta .comments-link {
	display: none;
}

body.blog .pg-card footer.entry-meta .cat-links a {
	color: var(--pg-cyan);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.blog .pg-card footer.entry-meta .cat-links a:hover {
	color: var(--pg-ink);
}

/* ---------- Featured hero card ---------- */
/* pg-hero-colours-mockup: colours matched to the approved redesign mockup -
   dark green card, cream type, gold accents. Rank panel removed; single full-width panel. */
body.blog .pg-hero {
	display: grid;
	grid-template-columns: 1fr;
	padding: 0;
	text-align: left;
	overflow: hidden;
	background: #1c2b27;
	border: 1px solid rgba(250, 247, 238, 0.22);
	border-top: 5px solid var(--pg-amber);
	box-shadow: 10px 10px 0 0 #d9a23b, var(--pg-card-shadow);
	margin-bottom: 3rem;
}


body.blog .pg-hero-body {
	padding: clamp(1.75rem, 4vw, 3rem);
	min-width: 0;
}

body.blog .pg-hero .pg-eyebrow {
	color: #ffffff;
	margin-bottom: 1.25rem;
}

body.blog .pg-hero .pg-eyebrow a {
	color: #ffffff;
}

body.blog .pg-hero .pg-eyebrow::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	background: var(--pg-amber);
	margin-top: 0.55rem;
}

body.blog .pg-hero-pun {
	color: #faf7ee;
	font-weight: 700;
	font-size: clamp(1.4rem, 3vw, 2.1rem);
	line-height: 1.4;
	margin: 0;
	max-width: none;
	text-align: left;
}

body.blog .pg-hero-pun a {
	color: #faf7ee;
}

body.blog .pg-hero-groans {
	color: #acbfb9;
	font-style: italic;
	margin: 1.1rem 0 0;
}

body.blog .pg-hero .wp-postratings {
	--wp-postratings-color-on: #e7aa24;
	color: #acbfb9;
	margin-top: 1rem;
}

body.blog .pg-hero-cats {
	margin: 1rem 0 0;
}

body.blog .pg-hero-cats a {
	color: #8fbdb9;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.blog .pg-hero-cats a:hover {
	color: #faf7ee;
}

body.blog .pg-hero-meta {
	display: block;
	color: #acbfb9;
	margin: 1.1rem 0 0;
}

body.blog .pg-hero-meta a {
	color: #faf7ee;
}
/* ---------- Homepage sidebars ---------- */
body.blog .sidebar .widget {
	background: #fff;
	border: 1px solid var(--pg-line);
	border-radius: 10px;
	box-shadow: var(--pg-card-shadow);
	padding: 1.4rem;
}

body.blog .sidebar .widget > h2 {
	font-family: var(--pg-serif);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	border-bottom: 2px solid var(--pg-amber);
	margin: 0 0 1rem;
	padding-bottom: 0.55rem;
}

body.blog .sidebar .widget_tag_cloud .tagcloud {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

body.blog .sidebar .widget_tag_cloud .tagcloud a {
	font-size: 0.82rem !important;
	font-weight: 600;
	color: var(--pg-ink);
	text-decoration: none;
	border-bottom: 1px dotted var(--pg-line);
	padding: 0.5rem 0.25rem;
	line-height: 1.35;
}

body.blog .sidebar .widget_tag_cloud .tagcloud a:hover {
	color: var(--pg-cyan);
}

body.blog .sidebar .widget:not(.widget_tag_cloud) {
	counter-reset: pg-best;
}

body.blog .sidebar .widget:not(.widget_tag_cloud) a {
	counter-increment: pg-best;
	display: block;
	position: relative;
	padding-left: 2.4rem;
	margin-bottom: 0.2rem;
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.35;
}

body.blog .sidebar .widget:not(.widget_tag_cloud) a::before {
	content: counter(pg-best, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -0.1rem;
	color: var(--pg-red);
	font-family: var(--pg-serif);
	font-style: italic;
	font-weight: 700;
	font-size: 1.25rem;
}

body.blog .sidebar .widget:not(.widget_tag_cloud) img {
	margin: 0 0 0.9rem 2.4rem;
	vertical-align: middle;
	max-width: calc(100% - 2.4rem);
	height: auto;
}

body.blog .sidebar .widget_archive select {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--pg-line);
	border-radius: 6px;
	background-color: #fff;
	font-family: var(--pg-sans);
	font-size: 0.9rem;
	color: var(--pg-ink);
}

/* ---------- Homepage responsive ---------- */
@media (max-width: 700px) {
	body.blog .site-main > article.pg-card {
		grid-template-columns: 62px 1fr;
		margin-bottom: 1.75rem;
	}

	body.blog .site-main > article.pg-card::before {
		font-size: 1.5rem;
		padding-top: 1.3rem;
	}

	body.blog .pg-card .inside-article {
		grid-template-columns: 1fr;
		grid-template-areas:
			"pun"
			"ratings"
			"meta";
		padding: 1.25rem;
	}

	body.blog .pg-card footer.entry-meta {
		text-align: left;
		border-top: 0;
		margin-top: 0.75rem;
		padding-top: 0;
	}

	body.blog .pg-hero {
		grid-template-columns: 1fr;
		margin-bottom: 2rem;
	}


	body.blog .pg-hero-body {
		padding: 1.5rem;
	}
}

/* ============================================================
   PG design updates - 2026-09-25 [PG-DESIGN-UPDATES-2026-09-25]
   1. Dark green header  2. Dark green footer  3. Card hover states
   4. Newsletter signup card + "Random pun" nav button
   ============================================================ */

/* ---------- 1. Dark green header (masthead) ---------- */
/* .main-navigation sits directly under .site-header as part of the
   masthead, so both get the dark green background. Scoped to the
   masthead only - the hero card (.pg-hero) is intentionally untouched. */
.site-header {
	background: #1C2B27;
	border-top: 5px solid #D9A23B;
}

.main-navigation {
	background: #1C2B27;
}

.site-header .main-title a {
	color: #FAF7EE;
}

.site-header .main-title a:hover,
.site-header .main-title a:focus {
	color: #FAF7EE;
}

/* Eyebrow "Freshly groaned every day" (rendered via .site-branding::before). */
.site-header .site-branding::before {
	color: #D9A23B;
}

/* Tagline. */
.site-header .site-description {
	color: #ACBFB9;
	font-style: italic;
}

/* Primary navigation. */
.main-navigation .main-nav ul li a {
	color: #FAF7EE;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
	color: #D9A23B;
	border-bottom-color: #D9A23B;
}

.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
	color: #FAF7EE;
	border-bottom-color: #D9A23B;
}

/* Keep the editorial rule lines visible on the dark background. */
.main-navigation .inside-navigation {
	border-top-color: rgba(250, 247, 238, 0.22);
	border-bottom-color: rgba(250, 247, 238, 0.22);
}

/* Desktop dropdown sub-menus match the dark masthead. */
.main-navigation .main-nav ul ul {
	background: #1C2B27;
}

/* Mobile hamburger stays visible/tappable on the dark background. */
.main-navigation .menu-toggle {
	color: #FAF7EE;
}

.main-navigation .menu-toggle .gp-icon svg {
	fill: #FAF7EE;
}

/* ---------- 2. Dark green footer ---------- */
.site-footer,
.site-info {
	background: #1C2B27;
	color: #ACBFB9;
}

.site-footer .widget-title,
.site-footer h2 {
	color: #FAF7EE;
}

.site-footer a,
.site-info a {
	color: #ACBFB9;
}

.site-footer a:hover,
.site-footer a:focus,
.site-info a:hover,
.site-info a:focus {
	color: #D9A23B;
}

/* Gold divider above the copyright line. */
.site-footer .footer-widgets {
	border-bottom-color: rgba(217, 162, 59, 0.4);
}

.inside-site-info {
	border-top: 1px solid rgba(217, 162, 59, 0.4);
}

.copyright-bar {
	color: #ACBFB9;
}

/* ---------- 3. Card hover states (blog feed) ---------- */
body.blog .site-main > article.pg-card {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.blog .site-main > article.pg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(28, 43, 39, 0.14);
}

/* ---------- 4a. Newsletter signup card (sidebar) ---------- */
.sidebar .pg-signup {
	background: #D9A23B;
	border-radius: 10px;
	color: #1C2B27;
	padding: 1.4rem 1.3rem;
}

/* On the blog home the sidebar widgets are white cards - let the gold
   card fill the whole widget box instead. */
body.blog .sidebar .widget:has(.pg-signup) {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.sidebar .pg-signup h3 {
	color: #1C2B27;
	font-family: var(--pg-serif);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.sidebar .pg-signup p {
	color: #1C2B27;
	font-size: 0.92rem;
	margin: 0 0 1rem;
}

.sidebar .pg-signup-form input[type="email"] {
	background: #fff;
	border: 1px solid rgba(28, 43, 39, 0.25);
	border-radius: 6px;
	box-sizing: border-box;
	color: #1C2B27;
	font-size: 0.95rem;
	margin-bottom: 0.6rem;
	padding: 0.65rem 0.8rem;
	width: 100%;
}

.sidebar .pg-signup-form button {
	background: #1C2B27;
	border: 0;
	border-radius: 6px;
	color: #FAF7EE;
	cursor: pointer;
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.7rem 1rem;
	text-transform: uppercase;
	width: 100%;
}

.sidebar .pg-signup-form button:hover,
.sidebar .pg-signup-form button:focus {
	background: #0f1a17;
}

/* ---------- 4c. "Random pun" nav button ---------- */
.main-navigation .main-nav ul li a.pg-random-btn {
	background: #D9A23B;
	border-bottom: 0;
	border-radius: 999px;
	color: #1C2B27;
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	line-height: 1;
	padding: 0.55rem 1.15rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.main-navigation .main-nav ul li a.pg-random-btn:hover,
.main-navigation .main-nav ul li a.pg-random-btn:focus {
	background: #FAF7EE;
	border-bottom: 0;
	color: #1C2B27;
}

/* ============================================================
   PG MailerLite signup card overrides (2026-09-25)
   Styles the MailerLite embedded form (#mlb2-46366598) to match
   the gold "A daily dose of groans" sidebar card.
   [PG-MAILERTITE-OVERRIDES]
   ============================================================ */
#mlb2-46366598.ml-form-embedContainer .ml-form-embedWrapper {
	background: transparent;
	border: none;
	width: 100% !important;
	max-width: 100%;
	padding: 0;
}
#mlb2-46366598 .ml-form-embedBody,
#mlb2-46366598 .ml-form-successBody {
	padding: 0 !important;
}
#mlb2-46366598 .ml-form-embedContent {
	display: none;
}
#mlb2-46366598 input[type="email"].form-control {
	width: 100%;
	background: #ffffff;
	color: #1C2B27;
	border-radius: 6px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid rgba(28, 43, 39, 0.25);
	font-family: inherit;
	font-size: 1rem;
}
#mlb2-46366598 .ml-form-embedSubmit button.primary {
	background: #1C2B27 !important;
	color: #FAF7EE !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 999px;
	width: 100%;
	padding: 12px;
	border: none;
	cursor: pointer;
	font-weight: 700;
}
#mlb2-46366598 .ml-form-embedSubmit button.primary:hover {
	background: #2A3E39 !important;
}
#mlb2-46366598 .ml-form-successContent h4,
#mlb2-46366598 .ml-form-successContent p {
	color: #1C2B27;
}

/* ============================================================
   PG responsive hardening (2026-09-25)
   1. Popular Topics tag cloud: let long unbroken words wrap
      instead of overflowing narrow screens.
   2. Hero offset shadow: shrink the decorative offset gold shadow
      on small screens so it cannot cause horizontal overflow.
   [PG-RESPONSIVE-HARDENING]
   ============================================================ */
.sidebar .widget_tag_cloud .tagcloud a {
	overflow-wrap: break-word;
	word-break: break-word;
	max-width: 100%;
}
@media (max-width: 700px) {
	body.blog .pg-hero {
		box-shadow: 4px 4px 0 0 #d9a23b, var(--pg-card-shadow);
	}
}