/* ==========================================================================
   Catholic Journeys — Component Styles
   Compiled from: Header, Mega Menu, Mobile Nav, Footer
   ========================================================================== */


/* ==========================================================================
   HEADER
   ========================================================================== */

.cj-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--cj-color-white);
	box-shadow: var(--cj-shadow-sm);
	transition: box-shadow var(--cj-transition);
}

.cj-header.is-scrolled {
	box-shadow: var(--cj-shadow-md);
}

.cj-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--cj-space-5);
	max-width: var(--cj-wide-width);
	margin-inline: auto;
	padding-inline: var(--cj-space-6);
	height: 72px;
}

/* Logo (cj/logo block — theme SVG, not the Site Logo option) */
.cj-header__logo {
	flex: 0 0 auto;
}

.cj-header__logo-link {
	display: block;
	line-height: 0;
}

/* Height-driven so the SVG keeps its ratio (≈ 7.3:1): 48px ≈ 350px wide.
   Two classes deep to beat style.css `img[width][height] { height: auto }` (0,2,1),
   which — with `max-width: 100%` in a shrink-wrapped parent — collapsed it to 0. */
.cj-header .cj-header__logo img {
	display: block;
	height: 48px;
	width: auto;
	max-width: none;
}

@media (max-width: 1180px) {
	.cj-header .cj-header__logo img {
		height: 38px;
	}
}

@media (max-width: 768px) {
	.cj-header .cj-header__logo img {
		height: 34px;
	}
}

/* Right side wrapper */
.cj-header__right {
	display: flex;
	align-items: center;
	gap: var(--cj-space-6);
}

/* Phone number */
.cj-header__phone {
	font-family: var(--cj-font-body);
	font-weight: var(--cj-font-weight-medium);
	font-size: 1rem;
	color: var(--cj-color-navy);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--cj-transition);
}

.cj-header__phone:hover {
	color: var(--cj-color-gold-dark);
}


/* ==========================================================================
   PRIMARY NAVIGATION
   ========================================================================== */

.cj-nav__list {
	display: flex;
	align-items: center;
	gap: var(--cj-space-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cj-nav__link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: var(--cj-space-2) var(--cj-space-3);
	font-family: var(--cj-font-body);
	font-size: 0.8125rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	color: var(--cj-color-navy);
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: var(--cj-radius-sm);
	transition: color var(--cj-transition), background-color var(--cj-transition);
	white-space: nowrap;
}

.cj-nav__link:hover,
.cj-nav__link:focus-visible,
.cj-nav__item--mega.is-open .cj-nav__link--mega-trigger {
	color: var(--cj-color-gold-dark);
	background-color: var(--cj-color-off-white);
}

/* Chevron icon — rotates when mega menu is open */
.cj-nav__chevron {
	transition: transform var(--cj-transition);
	flex-shrink: 0;
}

.cj-nav__link--mega-trigger[aria-expanded="true"] .cj-nav__chevron,
.cj-nav__link--dropdown-trigger[aria-expanded="true"] .cj-nav__chevron {
	transform: rotate(180deg);
}

/* Info — simple dropdown */
.cj-nav__item--dropdown {
	position: relative;
}

.cj-nav__item--dropdown.is-open .cj-nav__link--dropdown-trigger {
	color: var(--cj-color-gold-dark);
	background-color: var(--cj-color-off-white);
}

.cj-nav__dropdown {
	position: absolute;
	top: calc(100% + var(--cj-space-2));
	right: 0;
	z-index: 999;
	min-width: 260px;
	margin: 0;
	padding: var(--cj-space-2) 0;
	list-style: none;
	background-color: var(--cj-color-white);
	border-top: 3px solid var(--cj-color-gold);
	border-radius: 0 0 var(--cj-radius-md) var(--cj-radius-md);
	box-shadow: var(--cj-shadow-lg);
	animation: cj-mega-slide-in 0.2s ease;
}

.cj-nav__dropdown[hidden] {
	display: none;
}

.cj-nav__dropdown a {
	display: block;
	padding: var(--cj-space-2) var(--cj-space-5);
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-regular);
	color: var(--cj-color-navy);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--cj-transition), background-color var(--cj-transition);
}

.cj-nav__dropdown a:hover,
.cj-nav__dropdown a:focus-visible {
	color: var(--cj-color-gold-dark);
	background-color: var(--cj-color-off-white);
}


/* ==========================================================================
   MEGA MENU
   ========================================================================== */

.cj-mega-menu {
	position: absolute;
	top: 72px; /* matches header height */
	left: 0;
	right: 0;
	z-index: 999;
	background-color: var(--cj-color-navy);
	box-shadow: var(--cj-shadow-lg);
	animation: cj-mega-slide-in 0.2s ease;
}

.cj-mega-menu[hidden] {
	display: none;
}

@keyframes cj-mega-slide-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.cj-mega-menu__inner {
	display: grid;
	grid-template-columns: 1fr 1fr 340px;
	gap: var(--cj-space-7);
	max-width: var(--cj-wide-width);
	margin-inline: auto;
	padding: var(--cj-space-7) var(--cj-space-6);
}

/* Column headings */
.cj-mega-menu__heading {
	font-family: var(--cj-font-body);
	font-size: 0.75rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-caps);
	text-transform: uppercase;
	color: var(--cj-color-gold);
	margin-block-end: var(--cj-space-4);
}

/* Link lists */
.cj-mega-menu__links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--cj-space-2) var(--cj-space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cj-mega-menu__links a {
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-light);
	color: var(--cj-color-white);
	text-decoration: none;
	transition: color var(--cj-transition);
}

.cj-mega-menu__links a:hover,
.cj-mega-menu__links a:focus-visible {
	color: var(--cj-color-gold);
}

/* "View all pilgrimages →" under the Tours by Type list. White, not gold:
   gold on navy is ~4.4:1, under AA for text this size. */
.cj-mega-menu__all {
	display: inline-block;
	margin-block-start: var(--cj-space-5);
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-medium);
	color: var(--cj-color-white);
	text-decoration: underline;
	text-decoration-color: var(--cj-color-gold);
	text-underline-offset: 4px;
	transition: color var(--cj-transition);
}

.cj-mega-menu__all:hover,
.cj-mega-menu__all:focus-visible {
	color: var(--cj-color-gold);
}

/* Tour Types column — single-column list */
.cj-mega-menu__col:nth-child(2) .cj-mega-menu__links {
	grid-template-columns: 1fr;
}

/* Search widget column */
.cj-mega-menu__col--search {
	border-left: 1px solid rgba(255,255,255,0.15);
	padding-left: var(--cj-space-7);
}

/* Destination tile strip (MM-02, Jen's tours mega menu): 4 full-width photo tiles,
   navy-tinted, name + years bottom-left. */
.cj-mega-menu__destinations {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.cj-mega-menu__dest-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 220px;
	padding: var(--cj-space-5, 1.5rem) var(--cj-space-6, 2rem);
	overflow: hidden;
	background: var(--cj-color-navy, #2D4675);
	color: var(--cj-color-white, #fff);
	text-decoration: none;
}

.cj-mega-menu__dest-tile img.cj-mega-menu__dest-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* Navy tint over the photo (lighter on hover/focus). */
.cj-mega-menu__dest-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(45,70,117,0.45) 0%, rgba(45,70,117,0.75) 100%);
	transition: opacity 0.3s ease;
}

.cj-mega-menu__dest-tile:hover img.cj-mega-menu__dest-img,
.cj-mega-menu__dest-tile:focus-visible img.cj-mega-menu__dest-img {
	transform: scale(1.04);
}

.cj-mega-menu__dest-tile:hover::after,
.cj-mega-menu__dest-tile:focus-visible::after {
	opacity: 0.7;
}

.cj-mega-menu__dest-tile:focus-visible {
	outline: 3px solid var(--cj-color-white, #fff);
	outline-offset: -6px;
}

.cj-mega-menu__dest-info {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.cj-mega-menu__dest-name {
	font-family: var(--cj-font-heading);
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: var(--cj-color-white, #fff);
}

.cj-mega-menu__dest-year {
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-bold, 700);
	color: var(--cj-color-white, #fff);
	letter-spacing: var(--cj-letter-spacing-wide);
}

@media (prefers-reduced-motion: reduce) {
	.cj-mega-menu__dest-tile img.cj-mega-menu__dest-img { transition: none; }
	.cj-mega-menu__dest-tile:hover img.cj-mega-menu__dest-img,
	.cj-mega-menu__dest-tile:focus-visible img.cj-mega-menu__dest-img { transform: none; }
}


/* ==========================================================================
   SEARCH WIDGET (header + mega menu variant)
   ========================================================================== */

.cj-search-widget__heading {
	font-family: var(--cj-font-heading);
	font-size: 1.375rem;
	font-weight: var(--cj-font-weight-regular);
	color: var(--cj-color-white);
	line-height: 1.3;
	margin-block-end: var(--cj-space-4);
}

.cj-search-widget__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--cj-space-3);
	margin-block-end: var(--cj-space-3);
}

.cj-search-widget__field {
	margin-block-end: var(--cj-space-3);
}

.cj-search-widget__flexible {
	display: flex;
	align-items: center;
	gap: var(--cj-space-2);
	font-family: var(--cj-font-body);
	font-size: 0.8rem;
	font-weight: var(--cj-font-weight-medium);
	color: var(--cj-color-white);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	cursor: pointer;
	margin-block-end: var(--cj-space-3);
}

.cj-search-widget__flexible input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--cj-color-gold);
	cursor: pointer;
}

.cj-search-widget__submit {
	width: 100%;
	justify-content: center;
	margin-block-start: var(--cj-space-2);
}

/* Mega menu search button on the navy panel: the global primary hover (navy) matched
   the panel, so the button vanished on hover. Here only, hover and keyboard focus go
   light gold #D9CF95 with navy text (5.93:1, AA; 5.93:1 against the panel), plus a
   white focus ring (9.36:1 on navy). Resting state and every other button unchanged. */
.cj-mega-menu .cj-search-widget--mega .cj-search-widget__submit:hover,
.cj-mega-menu .cj-search-widget--mega .cj-search-widget__submit:focus-visible {
	background-color: #D9CF95;
	color: var(--cj-color-navy, #2D4675);
}
.cj-mega-menu .cj-search-widget--mega .cj-search-widget__submit:focus-visible {
	outline: 2px solid var(--cj-color-white, #fff);
	outline-offset: 3px;
}

/* Inputs inside dark (mega menu) context */
.cj-mega-menu .cj-input,
.cj-mega-menu .cj-select {
	background-color: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.3);
	color: var(--cj-color-white);
}

.cj-mega-menu .cj-input::placeholder {
	color: rgba(255,255,255,0.75); /* 4.8:1 on the tinted field (0.6 was 3.7:1). */
}

.cj-mega-menu .cj-select {
	background-color: rgba(255,255,255,0.1);
	color: var(--cj-color-white);
}

.cj-mega-menu .cj-select option {
	background-color: var(--cj-color-navy);
	color: var(--cj-color-white);
}


/* ==========================================================================
   MOBILE NAV TOGGLE (hamburger)
   ========================================================================== */

.cj-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: var(--cj-radius-sm);
}

.cj-nav-toggle:focus-visible {
	outline: 2px solid var(--cj-color-gold);
	outline-offset: 2px;
}

.cj-nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--cj-color-navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate to X when open */
.cj-nav-toggle[aria-expanded="true"] .cj-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.cj-nav-toggle[aria-expanded="true"] .cj-nav-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.cj-nav-toggle[aria-expanded="true"] .cj-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   MOBILE NAV DRAWER
   ========================================================================== */

.cj-mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 85vw);
	z-index: 1100;
	background-color: var(--cj-color-navy);
	overflow-y: auto;
	padding: var(--cj-space-7) var(--cj-space-5) var(--cj-space-5);
	transform: translateX(100%);
	/* Closed drawer is visibility:hidden so its links can't take keyboard focus
	   while off-screen. Visibility flips after the slide-out, and at once on open. */
	visibility: hidden;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

.cj-mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.cj-mobile-nav__close {
	position: absolute;
	top: var(--cj-space-4);
	right: var(--cj-space-4);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.1);
	border: none;
	border-radius: 50%;
	color: var(--cj-color-white);
	cursor: pointer;
	transition: background-color var(--cj-transition);
}

.cj-mobile-nav__close:hover {
	background-color: rgba(255,255,255,0.2);
}

.cj-mobile-nav__close:focus-visible {
	outline: 2px solid var(--cj-color-gold);
	outline-offset: 2px;
}

.cj-mobile-nav__list {
	list-style: none;
	margin: var(--cj-space-6) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cj-mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--cj-space-3);
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	color: var(--cj-color-white);
	text-decoration: none;
	background: none;
	border: none;
	border-radius: var(--cj-radius-sm);
	cursor: pointer;
	transition: background-color var(--cj-transition), color var(--cj-transition);
}

.cj-mobile-nav__link:hover,
.cj-mobile-nav__link:focus-visible {
	background-color: rgba(255,255,255,0.1);
	color: var(--cj-color-gold);
}

/* Chevron in mobile nav */
.cj-mobile-nav__link--toggle .cj-nav__chevron {
	transition: transform var(--cj-transition);
}

.cj-mobile-nav__link--toggle[aria-expanded="true"] .cj-nav__chevron {
	transform: rotate(180deg);
}

/* Sub-menu */
.cj-mobile-nav__sub {
	list-style: none;
	margin: 0;
	padding: 0 0 0 var(--cj-space-4);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cj-mobile-nav__sub[hidden] {
	display: none;
}

.cj-mobile-nav__sub a {
	display: block;
	padding: var(--cj-space-2) var(--cj-space-3);
	font-family: var(--cj-font-body);
	font-size: 0.8125rem;
	font-weight: var(--cj-font-weight-light);
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	border-radius: var(--cj-radius-sm);
	transition: color var(--cj-transition), background-color var(--cj-transition);
}

.cj-mobile-nav__sub a:hover {
	color: var(--cj-color-gold);
	background-color: rgba(255,255,255,0.07);
}

.cj-mobile-nav__sub-heading {
	padding: var(--cj-space-3) var(--cj-space-3) var(--cj-space-1);
	font-family: var(--cj-font-body);
	font-size: 0.6875rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-caps);
	text-transform: uppercase;
	color: var(--cj-color-gold);
}

