/*
 * News (approved v3.3 News mockup, items 27–28): tabs + search bar, lead story with the "Latest"
 * column, ► section heads, hairline dividers, 4-column grid, Pastoral Council row, pagination.
 * Phones (≤ 767px): lead story, then a compact thumbnail list.
 * Colours: labels #036f6f on white 5.99:1, dates and tabs #4a5558 7.69:1, titles #1f2a2e.
 */

.naggulu-nf.naggulu-section {
	padding-top: 0;
	padding-bottom: 80px;
}

.naggulu-nf h2,
.naggulu-nf h3,
.naggulu-nf p,
.naggulu-nf ul {
	margin: 0;
}

/* Links: the whole title is the link; colour from the title, underline on hover/focus only. */
.naggulu-nf a.naggulu-nf__link:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
	color: inherit;
	text-decoration: none;
}

.naggulu-nf a.naggulu-nf__link:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate):hover,
.naggulu-nf a.naggulu-nf__link:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate):focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The item's image is part of the title link's click area (stretched link). */
.naggulu-nf__item,
.naggulu-nf__lead {
	position: relative;
}

.naggulu-nf__item .naggulu-nf__link::after,
.naggulu-nf__lead .naggulu-nf__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.naggulu-nf a.naggulu-nf__link:focus-visible {
	outline: none;
}

.naggulu-nf__item:focus-within,
.naggulu-nf__lead:focus-within {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Bar: tabs + search */
.naggulu-nf__bar {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	border-bottom: 1px solid var(--naggulu-line);
}

.naggulu-nf__tabs ul {
	display: flex;
	gap: 28px;
	padding: 0;
	list-style: none;
}

.naggulu-nf__tabs li {
	margin: 0;
}

.naggulu-nf .naggulu-nf__tabs a:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
	display: block;
	padding: 18px 0;
	font: 700 13px/1.2 var(--naggulu-font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--naggulu-muted);
	text-decoration: none;
	white-space: nowrap;
}

.naggulu-nf .naggulu-nf__tabs a:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate):hover {
	color: var(--naggulu-teal-dark);
}

.naggulu-nf .naggulu-nf__tabs a[aria-current="page"]:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
	color: var(--naggulu-teal-dark);
	box-shadow: inset 0 -3px 0 var(--naggulu-teal-dark);
}

.naggulu-nf .naggulu-nf__tabs a:focus-visible {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 2px;
}

.naggulu-nf__search {
	display: flex;
	flex: 0 0 280px;
	gap: 8px;
	align-items: center;
	padding: 0 16px;
	border: 1.5px solid var(--naggulu-field-border);
	border-radius: 999px;
	background: #fff;
	color: var(--naggulu-muted);
}

.naggulu-nf__search:focus-within {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 2px;
}

.naggulu-nf__search svg {
	flex: 0 0 16px;
}

.naggulu-nf .naggulu-nf__search input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font: 400 14px/1 var(--naggulu-font-body);
	color: var(--naggulu-charcoal);
	outline: none;
}

.naggulu-nf .naggulu-nf__search input::placeholder {
	color: var(--naggulu-muted);
	opacity: 1;
}

/* Meta line: caps label · date */
.naggulu-nf__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: center;
	margin-bottom: 8px;
}

.naggulu-nf__lab {
	font: 700 11.5px/1.3 var(--naggulu-font-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--naggulu-teal-dark);
}

.naggulu-nf__lab::after {
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-left: 10px;
	border-radius: 50%;
	background: var(--naggulu-muted);
	vertical-align: middle;
	content: "";
}

.naggulu-nf__date {
	font: 500 13px/1.3 var(--naggulu-font-body);
	color: var(--naggulu-muted);
}

/* Top: lead + Latest */
.naggulu-nf__top {
	display: grid;
	grid-template-columns: 1.75fr 1fr;
	gap: 40px;
	padding: 40px 0 48px;
	border-bottom: 1px solid var(--naggulu-line);
}

.naggulu-nf__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: 20px;
	border-radius: 6px;
	background: var(--naggulu-teal-dark);
}

.naggulu-nf__media img.naggulu-nf__blur {
	position: absolute;
	inset: -30px;
	width: calc(100% + 60px);
	max-width: none;
	height: calc(100% + 60px);
	object-fit: cover;
	filter: blur(28px) brightness(0.85);
}

.naggulu-nf__media img.naggulu-nf__fg {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.naggulu-nf__media.is-logo,
.naggulu-nf__thumb.is-logo {
	display: grid;
	place-items: center;
}

.naggulu-nf__media.is-logo img,
.naggulu-nf__thumb.is-logo img {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.naggulu-nf .naggulu-nf__lead-title {
	margin: 4px 0 12px;
	font: 600 40px/1.15 var(--naggulu-font-heading);
	color: var(--naggulu-charcoal);
}

.naggulu-nf__ex {
	display: -webkit-box;
	max-width: 68ch;
	overflow: hidden;
	font-size: 17px;
	line-height: 1.6;
	color: var(--naggulu-muted);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.naggulu-nf__by {
	margin-top: 14px !important;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--naggulu-charcoal);
}

.naggulu-nf .naggulu-nf__sh {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--naggulu-charcoal);
	font: 700 12px/1.2 var(--naggulu-font-body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--naggulu-charcoal);
}

.naggulu-nf__item.is-latest {
	display: grid;
	grid-template-columns: 1fr 132px;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--naggulu-line);
}

.naggulu-nf__item.is-latest:last-child {
	border-bottom: 0;
}

