/* Parish Newsletters. Colours follow the theme accent (Salient's --nectar-accent-color), fonts are inherited. */
.pnl {
	--pnl-accent: var(--nectar-accent-color, #600000);
	--pnl-paper: #f6f3ee;
	--pnl-line: rgba(0, 0, 0, 0.09);
}

/* ---------- shared bits ---------- */
.pnl .pnl-thumb-wrap {
	position: absolute;
	inset: 0;
	display: block;
}
.pnl .pnl-thumb-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	margin: 0;
	border-radius: 0;
}
.pnl .pnl-thumb-fallback {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--pnl-accent);
}
.pnl .pnl-noimg img {
	display: none;
}
.pnl .pnl-noimg .pnl-thumb-fallback {
	display: flex;
}
.pnl .pnl-badge {
	display: inline-block;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pnl-accent);
}
.pnl .pnl-date {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0.7;
}
.pnl .pnl-more {
	margin: 18px 0 0;
	padding: 0;
	text-align: center;
}
.pnl .pnl-more a {
	color: var(--pnl-accent);
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.pnl .pnl-more a:hover {
	text-decoration: underline;
}
.pnl .pnl-empty {
	margin: 0;
}
.pnl .pnl-admin-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #a00;
}

/* ---------- archive ---------- */
.pnl ul.pnl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 28px 22px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.pnl ul.pnl-grid > li.pnl-card {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pnl ul.pnl-grid > li.pnl-card::before,
.pnl ul.pnl-grid > li.pnl-card::marker {
	content: none;
}
.pnl ul.pnl-grid > li.pnl-hidden {
	display: none;
}
.pnl .pnl-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}
.pnl .pnl-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.414;
	overflow: hidden;
	border: 1px solid var(--pnl-line);
	border-radius: 8px;
	background: var(--pnl-paper);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pnl .pnl-card a:hover .pnl-card-thumb,
.pnl .pnl-card a:focus-visible .pnl-card-thumb {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.pnl .pnl-badge-onthumb {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 6px 9px;
	border-radius: 200px;
	background: var(--pnl-accent);
	color: #fff;
}
.pnl .pnl-card-title {
	display: block;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pnl-accent);
}
.pnl .pnl-card a:hover .pnl-card-title {
	text-decoration: underline;
}
.pnl .pnl-card .pnl-date {
	margin-top: 3px;
}
.pnl .pnl-show-all {
	background: transparent;
	color: var(--pnl-accent);
}
.pnl .pnl-show-all:hover {
	background: var(--pnl-accent);
	color: #fff;
}
@media (max-width: 560px) {
	.pnl ul.pnl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 14px;
	}
	.pnl .pnl-card-title {
		font-size: 15px;
	}
}

/* ---------- feature: the home page "Our Parish Newsletter" section ----------
   Left column: [parish_newsletters view="feature-info"] under the theme's heading.
   Right column: [parish_newsletters view="feature-cover"]. The theme stacks columns at 999px and
   below; there the right column hides and the info view shows its own copy of the cover. */
.pnl .pnl-feature {
	--pnl-tint: var(--pnl-season, var(--pnl-accent));
	margin-top: 6px;
}
.pnl .pnl-feature-cover-mobile {
	display: none;
}

/* season + "This week" */
.pnl .pnl-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(31, 31, 31, 0.62);
}
.pnl .pnl-season {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pnl-tint);
}
.pnl .pnl-season::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
	box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent);
}
.pnl .pnl-eyebrow-sep {
	width: 18px;
	height: 1px;
	background: currentColor;
	opacity: 0.45;
}

/* this week's issue */
.pnl .pnl-issue {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--pnl-line);
}
.pnl .pnl-issue-title {
	margin: 12px 0 6px;
	padding: 0;
	font-size: clamp(26px, 2.3vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #1f1f1f;
}
.pnl .pnl-issue-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.35s ease;
}
.pnl .pnl-issue-title a:hover,
.pnl .pnl-issue-title a:focus-visible {
	background-size: 100% 2px;
}
.pnl .pnl-issue-meta {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(31, 31, 31, 0.68);
}

/* buttons, matching the theme's pill buttons */
.pnl .pnl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}
.pnl .pnl-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border: 2px solid var(--pnl-accent);
	border-radius: 200px;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pnl .pnl-btn svg {
	width: 16px;
	height: 16px;
	flex: none;
	transition: transform 0.2s ease;
}
.pnl .pnl-btn:hover svg {
	transform: translateX(3px);
}
.pnl .pnl-btn-primary,
.pnl .pnl-btn-primary:visited {
	background: var(--pnl-accent);
	color: #fff;
}
.pnl .pnl-btn-primary:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(96, 0, 0, 0.25);
}
.pnl .pnl-btn-ghost,
.pnl .pnl-btn-ghost:visited {
	background: transparent;
	color: var(--pnl-accent);
}
.pnl .pnl-btn-ghost:hover {
	background: var(--pnl-accent);
	color: #fff;
}