.cj-mobile-nav__phone {
	display: block;
	margin-block-start: var(--cj-space-6);
	padding: var(--cj-space-3);
	font-family: var(--cj-font-body);
	font-size: 1.125rem;
	font-weight: var(--cj-font-weight-medium);
	color: var(--cj-color-white);
	text-decoration: none;
	text-align: center;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: var(--cj-radius-pill);
	transition: background-color var(--cj-transition), color var(--cj-transition);
}

.cj-mobile-nav__phone:hover {
	background-color: rgba(255,255,255,0.1);
	color: var(--cj-color-gold);
}

/* Backdrop */
.cj-mobile-nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1099;
	background-color: rgba(0,0,0,0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.cj-mobile-nav-backdrop.is-visible {
	opacity: 1;
	pointer-events: auto;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.cj-footer {
	background-color: var(--cj-color-navy);
	color: var(--cj-color-white);
}

/* Main section */
.cj-footer__main {
	padding-block: var(--cj-space-8);
	border-bottom: 1px solid rgba(255,255,255,0.15);
}

.cj-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.4fr 0.8fr;
	gap: var(--cj-space-7);
	max-width: var(--cj-wide-width);
	margin-inline: auto;
	padding-inline: var(--cj-space-6);
}

/* Logo (cj/logo block — white/gold SVG made for navy, so no filter) */
.cj-footer__logo-link {
	display: inline-block;
	line-height: 0;
}

.cj-footer .cj-footer__logo img {
	display: block;
	width: auto;
	max-width: none;
	height: 56px;
}

/* Description */
.cj-footer__desc {
	margin-block-start: var(--cj-space-4);
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-light);
	line-height: 1.7;
	color: rgba(255,255,255,0.75);
}

/* Address */
.cj-footer__address {
	font-style: normal;
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-light);
	line-height: 1.7;
	color: rgba(255,255,255,0.75);
	margin-block-end: var(--cj-space-3);
}

/* Contact lines */
.cj-footer__contact-line {
	margin-block: var(--cj-space-2);
}

.cj-footer__contact-line a {
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-light);
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	transition: color var(--cj-transition);
}

.cj-footer__contact-line a:hover {
	color: var(--cj-color-gold);
}

/* Footer navigation */
.cj-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--cj-space-3);
}

.cj-footer__nav-list a {
	font-family: var(--cj-font-body);
	font-size: 0.8125rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	transition: color var(--cj-transition);
}

.cj-footer__nav-list a:hover {
	color: var(--cj-color-gold);
}

/* Popular pilgrimages — heading in the nav-list type style (white: gold on navy
   is under AA at this size); titles in the contact-line style. */
.cj-footer__heading {
	margin: 0 0 var(--cj-space-3);
	font-family: var(--cj-font-body);
	font-size: 0.8125rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	color: var(--cj-color-white);
}

.cj-footer__popular-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--cj-space-2);
}

.cj-footer__popular-list a {
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-light);
	line-height: 1.5;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	transition: color var(--cj-transition);
}

.cj-footer__popular-list a:hover,
.cj-footer__popular-list a:focus-visible {
	color: var(--cj-color-gold);
}

/* Bottom bar */
.cj-footer__bottom {
	padding-block: var(--cj-space-5);
}

.cj-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--cj-space-4);
	max-width: var(--cj-wide-width);
	margin-inline: auto;
	padding-inline: var(--cj-space-6);
}

/* Copyright */
.cj-footer__copyright {
	font-family: var(--cj-font-body);
	font-size: 0.8125rem;
	font-weight: var(--cj-font-weight-light);
	/* 0.75 white on navy = 6.1:1 (0.5 was 3.66:1, under AA; Lighthouse contrast). */
	color: rgba(255,255,255,0.75);
	margin: 0;
}

/* Legal links (Privacy, Terms, Booking Terms, Accessibility) beside the copyright */
.cj-footer__fine {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cj-space-2, 0.5rem) var(--cj-space-4);
}

.cj-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cj-space-2, 0.5rem) var(--cj-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cj-footer__legal-list a {
	font-family: var(--cj-font-body);
	font-size: 0.8125rem;
	font-weight: var(--cj-font-weight-light);
	color: rgba(255,255,255,0.75); /* same 6.1:1 as the copyright */
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--cj-transition);
}

.cj-footer__legal-list a:hover {
	color: var(--cj-color-white);
}

.cj-footer__legal-list a:focus-visible {
	outline: 2px solid var(--cj-color-gold);
	outline-offset: 2px;
}