.naggulu-nf__item.is-latest .naggulu-nf__thumb {
	order: 2;
	aspect-ratio: 4 / 3;
}

.naggulu-nf__thumb {
	overflow: hidden;
	border-radius: 4px;
	background: var(--naggulu-teal-dark);
}

.naggulu-nf__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.naggulu-nf .naggulu-nf__title {
	display: -webkit-box;
	overflow: hidden;
	font: 600 17px/1.3 var(--naggulu-font-heading);
	color: var(--naggulu-charcoal);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.naggulu-nf .is-latest .naggulu-nf__title {
	font-size: 19px;
}

/* Blocks: ► heads, grid, council row */
.naggulu-nf__blk {
	padding: 48px 0 8px;
}

.naggulu-nf__blk.is-plain {
	padding-top: 40px;
}

.naggulu-nf__bh {
	display: flex;
	gap: 20px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 28px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--naggulu-charcoal);
}

.naggulu-nf .naggulu-nf__bt {
	font: 700 14px/1.2 var(--naggulu-font-body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--naggulu-charcoal);
}

.naggulu-nf__bt::before {
	margin-right: 10px;
	color: var(--naggulu-teal-dark);
	content: "►" / "";
}

.naggulu-nf a.naggulu-nf__all:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
	font-size: 14px;
	font-weight: 700;
	color: var(--naggulu-teal-dark);
	text-decoration: none;
	white-space: nowrap;
}

.naggulu-nf a.naggulu-nf__all:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate):hover {
	text-decoration: underline;
}

.naggulu-nf__g4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0 28px;
}

.naggulu-nf__item.is-grid {
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--naggulu-line);
}

.naggulu-nf__item.is-grid .naggulu-nf__thumb {
	aspect-ratio: 16 / 10;
	margin-bottom: 14px;
}

.naggulu-nf__cl {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.naggulu-nf__item.is-council {
	padding-top: 14px;
	border-top: 3px solid var(--naggulu-teal-dark);
}

/* Empty category archive or search: body text colour, #1f2a2e on white 14.7:1. */
.naggulu-nf .naggulu-nf__empty {
	padding: 40px 0 8px;
	font-size: 17px;
	color: var(--naggulu-charcoal);
}

/* Pagination */
.naggulu-nf .naggulu-nf__pag {
	margin: 40px 0 0;
}

.naggulu-nf .naggulu-nf__pag .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.naggulu-nf .naggulu-nf__pag .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--naggulu-field-border);
	border-radius: 8px;
	background: #fff;
	font: 600 15px/1 var(--naggulu-font-body);
	color: var(--naggulu-charcoal);
	text-decoration: none;
}

.naggulu-nf .naggulu-nf__pag a.page-numbers:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
	color: var(--naggulu-charcoal);
	text-decoration: none;
}

.naggulu-nf .naggulu-nf__pag a.page-numbers:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate):hover {
	border-color: var(--naggulu-teal-dark);
	color: var(--naggulu-teal-dark);
}

.naggulu-nf .naggulu-nf__pag a.page-numbers:focus-visible {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 2px;
}

.naggulu-nf .naggulu-nf__pag .page-numbers.current {
	border-color: var(--naggulu-teal-dark);
	background: var(--naggulu-teal-dark);
	color: #fff;
}

.naggulu-nf .naggulu-nf__pag .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

@media (max-width: 1100px) {
	.naggulu-nf__g4,
	.naggulu-nf__cl {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1023px) {
	.naggulu-nf__top {
		grid-template-columns: 1fr;
	}

	.naggulu-nf .naggulu-nf__lead-title {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.naggulu-nf.naggulu-section {
		padding-bottom: 56px;
	}

	.naggulu-nf__bar {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}

	.naggulu-nf__tabs {
		overflow-x: auto;
	}

	.naggulu-nf__tabs ul {
		gap: 18px;
	}

	.naggulu-nf .naggulu-nf__tabs a:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
		padding: 14px 0;
		font-size: 11.5px;
	}

	.naggulu-nf__search {
		flex: none;
		margin: 12px 0;
	}

	.naggulu-nf__top {
		gap: 8px;
		padding: 20px 0 8px;
	}

	.naggulu-nf .naggulu-nf__lead-title {
		margin: 4px 0 8px;
		font-size: 27px;
	}

	.naggulu-nf__ex {
		font-size: 15.5px;
	}

	.naggulu-nf .naggulu-nf__sh {
		margin-top: 28px;
	}

	.naggulu-nf__item.is-latest,
	.naggulu-nf__item.is-grid {
		display: grid;
		grid-template-columns: 96px 1fr;
		gap: 14px;
		margin: 0;
		padding: 16px 0;
		border-bottom: 1px solid var(--naggulu-line);
	}

	.naggulu-nf__item.is-latest .naggulu-nf__thumb,
	.naggulu-nf__item.is-grid .naggulu-nf__thumb {
		order: 0;
		aspect-ratio: 4 / 3;
		margin: 0;
	}

	.naggulu-nf .naggulu-nf__title,
	.naggulu-nf .is-latest .naggulu-nf__title {
		font-size: 16px;
	}

	.naggulu-nf__g4,
	.naggulu-nf__cl {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.naggulu-nf__item.is-council {
		padding: 14px 0 16px;
		border-top: 0;
		border-bottom: 1px solid var(--naggulu-line);
	}

	.naggulu-nf__blk {
		padding-top: 36px;
	}

	.naggulu-nf__bh {
		margin-bottom: 8px;
	}

	.naggulu-nf .naggulu-nf__pag .page-numbers {
		min-width: 40px;
		height: 44px;
	}
}