/* previous weeks */
.pnl .pnl-recent {
	margin-top: 34px;
}
.pnl .pnl-recent-label {
	margin: 0 0 8px;
	padding: 0;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(31, 31, 31, 0.55);
}
.pnl ul.pnl-recent-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.pnl ul.pnl-recent-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--pnl-line);
}
.pnl ul.pnl-recent-list > li::before,
.pnl ul.pnl-recent-list > li::marker {
	content: none;
}
.pnl ul.pnl-recent-list > li:last-child {
	border-bottom: 1px solid var(--pnl-line);
}
.pnl .pnl-recent-list a {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 14px;
	padding: 14px 8px 14px 2px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s ease, padding 0.2s ease;
}
.pnl .pnl-recent-list a:hover,
.pnl .pnl-recent-list a:focus-visible {
	padding-left: 12px;
	background: #faf7f2;
}
.pnl .pnl-recent-date {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	color: rgba(31, 31, 31, 0.55);
}
.pnl .pnl-recent-title {
	font-size: 16px;
	line-height: 1.35;
}
.pnl .pnl-recent-list svg {
	width: 16px;
	height: 16px;
	color: var(--pnl-accent);
	opacity: 0.45;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.pnl .pnl-recent-list a:hover svg {
	opacity: 1;
	transform: translateX(3px);
}

/* the cover stack in its church-window arch */
.pnl .pnl-stack {
	--pnl-tint: var(--pnl-season, var(--pnl-accent));
	position: relative;
	display: block;
	width: 100%;
	max-width: 470px;
	margin: 0 auto;
	aspect-ratio: 1 / 1.12;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.pnl .pnl-stack-arch {
	position: absolute;
	inset: 0 5%;
	border-radius: 999px 999px 26px 26px;
	background: #f4efe7;
	background: linear-gradient(180deg, #f6f2eb 0%, color-mix(in srgb, var(--pnl-tint) 13%, #f4efe7) 100%);
}
.pnl .pnl-stack-arch::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border: 1px solid color-mix(in srgb, var(--pnl-tint) 28%, transparent);
	border-radius: 999px 999px 18px 18px;
}
.pnl .pnl-sheet {
	position: absolute;
	top: 53%;
	left: 50%;
	width: 54%;
	aspect-ratio: 1 / 1.414;
	overflow: hidden;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(40, 20, 10, 0.1), 0 14px 34px rgba(40, 20, 10, 0.16);
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}
.pnl .pnl-sheet-1 {
	z-index: 3;
	transform: translate(-50%, -50%) rotate(-3deg);
}
.pnl .pnl-sheet-2 {
	z-index: 2;
	transform: translate(-38%, -52%) rotate(5deg);
}
.pnl .pnl-sheet-3 {
	z-index: 1;
	transform: translate(-27%, -49%) rotate(11deg);
	filter: saturate(0.85);
}
.pnl .pnl-stack:hover .pnl-sheet-1,
.pnl .pnl-stack:focus-visible .pnl-sheet-1 {
	transform: translate(-50%, -53%) rotate(0deg) scale(1.03);
	box-shadow: 0 2px 4px rgba(40, 20, 10, 0.1), 0 24px 48px rgba(40, 20, 10, 0.22);
}
.pnl .pnl-stack:hover .pnl-sheet-2 {
	transform: translate(-31%, -53%) rotate(8deg);
}
.pnl .pnl-stack:hover .pnl-sheet-3 {
	transform: translate(-19%, -48%) rotate(14deg);
}
.pnl .pnl-seal {
	position: absolute;
	z-index: 4;
	left: 11%;
	bottom: 9%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--pnl-accent);
	color: #fff;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-12deg);
	box-shadow: 0 8px 22px rgba(96, 0, 0, 0.32);
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pnl .pnl-seal::before {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px dashed rgba(255, 255, 255, 0.55);
	border-radius: 50%;
}
.pnl .pnl-stack:hover .pnl-seal {
	transform: rotate(-4deg) scale(1.05);
}
.pnl .pnl-stack:focus-visible {
	outline: none;
}
.pnl .pnl-stack:focus-visible .pnl-stack-arch {
	box-shadow: 0 0 0 3px var(--pnl-accent);
}
@media (prefers-reduced-motion: reduce) {
	.pnl .pnl-sheet,
	.pnl .pnl-seal,
	.pnl .pnl-btn,
	.pnl .pnl-btn svg {
		transition: none;
	}
}

/* columns stack here: hide the right column, show the cover inside the info view.
   The right column carries the class pnl-cover-col (WPBakery column "Extra class name").
   Never select the column with :has(.pnl-view-feature-cover): on the home page the whole global
   section sits inside a page column, which would match too and vanish (bug in 1.1.0–1.1.1). */
@media (max-width: 999px) {
	.wpb_column.pnl-cover-col,
	.pnl.pnl-view-feature-cover {
		display: none !important;
	}
	.pnl .pnl-feature-cover-mobile {
		display: block;
		margin: 26px auto 0;
	}
	.pnl .pnl-stack-compact {
		max-width: 340px;
	}
}
@media (max-width: 560px) {
	.pnl .pnl-stack-compact {
		max-width: 300px;
	}
	.pnl .pnl-seal {
		width: 74px;
		height: 74px;
		font-size: 10px;
	}
	.pnl .pnl-issue {
		margin-top: 22px;
		padding-top: 22px;
	}
	.pnl .pnl-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.pnl .pnl-btn {
		justify-content: center;
	}
	.pnl .pnl-recent-list a {
		grid-template-columns: 52px minmax(0, 1fr) 16px;
		gap: 10px;
	}
	.pnl .pnl-recent-title {
		font-size: 15px;
	}
}