/* Social icons */
.cj-footer__social {
	display: flex;
	align-items: center;
	gap: var(--cj-space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cj-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: rgba(255,255,255,0.6);
	border-radius: 50%;
	transition: color var(--cj-transition), background-color var(--cj-transition);
}

.cj-footer__social a:hover {
	color: var(--cj-color-white);
	background-color: rgba(255,255,255,0.1);
}

.cj-footer__social a:focus-visible {
	outline: 2px solid var(--cj-color-gold);
	outline-offset: 2px;
}

.cj-social-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {

	.cj-header__inner {
		padding-inline: var(--cj-space-5);
	}

	.cj-mega-menu__inner {
		grid-template-columns: 1fr 1fr;
		padding: var(--cj-space-5);
	}

	.cj-mega-menu__col--search {
		grid-column: 1 / -1;
		border-left: none;
		padding-left: 0;
		border-top: 1px solid rgba(255,255,255,0.15);
		padding-top: var(--cj-space-5);
	}

	.cj-footer__inner {
		grid-template-columns: 1fr 1fr;
		padding-inline: var(--cj-space-5);
	}

	.cj-footer__col--brand {
		grid-column: 1 / -1;
	}
}

/* Hamburger from 960px down. The full header (logo + menu + phone) needs about
   908px, so with the old 768px switch the phone number ran off the right edge
   between 769 and ~907px and every page scrolled sideways. */
@media (max-width: 960px) {
	.cj-nav,
	.cj-header__phone {
		display: none;
	}

	.cj-nav-toggle {
		display: flex;
	}

	/* No desktop menu to open it from: Tours is in the drawer. */
	.cj-mega-menu {
		display: none;
	}
}

/* Mobile: shorter header, single-column footer */
@media (max-width: 768px) {

	.cj-header__inner {
		height: 60px;
		padding-inline: var(--cj-space-4);
	}

	/* Mega menu disabled on mobile — users access Tours via drawer */
	.cj-mega-menu {
		top: 60px;
		display: none;
	}

	.cj-footer__inner {
		grid-template-columns: 1fr;
		gap: var(--cj-space-5);
		padding-inline: var(--cj-space-4);
	}

	.cj-footer__bottom-inner {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
		padding-inline: var(--cj-space-4);
	}

	.cj-footer__fine,
	.cj-footer__legal-list {
		justify-content: center;
	}

	.cj-mega-menu__destinations {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.cj-mega-menu__destinations {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   TOUR ARCHIVE  (/tours/)  — archive-pilgrimage.html
   Hero, filter bar, result count, tour-card grid, pagination, empty state.
   ========================================================================== */

/* --- Archive hero --- */
.cj-archive-hero {
	padding-block: var(--cj-space-8, 3rem) var(--cj-space-5, 1.5rem);
	text-align: center;
}

.cj-archive-hero__title {
	margin: 0 0 var(--cj-space-3, 0.75rem);
	color: var(--cj-color-navy, #1a2b4a);
}

.cj-archive-hero__intro {
	max-width: 60ch;
	margin: 0 auto;
	color: var(--cj-color-mid-gray, #5a5a5a);
}

/* Term descriptions carry several <p>; give them paragraph spacing. */
.cj-archive-hero__intro p {
	margin: 0 0 var(--cj-space-3, 0.75rem);
}

.cj-archive-hero__intro p:last-child {
	margin-bottom: 0;
}

.cj-archive__count {
	margin: var(--cj-space-3, 0.75rem) 0 0;
	font-family: var(--cj-font-body, sans-serif);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-medium, 500);
	letter-spacing: var(--cj-letter-spacing-wide, 0.02em);
	color: var(--cj-color-mid-gray, #5a5a5a);
}

/* --- Filter bar (horizontal variant of the search widget) --- */
.cj-search-widget--archive {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--cj-space-3, 0.75rem);
	max-width: var(--cj-content-width, 1200px);
	margin: 0 auto var(--cj-space-6, 2rem);
	padding: var(--cj-space-4, 1rem);
	background: var(--cj-color-off-white, #f7f5f0);
	border: 1px solid var(--cj-color-line, #e6e6e6);
	border-radius: var(--cj-radius-md, 8px);
}

.cj-search-widget--archive .cj-search-widget__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.cj-search-widget--archive .cj-search-widget__field--grow {
	flex: 1 1 220px;
}

.cj-search-widget--archive .cj-search-widget__flexible {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	white-space: nowrap;
	padding-block: 0.5rem;
	font-size: 0.9375rem;
}

.cj-search-widget--archive .cj-search-widget__submit {
	flex: 0 0 auto;
}

/* --- Tour card grid --- */
.wp-block-post-template.cj-tour-grid {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: var(--cj-content-width, 1200px);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--cj-space-5, 1.5rem);
}

.wp-block-post-template.cj-tour-grid > li {
	margin: 0;
	display: flex;
}

.wp-block-post-template.cj-tour-grid > li > .cj-tour-card {
	width: 100%;
}

/* --- Pagination --- */
.cj-tour-pagination {
	margin-block: var(--cj-space-7, 2.5rem);
	gap: var(--cj-space-2, 0.5rem);
}

.cj-tour-pagination .wp-block-query-pagination-numbers .page-numbers {
	padding: 0.35em 0.7em;
	border-radius: var(--cj-radius-sm, 4px);
	color: var(--cj-color-navy, #1a2b4a);
	text-decoration: none;
}

.cj-tour-pagination .wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--cj-color-navy, #1a2b4a);
	color: var(--cj-color-white, #fff);
}

/* --- Empty state --- */
.cj-archive-empty {
	max-width: 46ch;
	margin: var(--cj-space-8, 3rem) auto;
	text-align: center;
	color: var(--cj-color-mid-gray, #5a5a5a);
}

.cj-archive-empty h2 {
	color: var(--cj-color-navy, #1a2b4a);
}

/* --- Small screens --- */
@media (max-width: 600px) {
	.cj-search-widget--archive {
		flex-direction: column;
		align-items: stretch;
	}
	.cj-search-widget--archive .cj-search-widget__submit {
		width: 100%;
	}
	.wp-block-post-template.cj-tour-grid {
		grid-template-columns: 1fr;
	}
}

/* --- /tours/ search page, Jen's layout (TS-01/02/04/06/07/09) ---
   Scoped to the archive-pilgrimage template's own classes (--band, -lead, --search,
   cj-tour-card--row), so the tour_type / tour_location archives, destination hubs
   and homepage keep their current layout. */

/* TS-01: short photo band, H1 + Jen's line on the left, the search in one row. */
.cj-archive-hero--band {
	position: relative;
	margin-block-start: 0;
	padding: 0;
	text-align: left;
	background: var(--cj-color-navy, #2D4675) url("../images/home-hero-meteora-1600x1066.webp") center 45% / cover no-repeat;
}
/* Never lighter than 65% navy, so white text and the white "I'm Flexible" label stay
   AA over the brightest part of the photo (TS-02: white is right on the band). */
.cj-archive-hero--band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 31, 54, .88) 0%, rgba(20, 31, 54, .7) 45%, rgba(20, 31, 54, .65) 100%);
}
.cj-archive-band {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin: 0 auto;
	padding: var(--cj-space-7, 2.5rem) var(--cj-space-5, 1.5rem);
	display: grid;
	grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
	gap: var(--cj-space-6, 2rem);
	align-items: center;
}
/* Room for a two-line H1: the fallback font wraps it, Unna doesn't, and without this the
   whole page jumped 33px when the font arrived (CLS 0.019). */
.cj-archive-band__head { min-height: 7.25rem; display: flex; flex-direction: column; justify-content: center; }
.cj-archive-hero--band .cj-archive-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 2.4vw, 2.25rem);
	line-height: 1.15;
	color: var(--cj-color-white, #fff);
}
.cj-archive-band__sub {
	margin: var(--cj-space-2, .5rem) 0 0;
	font-family: var(--cj-font-heading, serif);
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--cj-color-white, #fff);
}
.cj-archive-hero--band .cj-search-widget--archive {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 130px 130px auto;
	gap: var(--cj-space-3, .75rem);
	align-items: center;
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}
.cj-archive-hero--band .cj-search-widget__field { margin: 0; display: block; }
.cj-archive-hero--band .cj-input,
.cj-archive-hero--band .cj-select { height: 46px; font-size: .9375rem; }
.cj-archive-hero--band .cj-search-widget__submit {
	width: auto;
	height: 46px;
	margin: 0;
	padding-inline: 1.75em;
	border-radius: var(--cj-radius-pill, 999px);
	white-space: nowrap;
}
/* Source order is fields, "I'm Flexible", Search (the phone order, and the Tab
   order everywhere); on wider screens Search is pinned to the end of row 1 and
   "I'm Flexible" to row 2, so the desktop layout is unchanged. */
.cj-archive-hero--band .cj-search-widget__submit { grid-column: 4; grid-row: 1; }
/* Under the month/year fields, as in Jen's comp. */
.cj-archive-hero--band .cj-search-widget__flexible {
	grid-row: 2;
	grid-column: 2 / 4;
	justify-self: end;
	margin: 0;
	padding: 0;
	font-size: .8125rem;
	color: var(--cj-color-white, #fff);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* tour_type / tour_location archives reuse the band, but built from blocks (the H1
   is the core query-title), so neutralize the flow-layout gaps the group wrappers add.
   /tours/ (plain HTML band) has no such margins, so it renders the same. */
.cj-archive-hero--band .cj-archive-band > *,
.cj-archive-hero--band .cj-archive-band__head > * { margin-block: 0; }
.cj-archive-hero--band .cj-archive-band__head > .cj-archive-band__sub { margin-top: var(--cj-space-2, .5rem); }

/* tour_type / tour_location: a slimmer band with just the page title (no tagline,
   no search). */
.cj-archive-hero--title .cj-archive-band { grid-template-columns: 1fr; padding-block: var(--cj-space-7, 2.5rem); }
.cj-archive-hero--title .cj-archive-band__head { min-height: 0; }

/* tour_type / tour_location: the rest of the term description, after the results. */
.cj-term-about {
	box-sizing: border-box;
	max-width: calc(70ch + 2 * var(--cj-space-5, 1.5rem));
	margin: var(--cj-space-9, 4rem) auto 0;
	padding: var(--cj-space-7, 2.5rem) var(--cj-space-5, 1.5rem) 0;
	border-top: 1px solid var(--cj-color-gold, #BFB266);
}
.cj-term-about__title { margin: 0 0 var(--cj-space-4, 1rem); color: var(--cj-color-navy, #2D4675); }
.cj-term-about__body { color: var(--cj-color-mid-gray, #5a5a5a); }
.cj-term-about__body > * { margin: 0 0 var(--cj-space-4, 1rem); }
.cj-term-about__body > :last-child { margin-bottom: 0; }

/* TS-07: wide content (1280) instead of the 860px column; TS-09: side gutters. */
.cj-archive-lead {
	box-sizing: border-box;
	margin-block-start: 0; /* main's block gap + this padding was ~80px under the band */
	padding: var(--cj-space-6, 2rem) var(--cj-space-5, 1.5rem) 0;
}
.cj-archive-lead .cj-archive-hero__intro { max-width: 70ch; margin: 0; text-align: left; }
/* TS-08 for free: the count sits left, above the results. */
.cj-archive-lead .cj-archive__count { margin: var(--cj-space-3, .75rem) 0 0; font-size: 1rem; color: var(--cj-color-text-muted, #595959); }
.cj-tour-archive-query--search {
	box-sizing: border-box;
	margin-block-start: var(--cj-space-5, 1.5rem);
	padding-inline: var(--cj-space-5, 1.5rem);
}
.cj-tour-archive-query--search .wp-block-post-template.cj-tour-grid {
	max-width: none;
	grid-template-columns: 1fr;
	gap: var(--cj-space-5, 1.5rem);
}

/* TS-06 (cheap): one-column horizontal card from the data the card already has.
   Photo | eyebrow, underlined title, excerpt, duration | gold rule | next departure,
   from-price, navy Book Now. The whole card stays one link to the tour page, where
   the booking card sits in the hero. */
/* Doubled class: the shared .cj-tour-card rule comes later in this file. */
.cj-tour-card.cj-tour-card--row { border-color: var(--cj-color-gold, #BFB266); border-radius: 30px; }
.cj-tour-card--row .cj-tour-card__link {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) minmax(200px, 240px);
	border-radius: inherit;
}
.cj-tour-card--row .cj-tour-card__link:focus-visible { outline: 3px solid var(--cj-color-navy, #2D4675); outline-offset: -3px; }
.cj-tour-card--row .cj-tour-card__media { aspect-ratio: auto; min-height: 230px; }
.cj-tour-card--row .cj-tour-card__media .cj-tour-card__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.cj-tour-card--row .cj-tour-card__body { justify-content: center; padding: var(--cj-space-5, 1.5rem) var(--cj-space-6, 2rem); }
.cj-tour-card--row .cj-tour-card__title {
	font-size: 1.75rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}
.cj-tour-card--row .cj-tour-card__duration { margin: 0; font-size: .875rem; color: var(--cj-color-text-muted, #595959); }
.cj-tour-card--row .cj-tour-card__aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	margin-block: var(--cj-space-5, 1.5rem);
	padding: 0 var(--cj-space-5, 1.5rem);
	border-left: 1px solid var(--cj-color-gold, #BFB266);
}
.cj-tour-card--row .cj-tour-card__fact { display: flex; flex-direction: column; }
.cj-tour-card--row .cj-tour-card__label {
	font-family: var(--cj-font-body, sans-serif);
	font-size: .75rem;
	font-weight: var(--cj-font-weight-bold, 700);
	letter-spacing: var(--cj-letter-spacing-caps, .08em);
	text-transform: uppercase;
	color: var(--cj-color-gold-text, #7A6A2E);
}
.cj-tour-card--row .cj-tour-card__value {
	margin: .15rem 0 var(--cj-space-3, .75rem);
	font-family: var(--cj-font-heading, serif);
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--cj-color-navy, #2D4675);
}
.cj-tour-card--row .cj-tour-card__cta {
	margin-top: var(--cj-space-1, .25rem);
	padding: .75em 1.75em;
	border-radius: var(--cj-radius-pill, 999px);
	background: var(--cj-color-navy, #2D4675);
	color: var(--cj-color-white, #fff);
	line-height: 1;
}

@media (max-width: 1100px) {
	.cj-archive-band { grid-template-columns: 1fr; gap: var(--cj-space-4, 1rem); padding-block: var(--cj-space-6, 2rem); }
	.cj-archive-band__head { min-height: 0; }
}
/* tour_type archives: /tours/ band + search, title only (no tagline). Once the band
   stacks, reserve the tagline's space (one H1 line + .5rem + one 1.25rem/1.3 line) so
   the band is the same height as /tours/. Wider, the 7.25rem head already matches. */
@media (max-width: 1100px) {
	.cj-archive-hero--type .cj-archive-band__head { min-height: calc(1.75rem * 1.15 + .5rem + 1.25rem * 1.3); }
}
@media (max-width: 960px) {
	.cj-tour-card--row .cj-tour-card__link { grid-template-columns: 220px minmax(0, 1fr) 200px; }
	.cj-tour-card--row .cj-tour-card__body { padding: var(--cj-space-4, 1rem) var(--cj-space-5, 1.5rem); }
}
@media (max-width: 800px) {
	.cj-archive-hero--band { background-image: url("../images/home-hero-meteora-800x533.webp"); }
}
/* TS-04 + TS-09 on phones: stacked form without the 220px gap, 16px gutters. */
@media (max-width: 700px) {
	.cj-archive-band { padding: var(--cj-space-5, 1.5rem) var(--cj-space-4, 1rem); }
	.cj-archive-hero--band .cj-search-widget--archive { grid-template-columns: 1fr 1fr; }
	.cj-archive-hero--band .cj-search-widget__field--grow { grid-column: 1 / -1; flex: none; }
	.cj-archive-hero--band .cj-search-widget__submit { grid-column: 1 / -1; grid-row: auto; width: 100%; }
	.cj-archive-hero--band .cj-search-widget__flexible { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
	.cj-archive-lead { padding: var(--cj-space-5, 1.5rem) var(--cj-space-4, 1rem) 0; }
	.cj-archive-hero--title .cj-archive-band { padding-block: var(--cj-space-6, 2rem); }
	.cj-term-about { margin-top: var(--cj-space-8, 3rem); padding-inline: var(--cj-space-4, 1rem); }
	.cj-tour-archive-query--search { padding-inline: var(--cj-space-4, 1rem); }
	.cj-tour-card.cj-tour-card--row { border-radius: 24px; }
	.cj-tour-card--row .cj-tour-card__link { display: flex; flex-direction: column; }
	.cj-tour-card--row .cj-tour-card__media { min-height: 0; aspect-ratio: 3 / 2; }
	.cj-tour-card--row .cj-tour-card__media .cj-tour-card__img { position: static; aspect-ratio: 3 / 2; }
	.cj-tour-card--row .cj-tour-card__body { padding: var(--cj-space-4, 1rem) var(--cj-space-4, 1rem) 0; }
	.cj-tour-card--row .cj-tour-card__title { font-size: 1.375rem; }
	.cj-tour-card--row .cj-tour-card__aside {
		margin: var(--cj-space-4, 1rem);
		padding: var(--cj-space-4, 1rem) 0 0;
		border-left: 0;
		border-top: 1px solid var(--cj-color-gold, #BFB266);
		flex-direction: row;
		flex-wrap: wrap;
		column-gap: var(--cj-space-5, 1.5rem);
	}
	/* Date and price side by side, Book Now full width: keeps the phone card short. */
	.cj-tour-card--row .cj-tour-card__fact { flex: 1 1 0; min-width: 0; }
	.cj-tour-card--row .cj-tour-card__value { font-size: 1.125rem; }
	.cj-tour-card--row .cj-tour-card__excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
	.cj-tour-card--row .cj-tour-card__cta { flex: 1 0 100%; text-align: center; }
}

/* ==========================================================================
   TOUR CARD  (shared component — inc/tour-cards.php)
   Global (not block-scoped) because it renders in the archive Query Loop AND
   via cj_render_tour_card() in the related-tours block / destination hubs.
   ========================================================================== */

.cj-tour-card {
	display: flex;
	flex-direction: column;
	background: var(--cj-color-white, #fff);
	border: 1px solid var(--cj-color-line, #e6e6e6);
	border-radius: var(--cj-radius-lg, 12px);
	overflow: hidden;
	transition: box-shadow var(--cj-transition, 0.2s ease), transform var(--cj-transition, 0.2s ease);
}
.cj-tour-card:hover,
.cj-tour-card:focus-within { box-shadow: var(--cj-shadow-md, 0 8px 24px rgba(0,0,0,.1)); transform: translateY(-2px); }
.cj-tour-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.cj-tour-card__link:focus-visible { outline: 2px solid var(--cj-color-gold, #b8860b); outline-offset: 2px; }
.cj-tour-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cj-color-light-gray, #f2f2f2); }
.cj-tour-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* img[width][height]{height:auto} in style.css outranks the class's height:100%, and the media box is a
   flex item so a % height wouldn't resolve anyway. Give the image the box's own ratio so wide images
   fill it instead of leaving a grey band (TD-35). */
.cj-tour-card__media .cj-tour-card__img { display: block; aspect-ratio: 3 / 2; }
.cj-tour-card:hover .cj-tour-card__img { transform: scale(1.04); }
.cj-tour-card__img--placeholder { display: block; }
.cj-tour-card__rating {
	position: absolute; top: var(--cj-space-2, .5rem); right: var(--cj-space-2, .5rem);
	display: inline-flex; align-items: center; gap: .25em; padding: .25em .6em;
	background: var(--cj-color-navy, #1a2b4a); color: var(--cj-color-white, #fff);
	border-radius: var(--cj-radius-pill, 999px); font-family: var(--cj-font-body, sans-serif);
	font-size: .8125rem; font-weight: var(--cj-font-weight-medium, 500); line-height: 1;
}
.cj-tour-card__rating-star { color: var(--cj-color-gold, #d4af37); }
.cj-tour-card__rating-count { opacity: .8; font-weight: var(--cj-font-weight-regular, 400); }
.cj-tour-card__body { display: flex; flex-direction: column; gap: var(--cj-space-2, .5rem); padding: var(--cj-space-4, 1rem); flex: 1 1 auto; }
.cj-tour-card__eyebrow { font-family: var(--cj-font-body, sans-serif); font-size: .75rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold-text, #7A6A2E); }
.cj-tour-card__title { margin: 0; font-family: var(--cj-font-heading, serif); font-size: 1.375rem; line-height: var(--cj-line-height-snug, 1.25); color: var(--cj-color-navy, #1a2b4a); }
.cj-tour-card__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4em .75em; font-family: var(--cj-font-body, sans-serif); font-size: .875rem; color: var(--cj-color-text-muted, #595959); }
.cj-tour-card__meta-item { position: relative; display: inline-flex; align-items: center; }
.cj-tour-card__meta-item + .cj-tour-card__meta-item::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: .75em; border-radius: 50%; background: currentColor; opacity: .5; }
.cj-tour-card__meta-item--price { font-weight: var(--cj-font-weight-bold, 700); color: var(--cj-color-foreground, #222); }
.cj-tour-card__cta { margin-top: auto; padding-top: var(--cj-space-2, .5rem); font-family: var(--cj-font-body, sans-serif); font-size: .8125rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold-text, #7A6A2E); }

/* Generic card grid (used by the related-tours <div>; archive <ul> variant styled above). */
.cj-tour-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--cj-space-5, 1.5rem);
}

/* Shared section head (eyebrow + title). */
.cj-section-head { text-align: center; margin-bottom: var(--cj-space-6, 2rem); }
.cj-section-head__eyebrow { display: block; font-family: var(--cj-font-body, sans-serif); font-size: .75rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold-text, #7A6A2E); }
.cj-section-head__title { margin: .25rem 0 0; font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); }

/* ==========================================================================
   DESTINATION HUB  (/tour-destination/{slug}/  —  single-destination.html)
   ========================================================================== */

.cj-dest-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 420px;
	overflow: hidden;
	background: var(--cj-color-navy, #2D4675);
	color: var(--cj-color-white, #fff);
	padding-block: var(--cj-space-9, 4rem) var(--cj-space-8, 3rem);
}
.cj-dest-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cj-dest-hero img.cj-dest-hero__img { height: 100%; }
/* Left-weighted shade, like the homepage hero: text side dark, photo side clear. */
.cj-dest-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,32,56,.82) 0%, rgba(20,32,56,.6) 45%, rgba(20,32,56,.15) 75%, rgba(20,32,56,0) 100%); }
.cj-dest-hero__inner { width: 100%; max-width: var(--cj-wide-width, 1280px); margin: 0 auto; padding-inline: var(--cj-space-5, 1.5rem); }
.cj-dest-hero__eyebrow { margin: 0 0 var(--cj-space-2, .5rem); font-family: var(--cj-font-body, sans-serif); font-size: .8125rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold, #BFB266); }
.cj-dest-hero__title { margin: 0 0 var(--cj-space-3, .75rem); max-width: 18ch; color: var(--cj-color-white, #fff); font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.cj-dest-hero__rating { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin: 0; }
.cj-dest-hero__reviews { font-family: var(--cj-font-body, sans-serif); font-size: .875rem; font-weight: var(--cj-font-weight-bold, 700); color: var(--cj-color-gold, #BFB266); text-decoration: none; }
.cj-dest-hero__reviews:hover, .cj-dest-hero__reviews:focus-visible { text-decoration: underline; }
.cj-dest-hero__reviews:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Five stars filled to the average (--cj-stars: 0–5). */
.cj-stars { --cj-stars-pct: calc(var(--cj-stars, 5) / 5 * 100%); display: inline-block; font-size: 1.5rem; line-height: 1; letter-spacing: .08em; }
.cj-stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--cj-color-gold, #BFB266) var(--cj-stars-pct), rgba(255,255,255,.35) var(--cj-stars-pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Intro + search card */
.cj-dest-intro { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--cj-space-8, 3rem); align-items: start; max-width: var(--cj-wide-width, 1280px); margin: 0 auto; padding: var(--cj-space-8, 3rem) var(--cj-space-5, 1.5rem); }
.cj-dest-intro--search-only { grid-template-columns: minmax(0, 520px); justify-content: center; }
.cj-dest-intro__content { font-size: 1rem; line-height: var(--cj-line-height-normal, 1.7); }
.cj-dest-intro__content > :first-child { margin-top: 0; }
.cj-dest-intro__card { padding: var(--cj-space-6, 2rem); border-radius: var(--cj-radius-lg, 16px); background: var(--cj-color-gold-panel, #827737); color: var(--cj-color-white, #fff); }
.cj-dest-intro__card-title { margin: 0 0 var(--cj-space-4, 1rem); font-size: 1.5rem; color: var(--cj-color-white, #fff); }
.cj-search-widget--dest { display: flex; flex-direction: column; gap: var(--cj-space-3, .75rem); }
.cj-search-widget--dest .cj-select,
.cj-search-widget--dest .cj-input { width: 100%; background: #fff; }
.cj-search-widget--dest .cj-search-widget__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cj-space-3, .75rem); }
.cj-search-widget--dest .cj-search-widget__flexible { align-self: flex-end; display: inline-flex; align-items: center; gap: .5em; font-size: .8125rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-white, #fff); }
.cj-search-widget--dest button[type="submit"] { width: 100%; }
.cj-dest-intro__card :focus-visible { outline-color: #fff; }

/* Tours: wide cards on the hub (image left, details right), as in Jen's comp. */
.cj-related-tours.cj-related-tours--hub { background: var(--cj-color-white, #fff); padding-block-start: 0; }
.cj-related-tours--hub .cj-related-tours__inner { max-width: 960px; border-top: 1px solid var(--cj-color-gold, #BFB266); padding-block-start: var(--cj-space-7, 2.5rem); }
.cj-related-tours--hub .cj-tour-grid { grid-template-columns: 1fr; gap: var(--cj-space-5, 1.5rem); }
.cj-related-tours--hub .cj-tour-card { border-color: var(--cj-color-gold, #BFB266); }
.cj-related-tours--hub .cj-tour-card__link { flex-direction: row; }
.cj-related-tours--hub .cj-tour-card__media { flex: 0 0 34%; aspect-ratio: auto; min-height: 220px; }
.cj-related-tours--hub .cj-tour-card__media .cj-tour-card__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.cj-related-tours--hub .cj-tour-card__body { padding: var(--cj-space-5, 1.5rem) var(--cj-space-6, 2rem); }
.cj-related-tours--hub .cj-tour-card__title { font-size: 1.625rem; }
.cj-tour-card__excerpt { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--cj-color-text-muted, #595959); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cj-related-tours--hub .cj-tour-card__cta { align-self: flex-end; padding: .6em 1.4em; border-radius: var(--cj-radius-pill, 999px); background: var(--cj-color-navy, #2D4675); color: var(--cj-color-white, #fff); }

/* Why Book with Catholic Journeys */
.cj-why-book { padding-block: var(--cj-space-8, 3rem); }
.cj-why-book::before { content: ""; display: block; max-width: 960px; margin: 0 auto var(--cj-space-7, 2.5rem); border-top: 1px solid var(--cj-color-gold, #BFB266); }
.cj-why-book > * { max-width: 960px; }
.cj-why-book__title { margin: 0 0 var(--cj-space-6, 2rem); }
.cj-why-book__list { list-style: none; margin: 0 auto; padding: 0; columns: 2; column-gap: var(--cj-space-8, 3rem); }
.cj-why-book__list li { position: relative; break-inside: avoid; margin: 0 0 var(--cj-space-4, 1rem); padding-left: 1.75em; font-family: var(--cj-font-heading, serif); font-size: 1.25rem; line-height: 1.35; color: var(--cj-color-navy, #2D4675); }
.cj-why-book__list li::before { content: "★"; position: absolute; left: 0; top: .05em; color: var(--cj-color-gold, #BFB266); }
.cj-why-book__list a { color: inherit; }

@media (max-width: 900px) {
	.cj-dest-intro { grid-template-columns: 1fr; gap: var(--cj-space-6, 2rem); }
	.cj-dest-intro--search-only { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.cj-dest-hero { min-height: 300px; padding-block: var(--cj-space-8, 3rem) var(--cj-space-6, 2rem); }
	.cj-dest-hero::after { background: linear-gradient(180deg, rgba(20,32,56,.35) 0%, rgba(20,32,56,.85) 100%); }
	.cj-dest-intro { padding: var(--cj-space-6, 2rem) var(--cj-space-4, 1rem); }
	.cj-related-tours--hub .cj-tour-card__link { flex-direction: column; }
	.cj-related-tours--hub .cj-tour-card__media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
	.cj-related-tours--hub .cj-tour-card__media .cj-tour-card__img { position: static; aspect-ratio: 3 / 2; }
	.cj-related-tours--hub .cj-tour-card__body { padding: var(--cj-space-4, 1rem); }
	.cj-related-tours--hub .cj-tour-card__title { font-size: 1.375rem; }
	.cj-why-book__list { columns: 1; }
}

.cj-dest-content {
	max-width: 72ch;
	margin: var(--cj-space-8, 3rem) auto;
	padding-inline: var(--cj-space-4, 1rem);
}
.cj-dest-content h2 { font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); margin-top: var(--cj-space-6, 2rem); }
.cj-dest-content h3 { font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); }
.cj-dest-content p { line-height: var(--cj-line-height-normal, 1.7); }

.cj-related-tours { padding-block: var(--cj-space-8, 3rem); background: var(--cj-color-off-white, #f7f5f0); }
.cj-related-tours__inner { max-width: var(--cj-content-width, 1120px); margin: 0 auto; padding-inline: var(--cj-space-4, 1rem); }

/* Single tour "Related Pilgrimages": the tour page's container width, 3 across on
   desktop (no 2 + 1 orphan), 2 on tablet, 1 on phone. It follows the reviews band
   directly: no block-gap band of white between them. */
.cj-tour + .cj-related-tours { margin-block-start: 0; }
.cj-related-tours:not(.cj-related-tours--hub) .cj-related-tours__inner { max-width: var(--cj-wide-width, 1280px); padding-inline: var(--cj-space-6, 2rem); }
.cj-related-tours:not(.cj-related-tours--hub) .cj-tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
	.cj-related-tours:not(.cj-related-tours--hub) .cj-tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Destination hub cards: see the DESTINATION HUB section above (wide 1-column cards). */
@media (max-width: 600px) {
	.cj-tour-grid { grid-template-columns: 1fr; }
	.cj-related-tours--hub .cj-related-tours__inner { padding-inline: var(--cj-space-4, 1rem); }
	.cj-related-tours:not(.cj-related-tours--hub) .cj-related-tours__inner { padding-inline: var(--cj-space-4, 1rem); }
	.cj-related-tours:not(.cj-related-tours--hub) .cj-tour-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BLOG  (home.html blog index + single.html)  &  shared page hero / opt-in
   ========================================================================== */

/* Gold page banner (blog index, and reusable for other simple pages). */
.cj-page-hero { text-align: center; padding-block: var(--cj-space-6, 2rem); }
.cj-page-hero--gold { background: var(--cj-color-gold-panel, #827737); color: var(--cj-color-white, #fff); }
.cj-page-hero--gold .cj-page-hero__title,
.cj-page-hero--gold a,
.cj-page-hero--gold a:hover,
.cj-page-hero--gold a:focus-visible { color: var(--cj-color-white, #fff); }
.cj-page-hero--gold :focus-visible { outline-color: var(--cj-color-white, #fff); }
.cj-page-hero__title { margin: 0; font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); }
.cj-page-hero__subtitle { margin: .5rem 0 0; font-family: var(--cj-font-body, sans-serif); }
/* Subtitle as a second line inside the H1 (blog landing, per blog-landing-page.pdf):
   same serif as the title at half its size, on its own line. */
.cj-page-hero__title .cj-page-hero__subtitle { display: block; margin-top: .5rem; font-family: var(--cj-font-heading, serif); font-size: .5em; line-height: 1.3; }

/* CT-02: photo band hero (contact page). Short full-width photo, H1 left on the wide
   container's edge like the destination and /tours/ heroes. A left navy shade keeps the
   white title AA over the sky; the photo side stays clear. The image is a CSS
   background: a sized WebP (1600w; 800w on phones) with a JPEG fallback. */
.cj-page-hero--photo {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: clamp(10rem, 16vw, 14.5rem);
	margin-block-start: 0;
	padding-block: var(--cj-space-6, 2rem);
	padding-inline: max(var(--cj-space-5, 1.5rem), calc((100% - var(--cj-wide-width, 1280px)) / 2 + var(--cj-space-5, 1.5rem)));
	text-align: left;
	color: var(--cj-color-white, #fff);
	background: var(--cj-color-navy, #2D4675) center 30% / cover no-repeat;
}
.cj-page-hero--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(20,32,56,.85) 0%, rgba(20,32,56,.6) 35%, rgba(20,32,56,.15) 65%, rgba(20,32,56,0) 100%), linear-gradient(0deg, rgba(20,32,56,.35) 0%, rgba(20,32,56,0) 60%);
}
.cj-page-hero--photo .cj-page-hero__title { margin: 0; color: var(--cj-color-white, #fff); }
.cj-page-hero--contact {
	background-image: url(../images/contact-hero-christ-1600x502.jpg);
	background-image: image-set(url(../images/contact-hero-christ-1600x502.webp) type("image/webp"), url(../images/contact-hero-christ-1600x502.jpg) type("image/jpeg"));
}
@media (max-width: 782px) {
	.cj-page-hero--photo { min-height: 9rem; padding-inline: var(--cj-space-4, 1rem); }
	.cj-page-hero--photo::after { background: linear-gradient(90deg, rgba(20,32,56,.85) 0%, rgba(20,32,56,.55) 55%, rgba(20,32,56,.25) 100%); }
	.cj-page-hero--contact { background-position: 62% 30%; background-image: image-set(url(../images/contact-hero-christ-800x480.webp) type("image/webp"), url(../images/contact-hero-christ-1600x502.jpg) type("image/jpeg")); }
}

/* Info landing (page-info.html): card grid by category. */
.cj-info-grid { max-width: 1120px; margin: var(--cj-space-8, 4rem) auto; padding-inline: var(--cj-space-5, 1.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cj-space-5, 1.5rem); }
.cj-info-card { padding: var(--cj-space-6, 2rem); border: 1px solid var(--cj-color-gold, #BFB266); border-radius: var(--cj-radius-lg, 16px); background: var(--cj-color-white, #fff); }
.cj-info-card__icon { display: block; margin-bottom: var(--cj-space-3, .75rem); color: var(--cj-color-navy, #2D4675); }
.cj-info-card__accent { stroke: var(--cj-color-gold-dark, #A79458); }
.cj-info-card__title { margin: 0 0 var(--cj-space-3, .75rem); font-family: var(--cj-font-heading, serif); font-size: var(--wp--preset--font-size--2-xl, 1.75rem); color: var(--cj-color-navy, #2D4675); }
.cj-info-card__links { list-style: none; margin: 0; padding: 0; }
.cj-info-card__links li + li { margin-top: var(--cj-space-2, .5rem); }
.cj-info-card__links a { color: var(--cj-color-navy, #2D4675); text-decoration: underline; text-decoration-color: var(--cj-color-gold, #BFB266); text-underline-offset: 3px; }
.cj-info-card__links a:hover,
.cj-info-card__links a:focus-visible { color: var(--cj-color-gold-dark, #A79458); }

@media (max-width: 960px) {
	.cj-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.cj-info-grid { grid-template-columns: 1fr; padding-inline: var(--cj-space-4, 1rem); margin-block: var(--cj-space-6, 2rem); }
}

/* Blog layout: sidebar + grid. */
.cj-blog-layout { margin-block: var(--cj-space-8, 3rem); gap: var(--cj-space-7, 2.5rem); }
.cj-blog-sidebar__heading { font-family: var(--cj-font-heading, serif); font-size: 1.1rem; color: var(--cj-color-navy, #1a2b4a); margin-top: var(--cj-space-4, 1rem); }
.cj-blog-sidebar .wp-block-categories { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.cj-blog-sidebar .wp-block-categories li { margin-bottom: .4rem; }
.cj-blog-sidebar .wp-block-categories a { color: var(--cj-color-mid-gray, #5a5a5a); text-decoration: none; }
.cj-blog-sidebar .wp-block-categories a:hover { color: var(--cj-color-gold-dark, #9a7b1f); }

.wp-block-post-template.cj-blog-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--cj-space-5, 1.5rem);
}
.wp-block-post-template.cj-blog-grid > li { margin: 0; display: flex; }
.wp-block-post-template.cj-blog-grid > li > .cj-blog-card { width: 100%; }

/* Blog card (shared component — inc/blog-cards.php). */
.cj-blog-card { display: flex; flex-direction: column; background: var(--cj-color-white, #fff); border: 1px solid var(--cj-color-line, #e6e6e6); border-radius: var(--cj-radius-lg, 12px); overflow: hidden; transition: box-shadow var(--cj-transition, .2s ease), transform var(--cj-transition, .2s ease); }
.cj-blog-card:hover, .cj-blog-card:focus-within { box-shadow: var(--cj-shadow-md, 0 8px 24px rgba(0,0,0,.1)); transform: translateY(-2px); }
.cj-blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.cj-blog-card__link:focus-visible { outline: 2px solid var(--cj-color-gold, #b8860b); outline-offset: 2px; }
.cj-blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cj-color-navy, #1a2b4a); display: flex; align-items: center; justify-content: center; }
.cj-blog-card__img { width: 100%; height: 100%; object-fit: cover; }
.cj-blog-card__img--placeholder { color: rgba(255,255,255,.35); font-size: 2.5rem; }
.cj-blog-card__body { display: flex; flex-direction: column; gap: var(--cj-space-2, .5rem); padding: var(--cj-space-4, 1rem); flex: 1 1 auto; }
.cj-blog-card__tag { align-self: flex-start; font-family: var(--cj-font-body, sans-serif); font-size: .7rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold-text, #7A6A2E); }
.cj-blog-card__title { margin: 0; font-family: var(--cj-font-heading, serif); font-size: 1.2rem; line-height: var(--cj-line-height-snug, 1.25); color: var(--cj-color-navy, #1a2b4a); }
/* Titles stop at 3 lines with an ellipsis (visual only; screen readers and the post page keep the full title).
   The small bottom padding keeps descenders on line 3 from being clipped at tight line-heights. */
.cj-blog-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; padding-block-end: .12em; }
.cj-blog-card__excerpt { margin: 0; font-size: .9rem; color: var(--cj-color-text-muted, #595959); }
.cj-blog-card__more { margin-top: auto; padding-top: var(--cj-space-2, .5rem); font-size: .75rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold-text, #7A6A2E); }

.cj-blog-pagination { margin-top: var(--cj-space-7, 2.5rem); }
.cj-blog-pagination .page-numbers.current { background: var(--cj-color-navy, #1a2b4a); color: #fff; padding: .2em .6em; border-radius: var(--cj-radius-sm, 4px); }

/* Opt-in band. */
.cj-optin { text-align: center; padding-block: var(--cj-space-8, 3rem); padding-inline: var(--cj-space-4, 1rem); background: var(--cj-color-white, #fff); }
.cj-optin__title { font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); }
/* Gravity Forms form 2 inside the opt-in band. Scoped so no other form changes. */
.cj-optin .gform-theme--framework {
	--gf-ctrl-btn-bg-color-primary: var(--cj-color-gold-panel);
	--gf-ctrl-btn-bg-color-hover-primary: var(--cj-color-navy);
	--gf-ctrl-btn-bg-color-focus-primary: var(--cj-color-navy);
	--gf-ctrl-btn-color-primary: var(--cj-color-white);
	--gf-ctrl-btn-color-hover-primary: var(--cj-color-white);
	--gf-ctrl-btn-color-focus-primary: var(--cj-color-white);
	--gf-ctrl-btn-border-color-primary: var(--cj-color-gold-panel);
	--gf-ctrl-btn-border-color-hover-primary: var(--cj-color-navy);
	--gf-ctrl-btn-radius: var(--cj-radius-pill);
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-letter-spacing: var(--cj-letter-spacing-wide);
	--gf-ctrl-border-color: var(--cj-color-gold);
	--gf-ctrl-border-color-hover: var(--cj-color-gold);
	--gf-ctrl-border-color-focus: var(--cj-color-navy);
	--gf-ctrl-radius: var(--cj-radius-sm);
}
.cj-optin .gform_wrapper { max-width: 720px; margin: var(--cj-space-4, 1rem) auto 0; }
.cj-optin .gform_wrapper .gform_fields { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; margin: 0; padding: 0; }
.cj-optin .gform_wrapper .gfield { flex: 1 1 180px; margin: 0; padding: 0; min-width: 0; text-align: left; }
.cj-optin .gform_wrapper .gfield_label,
.cj-optin .gform_wrapper .gfield_required { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cj-optin .gform_wrapper .ginput_container { margin: 0; }
.cj-optin .gform_wrapper input[type="text"],
.cj-optin .gform_wrapper input[type="email"] {
	width: 100%;
	padding: 0.625rem 0.875rem;
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-light);
	color: var(--cj-color-foreground);
	background-color: var(--cj-color-white);
	border: 1.5px solid var(--cj-color-gold);
	border-radius: var(--cj-radius-sm);
	appearance: none;
	-webkit-appearance: none;
}
.cj-optin .gform_wrapper input::placeholder { color: var(--cj-color-mid-gray); text-transform: uppercase; font-size: 0.75rem; letter-spacing: var(--cj-letter-spacing-wide); }
.cj-optin .gform_wrapper input[type="text"]:focus-visible,
.cj-optin .gform_wrapper input[type="email"]:focus-visible { outline: none; border-color: var(--cj-color-navy); box-shadow: 0 0 0 3px rgba(45, 70, 117, 0.15); }
.cj-optin .gform_wrapper .gform_footer,
.cj-optin .gform_wrapper .gform-footer { display: flex; justify-content: center; margin: var(--cj-space-4, 1rem) 0 0; padding: 0; }
.cj-optin .gform_wrapper .gform_button,
.cj-optin .gform_wrapper .gform-button {
	width: auto;
	inline-size: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem;
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	border: none;
	border-radius: var(--cj-radius-pill);
	cursor: pointer;
	background-color: var(--cj-color-gold-panel);
	color: var(--cj-color-white);
	transition: background-color var(--cj-transition), transform var(--cj-transition);
}
/* HP-15: the form's button setting adds .gform-button--width-full (a 720px bar). Jen's
   design is a centred pill: auto width, at least 230px.
   GF foundation CSS sets inline-size:100% !important on the submit input, so this needs
   !important and a higher specificity to win. */
.cj-optin .gform_wrapper .gform_footer input[type="submit"].gform-button--width-full { width: auto !important; inline-size: auto !important; min-inline-size: 230px; }
.cj-optin .gform_wrapper .gform_button:hover { background-color: var(--cj-color-gold-dark); transform: translateY(-1px); }
.cj-optin .gform_wrapper .gform_validation_errors,
.cj-optin .gform_wrapper .validation_message,
.cj-optin .gform_wrapper .gfield_validation_message { color: var(--cj-color-alert); background: none; border: 0; box-shadow: none; font-size: 0.875rem; margin: .25rem 0 0; padding: 0; text-align: center; }
.cj-optin .gform_wrapper .gform_validation_errors > h2 { color: var(--cj-color-alert); font-size: 0.875rem; margin: 0 0 .5rem; }
/* Hover goes navy: white on gold-dark is 2.99:1. A separate rule so the line above stays untouched. */
.cj-optin .gform_wrapper .gform_button:hover { background-color: var(--cj-color-navy); }
.cj-optin .gform_wrapper .gfield_error input[type="text"],
.cj-optin .gform_wrapper .gfield_error input[type="email"] { border-color: var(--cj-color-alert); }
.cj-optin .gform_confirmation_message { color: var(--cj-color-navy); font-size: 1rem; text-align: center; margin: var(--cj-space-4, 1rem) 0 0; }

@media (max-width: 600px) {
	.wp-block-post-template.cj-blog-grid { grid-template-columns: 1fr; }
}

/* --- Single blog post (single.html) --- */
.cj-post-hero .wp-block-cover__inner-container { max-width: var(--cj-content-width, 1120px); margin-inline: auto; padding-inline: var(--cj-space-4, 1rem); width: 100%; }
.cj-post-hero__eyebrow { font-size: .8rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: var(--cj-color-gold, #d4af37); }
.cj-post-hero__eyebrow a { color: inherit; text-decoration: none; }
.cj-post-hero__title { color: var(--cj-color-white, #fff); margin: .35rem 0; max-width: 28ch; }
.cj-post-hero__date { font-size: .8rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: .06em; color: rgba(255,255,255,.85); }

.cj-single-content { max-width: 760px; margin-block: var(--cj-space-8, 3rem); }
.cj-single-content p { line-height: var(--cj-line-height-normal, 1.7); }
.cj-single-content h2, .cj-single-content h3 { font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); margin-top: var(--cj-space-6, 2rem); }
.cj-post-tags { margin-top: var(--cj-space-6, 2rem); padding-top: var(--cj-space-4, 1rem); border-top: 1px solid var(--cj-color-line, #e6e6e6); font-size: .85rem; color: var(--cj-color-mid-gray, #5a5a5a); }
.cj-post-tags a { color: var(--cj-color-gold-dark, #9a7b1f); }

/* ==========================================================================
   TEAM  (cj/team block: grid + single-member header)
   ========================================================================== */

/* Grid (Our Team page) */
.cj-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--cj-space-5, 1.5rem); }
.cj-team-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.cj-team-card:focus-visible { outline: 2px solid var(--cj-color-gold, #b8860b); outline-offset: 2px; }
.cj-team-card__media { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--cj-radius-md, 8px); background: var(--cj-color-light-gray, #f2f2f2); }
.cj-team-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cj-team-card:hover .cj-team-card__img { transform: scale(1.04); }
.cj-team-card__img--placeholder { display: block; width: 100%; height: 100%; }
.cj-team-card__name { margin-top: var(--cj-space-3, .75rem); font-family: var(--cj-font-heading, serif); font-size: 1.1rem; color: var(--cj-color-navy, #1a2b4a); }
.cj-team-card__role { font-size: .75rem; text-transform: uppercase; letter-spacing: var(--cj-letter-spacing-caps, .08em); color: var(--cj-color-gold-dark, #9a7b1f); }

/* Single member header */
.cj-team-member__head { display: grid; grid-template-columns: 260px 1fr; gap: var(--cj-space-6, 2rem); align-items: start; margin-block: var(--cj-space-8, 3rem); }
.cj-team-member__photo { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--cj-radius-lg, 12px); background: var(--cj-color-light-gray, #f2f2f2); }
.cj-team-member__photo-img { width: 100%; height: 100%; object-fit: cover; }
.cj-team-member__name { margin: 0 0 .15rem; font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); }
.cj-team-member__role { display: inline-block; font-size: .8rem; font-weight: var(--cj-font-weight-bold, 700); text-transform: uppercase; letter-spacing: var(--cj-letter-spacing-caps, .08em); color: var(--cj-color-gold-dark, #9a7b1f); }
.cj-team-member__phone { margin: var(--cj-space-3, .75rem) 0 .25rem; font-weight: var(--cj-font-weight-medium, 500); }
.cj-team-member__phone a { color: var(--cj-color-navy, #1a2b4a); text-decoration: none; }
.cj-team-member__linkedin { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--cj-color-gold-dark, #9a7b1f); text-decoration: none; }
.cj-team-member__linkedin span { font-weight: 700; }

@media (max-width: 600px) {
	.cj-team-member__head { grid-template-columns: 1fr; }
	.cj-team-member__photo { max-width: 220px; }
}

/* ==========================================================================
   CONTACT  (page-contact.html)  +  shared humans block
   ========================================================================== */
/* Contact page side gutter: at 375 the Speak to Humans block, form card and gift box ran
   edge to edge (constrained children get margin-inline:auto, so pad the main instead). */
.cj-contact-main { padding-inline: var(--cj-space-4, 1rem); }

.cj-contact-card { max-width: 900px; margin: 0 auto var(--cj-space-8, 3rem); padding: var(--cj-space-5, 1.5rem); border: 1px solid var(--cj-color-gold, #c9a227); border-radius: var(--cj-radius-lg, 12px); background: var(--cj-color-white, #fff); }
.cj-contact-card > p { color: var(--cj-color-navy, #1a2b4a); }

/* Gravity Forms form 1 "Contact Us" inside the contact card. Scoped so no other form changes.
   Layout comes from CSS only (no form-field changes): First | Last, Email | Phone, then
   Message, Newsletter Opt-in, Turnstile and the button full width. Grid placement follows
   DOM order, so Tab order matches what you see. */
.cj-contact-card .gform_wrapper form {
	/* Set on the form, not the wrapper: GF prints its own variables on #gform_wrapper_N. */
	--gf-ctrl-btn-bg-color-primary: var(--cj-color-gold-panel);
	--gf-ctrl-btn-bg-color-hover-primary: var(--cj-color-navy);
	--gf-ctrl-btn-bg-color-focus-primary: var(--cj-color-navy);
	--gf-ctrl-btn-color-primary: var(--cj-color-white);
	--gf-ctrl-btn-color-hover-primary: var(--cj-color-white);
	--gf-ctrl-btn-color-focus-primary: var(--cj-color-white);
	--gf-ctrl-btn-border-color-primary: var(--cj-color-gold-panel);
	--gf-ctrl-btn-radius: var(--cj-radius-pill);
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-letter-spacing: var(--cj-letter-spacing-wide);
	--gf-ctrl-border-color: var(--cj-color-gold);
	--gf-ctrl-border-color-hover: var(--cj-color-gold);
	--gf-ctrl-border-color-focus: var(--cj-color-navy);
	--gf-ctrl-radius: var(--cj-radius-sm);
	--gf-color-in-ctrl-primary: var(--cj-color-navy);
	--gf-color-in-ctrl-primary-rgb: 45, 70, 117;
	--gf-color-primary: var(--cj-color-navy);
	--gf-color-primary-rgb: 45, 70, 117;
	--gf-ctrl-label-color-primary: var(--cj-color-navy);
	--gf-ctrl-label-color-secondary: var(--cj-color-foreground);
	--gf-ctrl-choice-check-color: var(--cj-color-navy);
	--gf-ctrl-accent-color: var(--cj-color-navy);
	margin: 0;
}
.cj-contact-card .gform_wrapper { margin-top: var(--cj-space-4, 1rem); }
.cj-contact-card .gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--cj-space-4, 1rem) var(--cj-space-3, .75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Everything full width by default (message, opt-in, Turnstile, anything added later)… */
.cj-contact-card .gform_wrapper .gfield { grid-column: 1 / -1; margin: 0; padding: 0; min-width: 0; }
/* …except the short inputs, which pair up two per row in DOM order. */
.cj-contact-card .gform_wrapper .gfield--type-text,
.cj-contact-card .gform_wrapper .gfield--type-email,
.cj-contact-card .gform_wrapper .gfield--type-phone { grid-column: auto / span 1; }
.cj-contact-card .gform_wrapper .gform_hidden,
.cj-contact-card .gform_wrapper .gform_validation_container { display: none; }

.cj-contact-card .gform_wrapper .gfield_label,
.cj-contact-card .gform_wrapper .gform-field-label:not(.gform-field-label--type-inline) {
	display: block;
	margin: 0 0 var(--cj-space-2, .5rem);
	font-family: var(--cj-font-body);
	font-size: 0.75rem;
	font-weight: var(--cj-font-weight-medium);
	text-transform: uppercase;
	letter-spacing: var(--cj-letter-spacing-caps);
	color: var(--cj-color-navy);
}
.cj-contact-card .gform_wrapper .gfield_required_text {
	margin-left: .35em;
	font-size: 0.6875rem;
	font-weight: var(--cj-font-weight-light);
	text-transform: none;
	letter-spacing: 0;
	color: var(--cj-color-text-muted);
}
.cj-contact-card .gform_wrapper .ginput_container { margin: 0; }
.cj-contact-card .gform_wrapper input[type="text"],
.cj-contact-card .gform_wrapper input[type="email"],
.cj-contact-card .gform_wrapper input[type="tel"],
.cj-contact-card .gform_wrapper textarea {
	width: 100%;
	min-height: 0;
	padding: 0.625rem 0.875rem;
	font-family: var(--cj-font-body);
	font-size: 1rem; /* 16px: stops iOS zooming on focus */
	font-weight: var(--cj-font-weight-light);
	line-height: 1.4;
	color: var(--cj-color-foreground);
	background-color: var(--cj-color-white);
	border: 1.5px solid var(--cj-color-gold);
	border-radius: var(--cj-radius-sm);
	box-shadow: none;
	transition: border-color var(--cj-transition), box-shadow var(--cj-transition);
	appearance: none;
	-webkit-appearance: none;
}
/* Beats GF's .gform-theme--foundation .gfield textarea.large { min-block-size: 18rem }. */
.cj-contact-card .gform_wrapper .gfield textarea.large { height: 9rem; min-height: 6rem; min-block-size: 6rem; resize: vertical; }
.cj-contact-card .gform_wrapper input::placeholder,
.cj-contact-card .gform_wrapper textarea::placeholder { color: var(--cj-color-text-muted); font-size: 0.875rem; }
.cj-contact-card .gform_wrapper input[type="text"]:focus-visible,
.cj-contact-card .gform_wrapper input[type="email"]:focus-visible,
.cj-contact-card .gform_wrapper input[type="tel"]:focus-visible,
.cj-contact-card .gform_wrapper textarea:focus-visible { outline: none; border-color: var(--cj-color-navy); box-shadow: 0 0 0 3px rgba(45, 70, 117, 0.25); }

/* Newsletter opt-in: one checkbox, its text is the visible label. */
.cj-contact-card .gform_wrapper .gchoice { display: flex; align-items: flex-start; gap: var(--cj-space-2, .5rem); }
.cj-contact-card .gform_wrapper .gfield-choice-input { flex: 0 0 auto; margin-top: .15rem; }
.cj-contact-card .gform_wrapper .gform-field-label--type-inline { font-family: var(--cj-font-body); font-size: 0.9375rem; color: var(--cj-color-foreground); }
.cj-contact-card .gform_wrapper .gfield-choice-input:focus-visible { outline: 2px solid var(--cj-color-navy); outline-offset: 2px; }

.cj-contact-card .gform_wrapper .gform_footer,
.cj-contact-card .gform_wrapper .gform-footer { display: flex; justify-content: flex-start; margin: var(--cj-space-5, 1.5rem) 0 0; padding: 0; }
/* GF's button rule sets most of these through its own --gf-ctrl-btn-* variables (set on the form above); these are the fallback. */
.cj-contact-card .gform-theme.gform_wrapper .gform_footer .gform_button,
.cj-contact-card .gform-theme.gform_wrapper .gform_footer .gform-button {
	width: auto;
	inline-size: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem;
	font-family: var(--cj-font-body);
	font-size: 0.875rem;
	font-weight: var(--cj-font-weight-medium);
	letter-spacing: var(--cj-letter-spacing-wide);
	text-transform: uppercase;
	border: none;
	border-radius: var(--cj-radius-pill);
	cursor: pointer;
	background-color: var(--cj-color-gold-panel);
	color: var(--cj-color-white);
	transition: background-color var(--cj-transition), transform var(--cj-transition);
}
.cj-contact-card .gform-theme.gform_wrapper .gform_footer .gform_button:hover { background-color: var(--cj-color-navy); transform: translateY(-1px); }
.cj-contact-card .gform-theme.gform_wrapper .gform_footer .gform_button:focus-visible { outline: 2px solid var(--cj-color-navy); outline-offset: 3px; }

.cj-contact-card .gform_wrapper .gform_validation_errors { margin: 0 0 var(--cj-space-4, 1rem); padding: var(--cj-space-3, .75rem); border: 1px solid var(--cj-color-alert); border-radius: var(--cj-radius-sm); background: #FBF1F1; box-shadow: none; }
.cj-contact-card .gform_wrapper .gform_validation_errors > h2 { margin: 0; font-family: var(--cj-font-body); font-size: 0.9375rem; color: var(--cj-color-alert); }
.cj-contact-card .gform_wrapper .validation_message,
.cj-contact-card .gform_wrapper .gfield_validation_message { margin: .25rem 0 0; padding: 0; border: 0; background: none; font-size: 0.875rem; color: var(--cj-color-alert); }
.cj-contact-card .gform_wrapper .gfield_error input,
.cj-contact-card .gform_wrapper .gfield_error textarea { border-color: var(--cj-color-alert); }
.cj-contact-card .gform_confirmation_message { font-size: 1rem; color: var(--cj-color-navy); }

.cj-gift { max-width: 760px; margin: 0 auto var(--cj-space-8, 3rem); text-align: center; padding: var(--cj-space-6, 2rem); background: var(--cj-color-off-white, #f7f5f0); border-radius: var(--cj-radius-lg, 12px); }
.cj-gift h2 { font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); }
.cj-gift__sub { font-weight: var(--cj-font-weight-bold, 700); color: var(--cj-color-gold-dark, #9a7b1f); text-transform: uppercase; letter-spacing: var(--cj-letter-spacing-caps, .08em); }

/* Floating labels (form 1), as on the booking page (#71): the field name sits in gray
   caps inside each empty box and moves up, small and navy, on focus, on input or on
   autofill, so it never disappears. The real <label> stays visible and stays each field's
   accessible name; placeholder=" " (inc/contact-form.php) only lets CSS spot an empty
   field. Resting #6B6B6B 5.33:1, floated navy 9.36:1. Without :has() the labels stay
   above the fields (the rules above). The opt-in checkbox is left alone. */
@supports selector(:has(*)) {
	.cj-contact-card .gform_wrapper :is(.gfield--type-text, .gfield--type-email, .gfield--type-phone, .gfield--type-textarea) { position: relative; }
	.cj-contact-card .gform_wrapper :is(.gfield--type-text, .gfield--type-email, .gfield--type-phone) input {
		height: 3.25rem;
		padding-top: 1.25rem;
		padding-bottom: 0.25rem;
	}
	.cj-contact-card .gform_wrapper .gfield--type-textarea textarea { padding-top: 1.625rem; }
	.cj-contact-card .gform_wrapper :is(.gfield--type-text, .gfield--type-email, .gfield--type-phone, .gfield--type-textarea) > .gfield_label {
		position: absolute;
		top: 1.625rem; /* middle of the 3.25rem box */
		left: calc(0.875rem + 1.5px);
		right: 0.875rem;
		z-index: 1;
		margin: 0;
		transform: translateY(-50%);
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		pointer-events: none;
		font-size: 0.8125rem;
		line-height: 1.2;
		color: #6B6B6B; /* 5.33:1 on white */
		transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
	}
	/* The message box is tall: its label rests on the first line, not the middle. */
	.cj-contact-card .gform_wrapper .gfield--type-textarea > .gfield_label { top: 1.25rem; }
	/* Floated: focus or typed text. */
	.cj-contact-card .gform_wrapper .gfield:has(input:focus, textarea:focus) > .gfield_label,
	.cj-contact-card .gform_wrapper .gfield:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) > .gfield_label {
		top: 0.4rem;
		transform: none;
		font-size: 0.6875rem;
		color: var(--cj-color-navy, #2D4675); /* 9.36:1 */
	}
	/* Autofill, in rules of their own: a browser that doesn't know one of these
	   pseudo-classes drops only that rule. */
	.cj-contact-card .gform_wrapper .gfield:has(input:autofill) > .gfield_label { top: 0.4rem; transform: none; font-size: 0.6875rem; color: var(--cj-color-navy, #2D4675); }
	.cj-contact-card .gform_wrapper .gfield:has(input:-webkit-autofill) > .gfield_label { top: 0.4rem; transform: none; font-size: 0.6875rem; color: var(--cj-color-navy, #2D4675); }
	/* "(Required)" rides along in the same muted gray (5.33:1). */
	.cj-contact-card .gform_wrapper .gfield > .gfield_label .gfield_required_text { color: #6B6B6B; font-size: inherit; }
}
@media (prefers-reduced-motion: reduce) {
	.cj-contact-card .gform_wrapper .gfield > .gfield_label { transition: none; }
}

@media (max-width: 600px) {
	.cj-contact-card .gform_wrapper .gform_fields { grid-template-columns: 1fr; }
}

/* ==========================================================================
   OUR TEAM  (/team/, page-team.html; Jen's catholicjourneys-our-team-page.pdf)
   Band: Trevi Fountain photo, "Our Team" eyebrow + the page title as the H1. The
   rest is page content (core blocks) with these classes: cj-team-photo (group
   photo), cj-team-rule, cj-team-intro (columns: text + cj-team-cards), cj-team-card
   (image + caption), cj-team-quote (pull quote).
   ========================================================================== */
.cj-page-hero--team {
	background-image: url(../images/team-hero-trevi-1600x441.jpg);
	background-image: image-set(url(../images/team-hero-trevi-1600x441.webp) type("image/webp"), url(../images/team-hero-trevi-1600x441.jpg) type("image/jpeg"));
	background-position: center 40%;
}
.cj-page-hero__text { margin: 0; }
.cj-page-hero__eyebrow {
	margin: 0 0 var(--cj-space-2, .5rem);
	font-family: var(--cj-font-heading, serif);
	font-size: clamp(1.75rem, 2.6vw, 2.5rem);
	line-height: 1.1;
	color: var(--cj-color-white, #fff);
}
.cj-page-hero--team .cj-page-hero__title {
	font-family: var(--cj-font-body, sans-serif);
	font-size: .9375rem;
	font-weight: var(--cj-font-weight-bold, 700);
	letter-spacing: var(--cj-letter-spacing-caps, .08em);
	line-height: 1.3;
	text-transform: uppercase;
}

.cj-team-main { padding-inline: var(--cj-space-5, 1.5rem); }
.cj-team { box-sizing: border-box; max-width: calc(var(--cj-wide-width, 1280px) - 80px); margin: 0 auto; padding-block: var(--cj-space-9, 4rem) var(--cj-space-9, 4rem); }
.cj-team > * { margin-block: 0; }

/* Group photo: rounded, full container width, a wide crop. */
.cj-team .cj-team-photo { margin: 0; }
.cj-team .cj-team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 40%; border-radius: 30px; }

/* Thin gold rules between sections (decorative). */
/* Beats core's short default separator (.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: 100px }). */
.cj-team .wp-block-separator.cj-team-rule:not(.is-style-dots) { margin-block: var(--cj-space-9, 4rem); border: 0; border-top: 1px solid var(--cj-color-gold, #BFB266); opacity: 1; width: 100%; max-width: none; }

/* Intro: text left, 2x2 cards right. */
.cj-team .cj-team-intro { gap: var(--cj-space-8, 3rem); align-items: center; margin: 0; }
.cj-team .cj-team-intro h2 { margin: 0 0 var(--cj-space-5, 1.5rem); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.15; color: var(--cj-color-navy, #2D4675); }
.cj-team .cj-team-intro p { margin: 0 0 var(--cj-space-5, 1.5rem); font-weight: var(--cj-font-weight-light, 300); font-size: 1.0625rem; line-height: 1.6; color: var(--cj-color-foreground, #333); }
.cj-team .cj-team-intro .wp-block-buttons { margin-top: var(--cj-space-6, 2rem); }

.cj-team .cj-team-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cj-space-3, .75rem); margin: 0; }
.cj-team .cj-team-cards > * { margin: 0; }
/* Photo card: rounded photo, Jen's blue tint (navy wash, deepest at the foot), the
   name in white over it. The shade under the name is at least 85% navy, so white
   Unna stays AA on any photo. Not a link yet. */
.cj-team .cj-team-card {
	position: relative;
	isolation: isolate;
	margin: 0;
	overflow: hidden;
	border-radius: 30px;
	aspect-ratio: 295 / 225;
	background: var(--cj-color-navy, #2D4675);
}
.cj-team .cj-team-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cj-team .cj-team-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(29,46,82,0) 45%, rgba(29,46,82,.6) 70%, rgba(29,46,82,.92) 100%),
		linear-gradient(135deg, rgba(45,70,117,.45) 0%, rgba(45,70,117,.1) 45%, rgba(45,70,117,0) 70%),
		rgba(45,70,117,.18);
}
.cj-team .cj-team-card figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: var(--cj-space-4, 1rem) var(--cj-space-5, 1.5rem) var(--cj-space-4, 1rem);
	font-family: var(--cj-font-heading, serif);
	font-size: clamp(1.125rem, 1.7vw, 1.5rem);
	line-height: 1.15;
	text-align: left;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.cj-team .cj-team-card figcaption em { font-style: italic; }

/* Pull quote: centered, gold quote mark, gold caps attribution. */
.cj-team .cj-team-quote { margin: 0 auto; padding: 0; border: 0; max-width: 44rem; text-align: center; }
.cj-team .cj-team-quote p { text-wrap: balance; }
.cj-team .cj-team-quote blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.cj-team .cj-team-quote blockquote::before {
	content: "\201C";
	display: block;
	height: .6em;
	margin-bottom: var(--cj-space-4, 1rem);
	font-family: var(--cj-font-heading, serif);
	font-size: 5rem;
	line-height: 1;
	color: var(--cj-color-gold, #BFB266);
}
.cj-team .cj-team-quote p { margin: 0; font-style: normal; font-family: var(--cj-font-heading, serif); font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.25; color: var(--cj-color-navy, #2D4675); }
/* Gold Panel #827737 on white for the small caps (4.52:1, AA); brand gold would be 2.1:1. */
.cj-team .cj-team-quote cite { display: block; margin-top: var(--cj-space-6, 2rem); font-family: var(--cj-font-body, sans-serif); font-style: normal; font-size: .9375rem; font-weight: var(--cj-font-weight-medium, 500); letter-spacing: var(--cj-letter-spacing-wide, .05em); text-transform: uppercase; color: var(--cj-color-gold-panel, #827737); }

@media (max-width: 781px) {
	.cj-team-main { padding-inline: var(--cj-space-4, 1rem); }
	.cj-team { padding-block: var(--cj-space-7, 2.5rem); }
	/* 5:2 keeps all four faces in (3:2 cut Jimmy and Fr. Paul off). */
	.cj-team .cj-team-photo img { aspect-ratio: 5 / 2; border-radius: 20px; }
	.cj-team .wp-block-separator.cj-team-rule:not(.is-style-dots) { margin-block: var(--cj-space-7, 2.5rem); }
	.cj-team .cj-team-intro { gap: var(--cj-space-6, 2rem); }
	.cj-team .cj-team-card { border-radius: 20px; }
	.cj-team .cj-team-card figcaption { padding: var(--cj-space-3, .75rem); font-size: 1.0625rem; }
	.cj-team .cj-team-quote blockquote::before { font-size: 4rem; }
	.cj-page-hero--team { background-image: image-set(url(../images/team-hero-trevi-800x400.webp) type("image/webp"), url(../images/team-hero-trevi-1600x441.jpg) type("image/jpeg")); }
}

/* ==========================================================================
   HOMEPAGE  (front-page.html)
   ========================================================================== */
/* Hero — Meteora photo, natural colour, darkened only behind the copy column (HP-02).
   The overlay lives in --cj-home-hero-overlay so the image layer can change on its own.
   Desktop: black .6 -> .5 under the text (white text clears 4.5:1 over the photo there,
   measured), fading to clear by 70%. Mobile: the copy spans the full width, so a flat .55. */
.cj-home-hero { --cj-home-hero-overlay: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.15) 58%, rgba(0,0,0,0) 70%); }
@media (min-width: 783px) and (max-width: 1199px) {
	/* Narrower screens: the copy column reaches further across the photo. */
	.cj-home-hero { --cj-home-hero-overlay: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.2) 68%, rgba(0,0,0,0) 80%); }
}
.cj-home-hero {
	background-color: var(--cj-color-navy, #2D4675);
	background-image:
		var(--cj-home-hero-overlay),
		url(../images/home-hero-meteora-1600x1066.jpg);
	/* WebP first (browsers without image-set() keep the JPG line above). The preload in
	   inc/performance.php must stay in step with the URLs here. */
	background-image:
		var(--cj-home-hero-overlay),
		image-set(url(../images/home-hero-meteora-1600x1066.webp) type("image/webp"), url(../images/home-hero-meteora-1600x1066.jpg) type("image/jpeg"));
	background-size: cover;
	background-position: center;
	color: var(--cj-color-white, #fff);
	padding-block: var(--cj-space-9, 4rem);
}
.cj-home-hero__inner { max-width: var(--cj-wide-width, 1280px); margin: 0 auto; padding-inline: var(--cj-space-6, 2rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--cj-space-7, 2.5rem); align-items: center; }
.cj-home-hero__copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
/* WP's layout support stamps .is-layout-constrained on this div, whose children get
   margin-inline:auto !important — that centred each line at its own width (P1 stagger). */
.cj-home-hero__copy.is-layout-constrained > *,
.cj-home-hero__copy > * { margin-left: 0 !important; margin-right: 0 !important; }
.cj-home-hero__eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: var(--cj-letter-spacing-caps, .08em); text-transform: uppercase; color: #D9CF95; margin: 0; } /* AA gold on dark */
.cj-home-hero__copy .cj-home-hero__title { color: #fff; margin: .35rem 0 var(--cj-space-4, 1rem); max-width: 22ch; }
.cj-home-hero__copy .cj-home-hero__lead { color: #fff; max-width: 52ch; margin: 0 0 var(--cj-space-5, 1.5rem); }
.cj-home-hero__card { max-width: 380px; justify-self: end; width: 100%; background: var(--cj-color-white, #fff); color: var(--cj-color-navy, #2D4675); border-radius: 30px; padding: var(--cj-space-5, 1.5rem); box-shadow: var(--cj-shadow-lg, 0 12px 32px rgba(0,0,0,.2)); }
.cj-home-hero__card h2 { font-family: var(--cj-font-heading, serif); margin: 0 0 var(--cj-space-4, 1rem); font-size: 1.75rem; line-height: 1.05; }

/* Light button: white pill, navy text (hero, CTA band, hub search card). On a Button
   block the cj-btn classes sit on the wrapper, which stays unstyled; the link carries
   it all. A plain <button class="cj-btn cj-btn--light"> (hub "Search Now") had no light
   rule and showed the browser's gray button with no hover. */
.wp-block-button.cj-btn--light .wp-block-button__link,
.cj-btn--light:not(.wp-block-button) { background-color: var(--cj-color-white, #fff); color: var(--cj-color-navy, #2D4675); }
.wp-block-button.cj-btn--light .wp-block-button__link:hover,
.wp-block-button.cj-btn--light .wp-block-button__link:focus-visible,
.cj-btn--light:not(.wp-block-button):hover,
.cj-btn--light:not(.wp-block-button):focus-visible { background-color: var(--cj-color-off-white, #F7F6F2); color: var(--cj-color-navy, #2D4675); }
.cj-search-widget--home { display: flex; flex-direction: column; gap: var(--cj-space-3, .75rem); }
.cj-search-widget--home .cj-search-widget__row { display: flex; gap: var(--cj-space-2, .5rem); }
.cj-search-widget--home .cj-search-widget__flexible { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--cj-color-navy, #2D4675); } /* base rule is white for the navy mega menu */
/* HP-03: "I'm flexible" sits right, label before the box. Visual only (row-reverse): one
   control, so Tab order is unchanged. */
.cj-search-widget--home .cj-search-widget__flexible { align-self: flex-end; flex-direction: row-reverse; }

/* HP-05: these sections hold raw HTML before their first block, so WP's layout support
   stamps .is-layout-constrained on an inner div, not the section, and they rendered flush
   to x=0. Not a Site Editor override (front-page resolves to the theme file on staging and
   Local, checked 11/20). Contain them here. */
.cj-why, .cj-home-journal { box-sizing: border-box; max-width: calc(var(--cj-wide-width, 1280px) - 80px); margin-inline: auto; padding-inline: var(--cj-space-5, 1.5rem); }
.cj-why { margin-block: var(--cj-space-9, 4rem); }
.cj-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cj-space-7, 2.5rem); align-items: center; }
.cj-why__copy h2 { font-family: var(--cj-font-heading, serif); color: var(--cj-color-navy, #1a2b4a); text-wrap: balance; }
.cj-why__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--cj-space-4, 1rem); }
/* HP-06 photo tiles (block cj/why-tiles): photo + dark bottom gradient, big Unna title. */
.cj-why__tiles li { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 260px; padding: var(--cj-space-5, 1.5rem); border-radius: 30px; background: var(--cj-color-navy, #2D4675); color: #fff; font-family: var(--cj-font-heading, serif); font-size: 1.75rem; line-height: 1.05; }
.cj-why__tiles li img.cj-why__tile-img { /* beats style.css img[width][height]{height:auto} */ position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cj-why__tiles li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.85) 100%); }
.cj-why__tile-title { max-width: 12ch; text-shadow: 0 1px 2px rgba(0,0,0,.45); }

/* HP-04 destination strip (block cj/destination-tiles): full-bleed 4-up row, 265px tall,
   no carousel. 2×2 on mobile. */
.cj-dest-tiles { margin-block: 0; }
.wp-site-blocks .cj-dest-tiles, main > .cj-dest-tiles { margin-block-start: 0; }
.cj-dest-tiles__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.cj-dest-tiles__item { margin: 0; }
.cj-dest-tiles__link { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: 265px; padding: var(--cj-space-5, 1.5rem); overflow: hidden; color: #fff; text-decoration: none; background: var(--cj-color-navy, #2D4675); }
.cj-dest-tiles__link img.cj-dest-tiles__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cj-dest-tiles__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.85) 100%); }
.cj-dest-tiles__link:hover img.cj-dest-tiles__img { transform: scale(1.04); }
.cj-dest-tiles__link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--cj-color-navy, #2D4675); }
.cj-dest-tiles__text { display: flex; flex-direction: column; gap: .25rem; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.cj-dest-tiles__name { font-family: var(--cj-font-heading, serif); font-size: clamp(1.5rem, 2.3vw, 2.125rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.cj-dest-tiles__years { font-size: .8rem; font-weight: var(--cj-font-weight-bold, 700); letter-spacing: var(--cj-letter-spacing-wide, .05em); }
.cj-dest-tiles__count { font-size: .8rem; letter-spacing: var(--cj-letter-spacing-wide, .05em); opacity: .9; }
/* All-destinations grid (/destinations/): rounded tiles with gaps, 3 / 2 / 1 columns. */
.cj-dest-tiles--grid { max-width: var(--cj-wide-width, 1280px); margin: 0 auto; padding: 0 var(--cj-space-5, 1.5rem) var(--cj-space-9, 4rem); }
.cj-dest-tiles--grid .cj-dest-tiles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cj-space-5, 1.5rem); }
.cj-dest-tiles--grid .cj-dest-tiles__link { height: 300px; border-radius: var(--cj-radius-lg, 16px); }
.cj-archive-hero__intro { max-width: 60ch; margin: var(--cj-space-3, .75rem) auto 0; color: var(--cj-color-text-muted, #595959); }
@media (max-width: 1023px) { .cj-dest-tiles--grid .cj-dest-tiles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.cj-dest-tiles--grid { padding-inline: var(--cj-space-4, 1rem); }
	.cj-dest-tiles--grid .cj-dest-tiles__list { grid-template-columns: 1fr; gap: var(--cj-space-4, 1rem); }
	.cj-dest-tiles--grid .cj-dest-tiles__link { height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .cj-dest-tiles__link img.cj-dest-tiles__img { transition: none; } .cj-dest-tiles__link:hover img.cj-dest-tiles__img { transform: none; } }

/* HP-08: Jen's basilica photo (St. Paul Outside the Walls) runs full width behind the
   band, and the gold rounded panel overlaps its bottom edge and runs on into the gray
   testimonial band below, as in Jen's comp (no white between the two bands). The band
   is a block formatting context, so the panel's negative bottom margin ends the band
   (and the photo) --cj-cta-overlap above the panel's foot; the next section starts
   there, and z-index 1 keeps the panel over it. The testimonial band adds the same
   overlap to its top padding, so nothing in it sits under the panel. Three centered
   columns split by thin white rules. White text on Gold Panel #827737 (4.52:1, AA at
   any size); the text never sits on the photo. Focus rings inside the panel are white
   (brand gold would be 2.1:1 on it). The photo is below the fold: a sized WebP (1600w;
   800w on phones) with a JPEG fallback, no preload. */
.cj-cta-band,
.cj-cta-band + .cj-testimonials { --cj-cta-overlap: 5rem; --cj-cta-gap: clamp(6rem, 13.9vw, 12.5rem); }
.cj-cta-band { position: relative; z-index: 1; isolation: isolate; display: flow-root; background: var(--cj-color-white, #fff); padding-block: clamp(9rem, 18vw, 16.25rem) 0; padding-inline: var(--cj-space-5, 1.5rem); }
.cj-cta-band::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: #2D4675 url(../images/home-cta-basilica-1600x900.jpg) center 30% / cover no-repeat;
	background-image: image-set(url(../images/home-cta-basilica-1600x900.webp) type("image/webp"), url(../images/home-cta-basilica-1600x900.jpg) type("image/jpeg"));
}
/* No block gap above the testimonial band; its top padding clears the panel. */
.cj-cta-band + .cj-testimonials { margin-block-start: 0; padding-top: calc(var(--cj-cta-overlap) + var(--cj-cta-gap)); }
.cj-cta-band__row { box-sizing: border-box; max-width: 1200px; margin: 0 auto calc(-1 * var(--cj-cta-overlap)); padding: clamp(2.5rem, 5vw, 4.5rem) var(--cj-space-5, 1.5rem) clamp(2.75rem, 5.556vw, 5rem); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cj-color-gold-panel, #827737); border-radius: 50px; }
.cj-cta-band__row :focus-visible { outline-color: var(--cj-color-white, #fff); }
.cj-cta-block { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--cj-color-white, #fff); padding: 0 var(--cj-space-5, 1.5rem); }
.cj-cta-block + .cj-cta-block { border-left: 1px solid rgba(255,255,255,.75); }
.cj-cta-block h3 { font-family: var(--cj-font-heading, serif); color: var(--cj-color-white, #fff); margin-top: 0; font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.cj-cta-block p { color: var(--cj-color-white, #fff); font-size: .9rem; max-width: 30ch; }
.cj-cta-block .wp-block-buttons { margin-top: auto; justify-content: center; }


.cj-home-journal { margin-block: var(--cj-space-9, 4rem); }
.cj-home-journal__query { margin-bottom: var(--cj-space-6, 2rem); }
/* HP-10/11: gold-filled cards, radius 30px, big Unna titles. White text on Gold Panel
   #827737 (4.52:1), as in Jen's comp. The focus ring sits outside the card on white, so
   it stays navy. Images fill a 16:9 top (the wide
   Medjugorje banner was letterboxed: style.css img[width][height]{height:auto} won). */
.cj-home-journal .wp-block-post-template.cj-blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cj-home-journal .cj-blog-card { background: var(--cj-color-gold-panel, #827737); border: 0; border-radius: 30px; }
.cj-home-journal .cj-blog-card__media { aspect-ratio: 16 / 9; }
.cj-home-journal .cj-blog-card__media .cj-blog-card__img { width: 100%; height: 100%; object-fit: cover; }
.cj-home-journal .cj-blog-card__body { padding: var(--cj-space-5, 1.5rem); }
.cj-home-journal .cj-blog-card__title { font-size: 1.75rem; line-height: 0.95; color: var(--cj-color-white, #fff); }
.cj-home-journal .cj-blog-card__tag,
.cj-home-journal .cj-blog-card__excerpt,
.cj-home-journal .cj-blog-card__more { color: var(--cj-color-white, #fff); }
.cj-home-journal .cj-blog-card__link:focus-visible { outline-color: var(--cj-color-navy, #2D4675); }
/* "Read the Journal": outline button (this one only). 2px border with 2px less padding keeps the 12px 32px button's size. #827737 on white = 4.52:1. */
.cj-home-journal .wp-block-button.cj-btn--primary .wp-block-button__link { background-color: transparent; color: var(--cj-color-gold-panel, #827737); border: 2px solid var(--cj-color-gold-panel, #827737); padding: 10px 30px; }
.cj-home-journal .wp-block-button.cj-btn--primary .wp-block-button__link:hover,
.cj-home-journal .wp-block-button.cj-btn--primary .wp-block-button__link:focus-visible { background-color: var(--cj-color-gold-panel, #827737); color: var(--cj-color-white, #fff); }
.cj-home-journal .wp-block-button.cj-btn--primary .wp-block-button__link:focus-visible { outline: 3px solid var(--cj-color-navy, #2D4675); outline-offset: 3px; }

@media (max-width: 782px) {
	.cj-home-hero { --cj-home-hero-overlay: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)); background-image: var(--cj-home-hero-overlay), url(../images/home-hero-meteora-1600x1066.jpg); }
	.cj-home-hero { background-image: var(--cj-home-hero-overlay), image-set(url(../images/home-hero-meteora-800x533.webp) type("image/webp"), url(../images/home-hero-meteora-1600x1066.jpg) type("image/jpeg")); }
	.cj-home-hero__inner { padding-inline: var(--cj-space-4, 1rem); }
	.cj-home-hero__card { justify-self: stretch; max-width: none; }
	.cj-home-hero__inner, .cj-why__grid { grid-template-columns: 1fr; }
	.cj-cta-band, .cj-cta-band + .cj-testimonials { --cj-cta-overlap: 3rem; }
	.cj-cta-band { padding-top: 8rem; padding-inline: var(--cj-space-4, 1rem); }
	/* Phones: the panel stacks tall, so the photo is a short strip it overlaps by 6rem. */
	.cj-cta-band::before { height: 14rem; background-position: 60% 30%; background-image: image-set(url(../images/home-cta-basilica-800x450.webp) type("image/webp"), url(../images/home-cta-basilica-1600x900.jpg) type("image/jpeg")); }
	.cj-cta-band__row { grid-template-columns: 1fr; border-radius: 30px; padding-block: var(--cj-space-5, 1.5rem) var(--cj-space-6, 2rem); }
	.cj-cta-block { padding: var(--cj-space-5, 1.5rem) 0; }
	.cj-cta-block + .cj-cta-block { border-left: 0; border-top: 1px solid rgba(255,255,255,.75); }
	.cj-why, .cj-home-journal { padding-inline: var(--cj-space-4, 1rem); }
	.cj-why__tiles { grid-template-columns: 1fr 1fr; }
	.cj-why__tiles li { min-height: 190px; padding: var(--cj-space-4, 1rem) var(--cj-space-5, 1.5rem); border-radius: 20px; font-size: 1.5rem; }
	.cj-dest-tiles__list { grid-template-columns: 1fr 1fr; }
	.cj-dest-tiles__link { height: 170px; padding: var(--cj-space-4, 1rem); }
}
/* Phones: one Why tile per row so titles stay 24px (AA large text over photos). */
@media (max-width: 480px) {
	.cj-why__tiles { grid-template-columns: 1fr; }
	.cj-why__tile-title { max-width: none; }
}


/* ==========================================================================
   PHONE "READ MORE" (inc/read-more.php + assets/js/read-more.js)
   Tour intro + tour_type / tour_location intros. The clamp height is set inline
   before first paint (~6 lines below any heading); bottom fade while clamped.
   ========================================================================== */
.cj-read-more-box.is-clamped:not(.is-open) {
	max-height: var(--cj-read-more-clamp, 16rem);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 calc(100% - 3.5em), transparent);
	mask-image: linear-gradient(#000 calc(100% - 3.5em), transparent);
}
.cj-read-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: var(--cj-space-2, .5rem);
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--cj-font-body);
	font-weight: var(--cj-font-weight-medium, 500);
	font-size: 1rem;
	color: var(--cj-color-navy, #2D4675);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.cj-read-more[hidden] { display: none; }
.cj-read-more:focus-visible { outline: 2px solid var(--cj-color-navy, #2D4675); outline-offset: 3px; border-radius: 2px; }
@media print {
	.cj-read-more-box { max-height: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
	.cj-read-more { display: none !important; }
}

/* Mega menu search: "I'm Flexible" sits on the right with the box after the text,
   as on the homepage hero card (row-reverse puts flex-start on the right). */
.cj-search-widget--mega .cj-search-widget__flexible { flex-direction: row-reverse; }

/* ==========================================================================
   FAQ ACCORDION (native <details>): tour FAQ (cj/tour-single) and /faq/
   ========================================================================== */
/* TD-31 (Mike: TD-37): collapsed by default, full container width, navy Unna
   questions, gold + that turns into an x. view.js animates open/close (the
   Christmas on the Rhine behavior; assets/js/accordion.js on /faq/); without JS, <details> still works. */
.cj-tour__acc-item { border-bottom: 1px solid var(--cj-color-gold); }
.cj-tour__acc-item:first-child { border-top: 1px solid var(--cj-color-gold); }
.cj-tour__acc-q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--cj-space-5);
	min-height: 56px;
	padding: var(--cj-space-4) var(--cj-space-1);
	cursor: pointer;
	list-style: none;
	font-family: var(--cj-font-heading);
	font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
	color: var(--cj-color-navy);
	line-height: 1.3;
}
.cj-tour__acc-q::-webkit-details-marker { display: none; }
.cj-tour__acc-q:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cj-tour__acc-q:focus-visible { outline: 3px solid var(--cj-color-navy); outline-offset: 3px; border-radius: var(--cj-radius-sm); }
.cj-tour__acc-icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	transition: transform 250ms ease-out;
}
.cj-tour__acc-icon::before,
.cj-tour__acc-icon::after {
	content: "";
	position: absolute;
	background: var(--cj-tour-gold-text, #7A6A2E); /* AA gold: 5.35:1 on white */
}
.cj-tour__acc-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.cj-tour__acc-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
/* + turns 45deg into an x. With JS, .is-open drives it (so it turns back as
   the close animation starts); without JS, [open] does. */
.cj-tour__acc-item:not(.cj-anim)[open] .cj-tour__acc-icon,
.cj-tour__acc-item.cj-anim.is-open .cj-tour__acc-icon { transform: rotate(45deg); }
.cj-tour__acc-a { padding: 0 var(--cj-space-1) var(--cj-space-5); max-width: 75ch; }
.cj-tour__acc-a p { color: var(--cj-color-mid-gray); font-size: 1rem; line-height: 1.6; margin: 0 0 var(--cj-space-3); }
.cj-tour__acc-a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
	.cj-tour__acc-icon { transition: none; }
}

/* /faq/ (page-faq.html, inc/faq-page.php; Jen's catholicjourneys-faq-page.pdf).
   Hero = the contact band (Christ statue); list in a ~1100px column. */
.cj-faq-main > * { margin-block: 0; }
.cj-faq-page { max-width: calc(1100px + 2 * var(--cj-space-5, 1.5rem)); margin: 0 auto; padding: var(--cj-space-8, 3rem) var(--cj-space-5, 1.5rem) var(--cj-space-9, 4rem); box-sizing: border-box; }
.cj-faq-page > * { margin-block: 0; }
.cj-faq-page__lead { margin: 0 0 var(--cj-space-6, 2rem) !important; text-align: center; font-family: var(--cj-font-heading, serif); font-size: 1.125rem; line-height: 1.4; color: var(--cj-color-navy, #2D4675); }
.cj-faq-page .wp-block-spacer { height: var(--cj-space-7, 2.5rem) !important; }
.cj-faq-page > p.has-text-align-center:not(.cj-faq-page__lead) { max-width: 60ch; margin-inline: auto; }
@media (max-width: 700px) {
	/* Two lines reserved: the fallback serif wraps to two, Unna to one; no shift when the font swaps in. */
	.cj-faq-page__lead { min-height: 2.8em; }
	.cj-faq-page { padding: var(--cj-space-6, 2rem) var(--cj-space-4, 1rem) var(--cj-space-8, 3rem); }
}

/* ==========================================================================
   BLOG LANDING (posts page: templates/home.html; Jen's blog-landing PDF, BL-01..06)
   Everything is scoped to .cj-page-hero--journal / .cj-blog-landing, so the shared
   blog card (homepage journal, archives, search) is untouched.
   ========================================================================== */
/* BL-06: Queen of Peace statue on the left under an olive tint; the title sits
   right, on flat olive #827737 (white = 4.5:1). */
.cj-page-hero--journal {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-height: clamp(10rem, 16vw, 14.5rem);
	padding-inline: var(--cj-space-5, 1.5rem);
	text-align: right;
	background-color: var(--cj-color-gold-panel, #827737);
	background-image: linear-gradient(90deg, rgba(130, 119, 55, .45) 0%, rgba(130, 119, 55, .6) 22%, #827737 40%), url(../images/blog-hero-mary-960x1280.jpg);
	background-repeat: no-repeat;
	background-size: 100% 100%, 44% auto;
	background-position: 0 0, 0 14%;
}
.cj-page-hero--journal .cj-page-hero__title { width: 100%; max-width: var(--wp--style--global--wide-size, 1280px); }

/* Layout: content area at the wide size; sidebar + main. */
.cj-blog-landing .cj-blog-layout { box-sizing: border-box; }
.cj-blog-landing .cj-blog-filter a { color: var(--cj-color-text-muted, #595959); }
.cj-blog-landing .cj-blog-filter a:hover { color: var(--cj-color-gold-text, #7A6A2E); text-decoration: underline; }

/* BL-01: full-width rounded search, olive border, magnifier inside. */
.cj-blog-landing .cj-blog-search { margin: 0 0 var(--cj-space-6, 2rem); }
.cj-blog-landing .cj-blog-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 1px solid var(--cj-color-gold-panel, #827737); /* 4.5:1, a visible field edge */
	border-radius: 12px;
	background: var(--cj-color-white, #fff);
	overflow: hidden;
}
.cj-blog-landing .cj-blog-search .wp-block-search__input {
	min-height: 48px;
	padding: 0 var(--cj-space-4, 1rem) 0 var(--cj-space-5, 1.5rem);
	border: 0;
	background: transparent;
	font-size: 1rem;
	color: var(--cj-color-text, #333);
}
.cj-blog-landing .cj-blog-search .wp-block-search__input::placeholder { color: var(--cj-color-text-muted, #595959); opacity: 1; }
.cj-blog-landing .cj-blog-search .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cj-color-gold-panel, #827737);
	box-shadow: none;
}
.cj-blog-landing .cj-blog-search .wp-block-search__button svg { width: 26px; height: 26px; fill: currentColor; }
.cj-blog-landing .cj-blog-search .wp-block-search__button:hover { color: var(--cj-color-navy, #2D4675); background: transparent; }
.cj-blog-landing .cj-blog-search .wp-block-search__inside-wrapper:focus-within { outline: 3px solid var(--cj-color-navy, #2D4675); outline-offset: 2px; }
.cj-blog-landing .cj-blog-search .wp-block-search__input:focus,
.cj-blog-landing .cj-blog-search .wp-block-search__button:focus { outline: none; }
.cj-blog-landing .cj-blog-search .wp-block-search__button:focus-visible { outline: 2px solid var(--cj-color-navy, #2D4675); outline-offset: -4px; }

/* BL-02 / BL-03: 3 / 2 / 1 columns; olive cards (Mike's G-01), white text, 30px
   radius, photo fills the top. The wide Medjugorje banners keep the St. James towers in a centered crop. */
.cj-blog-landing .wp-block-post-template.cj-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cj-space-5, 1.5rem); }
.cj-blog-landing .cj-blog-card { background: var(--cj-color-gold-panel, #827737); border: 0; border-radius: 30px; }
.cj-blog-landing .cj-blog-card__media { aspect-ratio: 16 / 9; }
.cj-blog-landing .cj-blog-card__media .cj-blog-card__img { width: 100%; height: 100%; object-fit: cover; }
/* The PDF's white cross, bottom right of the photo (decorative). */
.cj-blog-landing .cj-blog-card__media::after {
	content: "";
	position: absolute;
	right: 18px;
	bottom: 0;
	width: 20px;
	height: 30px;
	background:
		linear-gradient(#fff, #fff) 50% 0 / 2px 100% no-repeat,
		linear-gradient(#fff, #fff) 0 8px / 100% 2px no-repeat;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, .45));
	pointer-events: none;
}
.cj-blog-landing .cj-blog-card__body { padding: var(--cj-space-5, 1.5rem); }
.cj-blog-landing .cj-blog-card__title { font-size: 1.5rem; line-height: 1.15; color: var(--cj-color-white, #fff); }
.cj-blog-landing .cj-blog-card__tag,
.cj-blog-landing .cj-blog-card__excerpt,
.cj-blog-landing .cj-blog-card__more { color: var(--cj-color-white, #fff); }
.cj-blog-landing .cj-blog-card__link:focus-visible { outline: 3px solid var(--cj-color-navy, #2D4675); outline-offset: 3px; border-radius: 30px; }

@media (max-width: 1099px) {
	.cj-blog-landing .wp-block-post-template.cj-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Columns stack below 782px: search + cards first, the filter list after the posts.
   The heading wraps over the photo here, so the tint is a deeper olive (white >= 4.5:1). */
@media (max-width: 781px) {
	.cj-blog-landing .cj-blog-sidebar { order: 2; }
	.cj-blog-landing .cj-blog-layout { padding-inline: var(--cj-space-5, 1.5rem); }
	.cj-page-hero--journal { background-image: linear-gradient(90deg, rgba(96, 88, 40, .86) 0%, rgba(96, 88, 40, .9) 45%, #827737 66%), url(../images/blog-hero-mary-960x1280.jpg); background-size: 100% 100%, 62% auto; background-position: 0 0, 0 14%; }
}
/* BL-04: 16px side gutters on phones. */
@media (max-width: 620px) {
	.cj-blog-landing .cj-blog-layout { padding-inline: var(--cj-space-4, 1rem); }
	.cj-page-hero--journal { padding-inline: var(--cj-space-4, 1rem); }
}
@media (max-width: 600px) {
	.cj-blog-landing .wp-block-post-template.cj-blog-grid { grid-template-columns: 1fr; }
}
