/*
Theme Name: St John Payne
Theme URI: https://www.stjohnpayne.org.uk/
Author: Your Name
Description: A child theme of Underscores (_s) built for St John Payne Catholic Church, Greenstead, Colchester. Clean, white-background design with navy and gold palette.
Version: 1.1.142
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stjohnpayne
Tags: custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

This theme is a child theme. Set Template: to whichever _s / parent theme slug you install.
For a fully standalone setup, remove the Template line and copy parent template files in.
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
	--sjp-navy:       #1B2B4B;
	--sjp-navy-mid:   #243660;
	--sjp-gold:       #B8892A;
	--sjp-gold-lt:    #D4A84B;
	--sjp-red:        #8B1A1A;
	--sjp-white:      #FFFFFF;
	--sjp-off-white:  #F8F7F4;
	--sjp-light-grey: #F0EEE9;
	--sjp-mid-grey:   #E2DED7;
	--sjp-text:       #1A1A1A;
	--sjp-text-mid:   #444444;
	--sjp-text-soft:  #5E5E5E;

	--sjp-font-heading: 'Playfair Display', Georgia, serif;
	--sjp-font-ui:      'Cinzel', serif;
	--sjp-font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

	--sjp-gold-accessible: #8B6218; /* Darker gold Ã¢â‚¬â€ AA contrast on white/off-white */
	--sjp-gold-accessible-hover: #6F4E13; /* Hover for gold buttons: darker still, white text 7:1 */
	--sjp-radius: 0px;
	--sjp-shadow: 0 4px 20px rgba(0,0,0,0.08);
	--sjp-shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	/* Keep keyboard focus and in-page links clear of the sticky header (WCAG 2.4.11). */
	scroll-padding-top: calc(var(--sjp-header-h, 143px) + 0.5rem);
	/* Text size control: --sjp-text-scale is set by the header buttons (80%–200%). */
	font-size: calc(100% * var(--sjp-text-scale, 1));
}

body {
	font-family: var(--sjp-font-body);
	font-size: 1.125rem; /* 18px at normal text size */
	line-height: 1.8;
	color: var(--sjp-text);
	background: var(--sjp-white);
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--sjp-gold-accessible); /* darker gold: 5.3:1 on white */
	transition: color 0.2s;
}
a:hover { color: var(--sjp-navy); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sjp-font-heading);
	font-weight: 700;
	color: var(--sjp-navy);
	line-height: 1.2;
	margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-top: 0; margin-bottom: 1.25rem; }

blockquote {
	border-left: 3px solid var(--sjp-gold);
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	background: var(--sjp-off-white);
	font-style: italic;
	color: var(--sjp-text-mid);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.section-tag {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	color: var(--sjp-gold-accessible);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.section-tag::before {
	content: '';
	width: 2rem;
	height: 2px;
	background: var(--sjp-gold);
	flex-shrink: 0;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn,
.wp-block-button__link {
	display: inline-block;
	font-family: var(--sjp-font-body);
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	padding: 0.85rem 1.75rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	border-radius: var(--sjp-radius);
}

.btn-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--sjp-gold-accessible);
	color: #fff;
}
.btn-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--sjp-gold-accessible-hover);
	color: #fff;
}

.btn-navy {
	background: var(--sjp-navy);
	color: #fff;
}
.btn-navy:hover { background: var(--sjp-navy-mid); color: #fff; }

.btn-ghost {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn-outline {
	background: transparent;
	color: var(--sjp-navy);
	border: 1.5px solid var(--sjp-mid-grey);
}
.btn-outline:hover { border-color: var(--sjp-gold); color: var(--sjp-gold); }

/* ============================================================
   TOP BANNER
   ============================================================ */
.sjp-top-banner {
    background: var(--sjp-navy);
    color: rgba(255,255,255,0.92);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.6rem 0;
}
.sjp-top-banner .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.sjp-top-banner a { color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 600; }
.sjp-top-banner a:hover { color: var(--sjp-gold-lt); }
.sjp-top-banner-right { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	background: var(--sjp-white);
	border-bottom: 1px solid var(--sjp-mid-grey);
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	gap: 1rem;
}

/* Logo */
.sjp-title-break { display: inline; }

/* Primary nav */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--sjp-text-mid);
	text-decoration: none;
	padding: 0.5rem 1rem;
	display: block;
	transition: color 0.2s;
	position: relative;
	white-space: nowrap;
}
.main-navigation ul li a::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 1rem; right: 1rem;
	height: 2px;
	background: var(--sjp-gold);
	transform: scaleX(0);
	transition: transform 0.22s;
}
.main-navigation ul li a:hover { color: var(--sjp-navy); }
.main-navigation ul li a:hover::after { transform: scaleX(1); }

/* Newsletter button in nav */
.main-navigation .menu-newsletter > a {
	background: var(--sjp-navy);
	color: #fff !important;
	padding: 0.5rem 1.1rem;
	margin-left: 0.5rem;
}
.main-navigation .menu-newsletter > a::after { display: none !important; }
.main-navigation .menu-newsletter > a:hover { background: var(--sjp-navy-mid) !important; }

/* Dropdown */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: auto;
	margin: 0;
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	box-shadow: var(--sjp-shadow);
	min-width: 220px;
	width: max-content;
	z-index: 100;
	flex-direction: column;
}
.main-navigation ul li:hover > ul { display: flex; }
/* Desktop dropdowns also open for keyboard users (focus inside), and Esc closes them (main.js). */
@media (min-width: 901px) {
	html:not(.sjp-nav-compact) .main-navigation ul li:focus-within > ul { display: flex; }
	html:not(.sjp-nav-compact) .main-navigation ul li.sjp-sub-dismissed > ul { display: none; }
}
.main-navigation ul ul li {
	width: 100%;
}
.main-navigation ul ul li a {
	padding: 0.65rem 1.25rem;
	font-size: inherit;
	border-bottom: 1px solid var(--sjp-light-grey);
	white-space: nowrap;
	width: 100%;
}
.main-navigation ul ul li:last-child a { border-bottom: none; }

/* Mid-size desktops: keep the nav on one line by tightening the spacing */
@media (min-width: 901px) and (max-width: 1180px) {
	.main-navigation ul { flex-wrap: nowrap; }
	.main-navigation ul li a { padding-left: 0.6rem; padding-right: 0.6rem; letter-spacing: 0.02em; }
	.main-navigation ul li a::after { left: 0.6rem; right: 0.6rem; }
	.main-navigation .menu-newsletter > a { margin-left: 0.35rem; padding-left: 0.9rem; padding-right: 0.9rem; }
}

/* Hamburger */
.menu-toggle {
	display: none;
	background: none;
	border: 1.5px solid var(--sjp-mid-grey);
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
}
.menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--sjp-navy);
	transition: all 0.2s;
}

/* ============================================================
   HERO (front page)
   ============================================================ */
/* Full-width photograph above a navy band holding the welcome text and
   buttons, with thin gold rules where it meets the photo and the calendar
   strip. */
.sjp-hero {
    position: relative;
    background: var(--sjp-navy);
    border-bottom: 3px solid var(--sjp-gold);
}
.sjp-hero-media {
    /* The photo is about 3:2 (65vw tall at full width). Its top edge is
       pinned to the top of the door (--sjp-hero-crop, set by the Customiser's
       "Photo focus"), so any cut for height comes from the bottom. Capped on
       very wide screens, and by the window height so the heading below stays
       in view on laptops, but never shorter than 40vw (enough to keep the
       heads and the space below the censer). */
    --sjp-hero-h: max(40vw, min(46.5vw, 800px, calc(100svh - 255px)));
    height: var(--sjp-hero-h);
    overflow: hidden;
    border-top: 3px solid var(--sjp-gold);
    border-bottom: 3px solid var(--sjp-gold);
    background: var(--sjp-navy);
}
.sjp-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--sjp-hero-focus-x, 58%) calc(-1 * var(--sjp-hero-crop, 8.3vw));
}
.sjp-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    /* The paragraph spans every row; the last row absorbs its height so the
       heading and buttons stay together at the top of the left column. */
    grid-template-rows: auto auto 1fr;
    column-gap: 3.5rem;
    align-items: start;
    padding: 2.5rem 0 2.75rem;
}
.sjp-hero-panel > .sjp-hero-eyebrow { grid-column: 1; grid-row: 1; }
.sjp-hero-panel > .sjp-hero-title   { grid-column: 1; grid-row: 2; }
.sjp-hero-panel > .sjp-hero-desc    { grid-column: 2; grid-row: 1 / -1; }
.sjp-hero-panel > .sjp-hero-btns    { grid-column: 1; grid-row: 3; align-self: start; }
/* Wide screens: give the heading column room for all three buttons in a row */
@media (min-width: 1200px) {
    .sjp-hero-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 3rem; }
}
.sjp-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
    font-family: var(--sjp-font-ui);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--sjp-gold-lt);
}
.sjp-hero-eyebrow::before {
    content: '';
    flex: 0 0 2rem;
    height: 1px;
    background: currentColor;
}
.sjp-hero .sjp-hero-title {
    margin: 0;
    font-family: var(--sjp-font-heading);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--sjp-white);
}
.sjp-hero-desc {
    font-family: var(--sjp-font-heading);
    font-size: 1.12rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
}
.sjp-hero-desc p { margin: 0 0 0.75rem; }
.sjp-hero-desc p:last-child { margin-bottom: 0; }
.sjp-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.sjp-hero .sjp-hero-btns .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem;
    font-family: var(--sjp-font-ui);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.25;
}
.sjp-hero .sjp-hero-btns .btn-outline {
    color: var(--sjp-white);
    border: 1px solid rgba(212,168,75,0.8);
}
.sjp-hero .sjp-hero-btns .btn-outline:hover {
    color: var(--sjp-white);
    background: rgba(212,168,75,0.12);
    border-color: var(--sjp-gold-lt);
}
.sjp-hero .sjp-hero-btns .sjp-ql-fa-icon { margin: 0; }
.sjp-hero .sjp-hero-btns .btn-outline .sjp-ql-fa-icon { color: var(--sjp-gold-lt); }

/* Photo caption, shown at the right of the calendar strip */
.sjp-hero-caption {
    margin-left: auto;
    padding-left: 1rem;
    font-family: var(--sjp-font-heading);
    font-size: 0.98rem;
    font-style: italic;
    color: var(--sjp-gold-lt);
}

/* Tablet and phone: photo nearly uncropped, text stacked beneath it */
@media (max-width: 900px) {
    .sjp-hero-media { height: auto; }
    .sjp-hero-img { height: auto; aspect-ratio: 16 / 9; object-position: var(--sjp-hero-focus-x, 58%) calc(-1 * var(--sjp-hero-crop, 8.3vw)); }
    .sjp-hero-panel { display: block; padding: 1.75rem 0 2rem; }
    .sjp-hero-panel > .sjp-hero-title { margin-bottom: 1rem; }
    .sjp-hero-caption { flex-basis: 100%; margin-left: 0; padding-left: 0; font-size: 0.92rem; }
}
@media (max-width: 600px) {
    .sjp-hero-img { aspect-ratio: 4 / 3; object-position: var(--sjp-hero-focus-x, 58%) 0; }
    .sjp-hero-desc { font-size: 1.05rem; }
    .sjp-hero .sjp-hero-btns .btn { flex: 1 1 100%; padding: 0.9rem 1rem; }
}

/* ============================================================
   ORDINARIATE CALENDAR STRIP: missal ribbon
   A short ribbon in today's liturgical colour (--sjp-lit, set inline),
   contained within the strip, like a missal's marker ribbon. Base strip
   styles are printed inline from functions.php.
   ============================================================ */
.sjp-litday-band { position: relative; }
.sjp-litday-ribbon {
    position: absolute;
    top: 0;
    left: max(1.5rem, calc((100% - 1200px) / 2 + 1.5rem));
    z-index: 2;
    width: 20px;
    /* Fixed short length, so it stays a marker when the feast name wraps
       and the strip gets deeper; never taller than the strip itself. */
    height: min(3.25rem, calc(100% - 6px));
    pointer-events: none;
}
.sjp-litday-ribbon::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.18) 0, rgba(0,0,0,0.18) 6px, transparent 6px),
        var(--sjp-lit, var(--sjp-gold-lt));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
}
.sjp-litday-band .sjp-litday-inner { padding-left: 2.6rem; }
.sjp-litday-rank {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--sjp-lit, var(--sjp-gold-lt));
    /* A solid badge in the day's colour; the lettering (white or navy) is chosen in PHP so it always reads clearly. */
    background: var(--sjp-lit, var(--sjp-gold-lt));
    font-family: var(--sjp-font-ui);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sjp-lit-text, #fff);
}

/* ============================================================
   PARISH LIFE PHOTO BAND (home page)
   Mosaic on desktop (first photo large), 2-up grid on tablet,
   swipeable row on phones. Photos open in the lightbox.
   ============================================================ */
.sjp-plife {
    background: var(--sjp-light-grey);
    padding: 3.5rem 0 3rem;
    border-top: 1px solid var(--sjp-mid-grey);
    border-bottom: 1px solid var(--sjp-mid-grey);
}
.sjp-plife-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.sjp-plife-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
    font-family: var(--sjp-font-ui);
    font-size: 0.86rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sjp-gold-accessible);
}
.sjp-plife-eyebrow::before,
.sjp-plife-eyebrow::after { content: ''; width: 2rem; height: 1px; background: currentColor; }
.sjp-plife-title { font-family: var(--sjp-font-heading); color: var(--sjp-navy); margin: 0 0 0.5rem; }
.sjp-plife-intro { color: var(--sjp-text-mid); margin: 0; }
.sjp-plife-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    aspect-ratio: 16 / 7.2;
}
.sjp-plife-item { position: relative; overflow: hidden; min-height: 0; margin: 0; }
.sjp-plife-item.is-feature { grid-row: 1 / span 2; }
/* Fewer than five photos: let the grid shrink sensibly */
.sjp-plife-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 7; }
.sjp-plife-count-2,
.sjp-plife-count-3 { grid-template-columns: 2fr 1fr; }
.sjp-plife-count-4 { grid-template-columns: 2fr 1fr 1fr; }
.sjp-plife-count-4 .sjp-plife-item:last-child { grid-column: 2 / span 2; }
.sjp-plife-count-2 .sjp-plife-item:not(.is-feature) { grid-row: 1 / span 2; }
.sjp-plife-link { display: block; width: 100%; height: 100%; position: relative; cursor: zoom-in; }
.sjp-plife-link picture { display: contents; }
.sjp-plife-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.sjp-plife-link:hover img,
.sjp-plife-link:focus-visible img { transform: scale(1.03); }
.sjp-plife-link:focus-visible { outline: 3px solid var(--sjp-gold); outline-offset: 2px; }
.sjp-plife-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.6rem 0.9rem 0.65rem;
    background: linear-gradient(to top, rgba(15,24,42,0.88), rgba(15,24,42,0.35) 70%, rgba(15,24,42,0));
    color: #fff;
    /* Keeps the caption readable over bright patches of any photo. */
    text-shadow: 0 1px 2px rgba(0,0,0,0.75), 0 0 8px rgba(0,0,0,0.45);
    font-family: var(--sjp-font-heading);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.35;
}
.sjp-plife-item.is-feature .sjp-plife-cap { font-size: 1rem; padding: 2rem 1.2rem 0.9rem; }
.sjp-plife-more {
    text-align: right;
    margin: 1rem 0 0;
    font-family: var(--sjp-font-ui);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.sjp-plife-more a { color: var(--sjp-navy); text-decoration: none; border-bottom: 1px solid var(--sjp-gold); }
.sjp-plife-more a:hover { color: var(--sjp-gold-accessible); }
@media (prefers-reduced-motion: reduce) {
    .sjp-plife-link img { transition: none; }
}
@media (max-width: 900px) {
    .sjp-plife-grid,
    .sjp-plife-grid[class*="sjp-plife-count-"] { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
    .sjp-plife-item,
    .sjp-plife-count-4 .sjp-plife-item:last-child,
    .sjp-plife-count-2 .sjp-plife-item:not(.is-feature) { aspect-ratio: 4 / 3; grid-row: auto; grid-column: auto; }
    .sjp-plife-item.is-feature { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .sjp-plife { padding: 2.5rem 0 2rem; }
    .sjp-plife-grid,
    .sjp-plife-grid[class*="sjp-plife-count-"] {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.6rem;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
        scrollbar-width: none;
    }
    .sjp-plife-grid::-webkit-scrollbar { display: none; }
    .sjp-plife-item,
    .sjp-plife-item.is-feature { flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
    .sjp-plife-more { text-align: center; }
}

/* ============================================================
   PHOTO GALLERY PAGE (template: Photo Gallery) and Gallery blocks
   with the class "sjp-gallery". Rows are justified to each photo's
   own aspect ratio (--sjp-ratio, set by sjp_image_block_ratio()),
   so nothing is cropped; captions show on hover and in the lightbox.
   ============================================================ */
.sjp-gallery-page { padding: 3rem 0 4rem; }
.sjp-gallery-content > p:first-child {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    font-family: var(--sjp-font-heading);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--sjp-text-mid);
}
.sjp-gallery-content > h2 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 3.5rem 0 0.4rem;
    font-family: var(--sjp-font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    color: var(--sjp-navy);
}
.sjp-gallery-content > h2::before { content: ''; flex: 0 0 2.5rem; height: 2px; background: var(--sjp-gold); }
.sjp-gallery-content > h2::after { content: ''; flex: 1; height: 1px; background: var(--sjp-mid-grey); }
.sjp-gallery-content > h2 + p {
    margin: 0 0 1.25rem;
    font-family: var(--sjp-font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--sjp-text-soft);
}

/* Justified rows */
.wp-block-gallery.sjp-gallery.has-nested-images {
    --sjp-row: 290px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1.25rem 0 0;
    max-width: none;
    width: 100%;
}
.wp-block-gallery.sjp-gallery.has-nested-images::after { content: ''; flex-grow: 999999; } /* last row keeps natural size */
/* When JavaScript has balanced the rows, every row is exactly full */
.wp-block-gallery.sjp-gallery.is-justified::after { content: none; }
.wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image {
    --sjp-r: var(--sjp-ratio, 1.5);
    flex: calc(var(--sjp-r) * 1000) 1 calc(var(--sjp-r) * var(--sjp-row)) !important;
    width: auto !important;
    max-width: calc(var(--sjp-r) * var(--sjp-row) * 2.2);
    aspect-ratio: var(--sjp-r);
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--sjp-light-grey);
}
.wp-block-gallery.sjp-gallery figure.wp-block-image a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.wp-block-gallery.sjp-gallery figure.wp-block-image picture { display: contents; }
.wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.wp-block-gallery.sjp-gallery figure.wp-block-image a:hover img,
.wp-block-gallery.sjp-gallery figure.wp-block-image a:focus-visible img { transform: scale(1.025); }
.wp-block-gallery.sjp-gallery figure.wp-block-image a:focus-visible { outline: 3px solid var(--sjp-gold); outline-offset: -3px; }

/* Captions: hidden on the grid, revealed on hover/focus (always shown in the lightbox) */
.wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    max-height: none;
    padding: 2.2rem 1rem 0.8rem;
    background: linear-gradient(to top, rgba(12,18,32,0.82), rgba(12,18,32,0));
    color: #fff;
    font-family: var(--sjp-font-heading);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    backdrop-filter: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.wp-block-gallery.sjp-gallery figure.wp-block-image:hover figcaption,
.wp-block-gallery.sjp-gallery figure.wp-block-image:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) {
    /* Touch screens have no hover: captions appear in the lightbox instead */
    .wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image img,
    .wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image figcaption { transition: none; }
}
@media (max-width: 900px) {
    .wp-block-gallery.sjp-gallery.has-nested-images { --sjp-row: 210px; }
}
@media (max-width: 600px) {
    .sjp-gallery-page { padding: 2rem 0 3rem; }
    .sjp-gallery-content > p:first-child { font-size: 1.1rem; margin-bottom: 2rem; }
    .wp-block-gallery.sjp-gallery.has-nested-images { --sjp-row: 140px; gap: 4px; }
    .wp-block-gallery.sjp-gallery.has-nested-images figure.wp-block-image { max-width: none; }
    .sjp-gallery-content > h2 { margin-top: 2.5rem; }
}

/* ============================================================
   LIGHTBOX (photos with data-sjp-lightbox, and gallery blocks)
   ============================================================ */
.sjp-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,14,24,0.94);
    padding: 3.5rem 4.5rem;
}
.sjp-lb[hidden] { display: none; }
.sjp-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.sjp-lb-img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; display: block; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.sjp-lb-cap { color: rgba(255,255,255,0.88); font-family: var(--sjp-font-heading); font-style: italic; font-size: 1rem; text-align: center; margin-top: 0.9rem; max-width: 760px; }
.sjp-lb-count { position: absolute; top: 1.1rem; left: 1.4rem; color: rgba(255,255,255,0.6); font-family: var(--sjp-font-ui); font-size: 0.86rem; letter-spacing: 0.15em; }
.sjp-lb-btn {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    width: 3rem; height: 3rem;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sjp-lb-btn:hover { background: rgba(255,255,255,0.18); border-color: #fff; }
.sjp-lb-btn:focus-visible { outline: 3px solid var(--sjp-gold-lt); outline-offset: 2px; }
.sjp-lb-close { top: 0.8rem; right: 0.8rem; }
.sjp-lb-prev { left: 0.8rem; top: 50%; transform: translateY(-50%); }
.sjp-lb-next { right: 0.8rem; top: 50%; transform: translateY(-50%); }
.sjp-lb-prev[hidden], .sjp-lb-next[hidden] { display: none; }
body.sjp-lb-open { overflow: hidden; }
/* Hide the accessibility widget's floating button while the viewer is open */
@media (max-width: 600px) {
    .sjp-lb { padding: 3.5rem 0.5rem 4.5rem; }
    .sjp-lb-prev, .sjp-lb-next { top: auto; bottom: 0.8rem; transform: none; }
    .sjp-lb-prev { left: calc(50% - 3.4rem); }
    .sjp-lb-next { right: calc(50% - 3.4rem); }
}

/* ============================================================
   MASS TIMES STRIP
   ============================================================ */
.sjp-mass-strip { background: var(--sjp-navy); }
.sjp-mass-strip-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.sjp-mass-block {
	padding: 2rem 1.5rem;
	border-right: 1px solid rgba(255,255,255,0.08);
	text-decoration: none;
	display: block;
	transition: background 0.2s;
}
.sjp-mass-block:last-child { border-right: none; }
.sjp-mass-block:hover { background: rgba(255,255,255,0.04); }
.sjp-mass-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.92rem;
	letter-spacing: 0.2em;
	color: var(--sjp-gold-lt);
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}
.sjp-mass-times {
	font-size: 1.1rem;
	color: rgba(255,255,255,0.8);
	line-height: 1.9;
}
.sjp-mass-times strong { color: #fff; font-weight: 600; }
.sjp-mass-times .rite {
	font-size: 0.83rem;
	color: rgba(255,255,255,0.7);
}
.sjp-mass-confessions-label {
	display: block;
	margin-top: 0.5rem;
	margin-bottom: 0.15rem;
	line-height: 1.2;
	color: var(--sjp-gold-lt);
	font-size: 0.92rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: var(--sjp-font-ui);
}
.sjp-mass-confessions-text {
	display: block;
	line-height: 1.3;
}
.sjp-mass-mobile-toggle,
.sjp-mass-mobile-toggle:hover {
    color: var(--sjp-gold-lt);
    text-decoration: none;
}
/* Ã¢â€â‚¬Ã¢â€â‚¬ MASS TIMES HEADING STRIP Ã¢â€â‚¬Ã¢â€â‚¬ */
.sjp-mass-heading-strip {
	background: var(--sjp-gold-accessible);
	padding: 0.6rem 0;
    scroll-margin-top: var(--sjp-header-h, 143px);

}
.sjp-mass-heading-strip .container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
}
.sjp-mass-heading-strip span {
	font-family: var(--sjp-font-ui);
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: white;
}
.sjp-mass-heading-strip .sjp-mass-heading-note {
	font-size: 0.8rem;
	letter-spacing: 0.18em;
}
.sjp-mass-heading-note a {
	color: white;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s;
}
.sjp-mass-heading-note a:hover { color: var(--sjp-navy); }

@media (max-width: 900px) {
	.sjp-mass-heading-strip span { font-size: 0.92rem; letter-spacing: 0.2em; }
	.sjp-mass-heading-strip .sjp-mass-heading-note { font-size: 0.8rem; letter-spacing: 0.16em; }
}
@media (max-width: 600px) {
	.sjp-mass-heading-strip .container { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
	.sjp-mass-heading-strip span { font-size: 0.83rem; letter-spacing: 0.14em; }
	.sjp-mass-heading-strip .sjp-mass-heading-note { font-size: 0.8rem; letter-spacing: 0.12em; }
}



/* ============================================================
   WELCOME SECTION
   ============================================================ */
.sjp-welcome { padding: 3.5rem 0; background: var(--sjp-white); }
.sjp-welcome-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.sjp-welcome-images { position: relative; padding-bottom: 3rem; padding-right: 3rem; }
.sjp-welcome-img-main {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	box-shadow: var(--sjp-shadow-lg);
}
.sjp-welcome-img-accent {
	position: absolute;
	width: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	bottom: 0;
	right: 0;
	border: 5px solid var(--sjp-white);
	box-shadow: var(--sjp-shadow);
}
.sjp-welcome-text { padding-top: 1.5rem; }
.sjp-welcome-text h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-bottom: 1.25rem;
}
.sjp-welcome-text h2 em { font-style: italic; color: var(--sjp-red); }
.sjp-welcome-text p { color: var(--sjp-text-mid); }
.sjp-welcome-meta {
	margin-top: 1.75rem;
	padding: 1.25rem 1.5rem;
	background: var(--sjp-off-white);
	border-left: 3px solid var(--sjp-gold);
	font-size: 0.92rem;
	color: var(--sjp-text-mid);
}
.sjp-welcome-meta strong { color: var(--sjp-navy); }
.sjp-welcome .btn { margin-top: 0; }

/* Welcome section cards */
.sjp-welcome-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 1.75rem 0;
}
.sjp-welcome-card {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 1rem;
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.sjp-welcome-card:hover {
	border-color: var(--sjp-gold);
	box-shadow: var(--sjp-shadow);
	color: inherit;
}
.sjp-welcome-card-icon {
	flex-shrink: 0;
	width: 2rem;
	text-align: center;
	color: var(--sjp-gold);
	font-size: 1.2rem;
	padding-top: 0.1rem;
}
.sjp-welcome-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.sjp-welcome-card-title {
	font-family: var(--sjp-font-heading);
	font-size: 0.95rem;
	color: var(--sjp-navy);
	line-height: 1.2;
}
.sjp-welcome-card-desc {
	font-size: 0.94rem;
	color: var(--sjp-text-soft);
	line-height: 1.5;
}

/* Welcome section buttons */
.sjp-welcome-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}


/* ============================================================
   PRACTICAL HELP SECTION
   ============================================================ */
.sjp-arrange {
	background: var(--sjp-off-white);
	border-top: 1px solid var(--sjp-mid-grey);
	border-bottom: 1px solid var(--sjp-mid-grey);
	padding: 3rem 0 3.25rem;
}
.sjp-arrange-header {
	margin-bottom: 1.75rem;
}
.sjp-arrange-header h2 { margin-bottom: 0; }
.sjp-arrange-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.9rem;
}
.sjp-arrange-card {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 1.2rem 1.15rem;
	text-decoration: none;
	color: inherit;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sjp-arrange-card:hover {
	box-shadow: var(--sjp-shadow);
	transform: translateY(-2px);
	border-color: var(--sjp-gold);
	color: inherit;
}
.sjp-arrange-card-icon {
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid rgba(184,137,42,0.35);
	background: var(--sjp-off-white);
	color: var(--sjp-gold-accessible);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.9rem;
	flex-shrink: 0;
}
.sjp-arrange-card-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	display: block;
}
.sjp-arrange-card-title {
	font-family: var(--sjp-font-heading);
	font-size: 1.05rem;
	color: var(--sjp-navy);
	line-height: 1.25;
	margin-bottom: 0.55rem;
}
.sjp-arrange-card-desc {
	color: var(--sjp-text-soft);
	font-size: 0.98rem;
	line-height: 1.55;
	margin: 0;
}
.sjp-arrange-footer {
	margin-top: 1.4rem;
	padding-left: 1rem;
	border-left: 3px solid var(--sjp-gold);
	color: var(--sjp-text-mid);
	font-size: 0.92rem;
	line-height: 1.6;
}

/* ============================================================
   PARISH DASHBOARD (notices / newsletter / events)
   ============================================================ */
.sjp-parish-dashboard {
	padding: 3.25rem 0;
	background: var(--sjp-white);
	border-top: 2px solid var(--sjp-navy);
	border-bottom: 1px solid var(--sjp-mid-grey);
}

/* Noticeboard heading */
.sjp-dashboard-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2.25rem;
}

.sjp-dashboard-heading-rule {
	flex: 1;
	height: 1px;
	background: var(--sjp-gold);
	opacity: 0.65;
}

.sjp-dashboard-heading-text {
	font-family: var(--sjp-font-heading);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--sjp-navy);
	font-weight: 700;
	white-space: nowrap;
}

/* Desktop grid: newsletter (the lead item) | notices */
.sjp-dashboard-grid {
	display: flex;
	gap: 3rem;
	align-items: start;
}
.sjp-dash-col { flex: 1; min-width: 0; }
.sjp-dash-newsletter { flex: 0 0 46%; min-width: 0; order: 1; }
.sjp-dash-notices    { order: 2; }

.sjp-dash-col-hdr {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--sjp-navy);
}
.sjp-dash-col-hdr h2 {
	font-family: var(--sjp-font-heading);
	font-size: 1.35rem;
	color: var(--sjp-navy);
	font-weight: 700;
	margin: 0;
}
.sjp-dash-viewall {
	font-family: var(--sjp-font-body);
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--sjp-gold-accessible);
	text-decoration: none;
	white-space: nowrap;
}
.sjp-dash-viewall:hover { color: var(--sjp-navy); }
.sjp-dash-empty {
	color: var(--sjp-text-soft);
	font-style: italic;
	font-size: 0.98rem;
}

/* Notice list */
.sjp-dash-notice-list { display: flex; flex-direction: column; }
.sjp-dash-notice-row {
	display: flex;
	align-items: flex-start;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--sjp-light-grey);
	text-decoration: none;
	color: inherit;
}
.sjp-dash-notice-row:last-child { border-bottom: none; }
.sjp-dash-notice-row:hover { background: var(--sjp-off-white); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; }
.sjp-dash-notice-border {
	width: 3px;
	flex-shrink: 0;
	align-self: stretch;
	margin-right: 0.875rem;
	border-radius: 0;
}
.sjp-dash-notice-body { flex: 1; min-width: 0; }
.sjp-dash-notice-type {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sjp-text-soft);
	margin-bottom: 2px;
}
.sjp-dash-notice-title {
	font-family: var(--sjp-font-heading);
	font-size: 1.02rem;
	color: var(--sjp-navy);
	line-height: 1.3;
	margin-bottom: 2px;
}
.sjp-dash-notice-text {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	line-height: 1.5;
}

/* Newsletter */
.sjp-dash-nl-inner { display: flex; flex-direction: column; }
.sjp-dash-nl-thumb {
	display: block;
	border: 1px solid var(--sjp-mid-grey);
	margin-bottom: 1.1rem;
	overflow: hidden;
	background: #fff;
	line-height: 0;
	box-shadow: 0 2px 10px rgba(27, 43, 75, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sjp-dash-nl-thumb:hover,
.sjp-dash-nl-thumb:focus-visible {
	box-shadow: 0 6px 18px rgba(27, 43, 75, 0.16);
	transform: translateY(-2px);
}
.sjp-dash-nl-img {
	display: block;
	width: 100%;
	height: auto;
}
.sjp-dash-nl-meta {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sjp-text-soft);
	margin-bottom: 3px;
}
.sjp-dash-nl-title {
	font-family: var(--sjp-font-heading);
	font-size: 1.3rem;
	color: var(--sjp-navy);
	font-weight: 700;
	margin-bottom: 4px;
	line-height: 1.3;
}
.sjp-dash-nl-desc {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	line-height: 1.55;
	margin-bottom: 0.875rem;
}
.sjp-dash-nl-btn {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
	font-size: 1rem;
}

/* Tablet: two equal columns, newsletter first */
@media (min-width: 601px) and (max-width: 900px) {
	.sjp-dashboard-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	.sjp-dash-newsletter { order: 1; flex: unset; }
	.sjp-dash-notices    { order: 2; }
}

/* Mobile  single column */
@media (max-width: 600px) {
	.sjp-parish-dashboard { padding: 2rem 0; }

	.sjp-dashboard-heading {
		display: block;
		margin-bottom: 1.75rem;
	}

	.sjp-dashboard-heading-rule:first-child {
		display: none;
	}

	.sjp-dashboard-heading-rule:last-child {
		display: block;
		width: 100%;
		max-width: none;
		height: 1px;
		margin-top: 0.65rem;
		background: var(--sjp-gold);
		opacity: 0.65;
	}

	.sjp-dashboard-heading-text {
		display: block;
		font-size: 1.35rem;
		white-space: normal;
		text-align: left;
	}

	.sjp-dashboard-grid {
		flex-direction: column;
		gap: 2rem;
	}

	.sjp-dash-newsletter { order: 1; flex: unset; }
	.sjp-dash-notices    { order: 2; }
	.sjp-dash-col { width: 100%; }
	
		.sjp-dash-notice-type {
		display: none;
	}
}
.sjp-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.sjp-card {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	padding: 2rem;
	text-decoration: none;
	display: block;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
}
.sjp-card:hover {
	box-shadow: var(--sjp-shadow);
	transform: translateY(-3px);
	color: inherit;
}
.sjp-card-type {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.2rem 0.65rem;
	display: inline-block;
	margin-bottom: 1rem;
}
.sjp-card-type.parish    { background: #EDF2FA; color: var(--sjp-navy); }
.sjp-card-type.liturgy   { background: #FDF0F0; color: var(--sjp-red); }
.sjp-card-type.community { background: #FDF7ED; color: var(--sjp-gold); }
.sjp-card h3 {
	font-size: 1.1rem;
	color: var(--sjp-navy);
	margin-bottom: 0.6rem;
	line-height: 1.3;
}
.sjp-card p { font-size: 0.9rem; color: var(--sjp-text-soft); margin-bottom: 0; }
.sjp-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--sjp-gold);
	margin-top: 1.25rem;
	text-decoration: none;
}
.sjp-card-link:hover { color: var(--sjp-navy); }

/* ============================================================
   MASS SCHEDULE TABLE + SIDEBAR
   (used on masses-events page)
   ============================================================ */

.sjp-table { width: 100%; border-collapse: collapse; }
.sjp-table thead tr { background: var(--sjp-navy); }
.sjp-table thead th {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	font-weight: 400;
	text-transform: uppercase;
	color: #fff;
	padding: 0.9rem 1.25rem;
	text-align: left;
}
.sjp-table tbody tr { border-bottom: 1px solid var(--sjp-mid-grey); transition: background 0.15s; }
.sjp-table tbody tr:hover { background: var(--sjp-off-white); }
.sjp-table td { padding: 0.85rem 1.25rem; font-size: 0.92rem; color: var(--sjp-text-mid); vertical-align: top; }
.sjp-table td:first-child { font-weight: 600; color: var(--sjp-navy); white-space: nowrap; width: 120px; }
.sjp-table .no-mass { color: #6B6B6B; }

.rite-badge {
	display: inline-block;
	font-size: 0.8rem;
	font-family: var(--sjp-font-ui);
	letter-spacing: 0.06em;
	padding: 0.12rem 0.45rem;
	margin-left: 0.35rem;
	vertical-align: middle;
	border-radius: 2px;
}
.rite-dw   { background: #FDF7ED; color: #8B6914; border: 1px solid #E8D4A0; }
.rite-sung { background: #EDF2FA; color: var(--sjp-navy); border: 1px solid #BDD0F0; }

/* Sidebar cards */
.sjp-sidebar-card {
	background: var(--sjp-navy);
	color: #fff;
	padding: 2rem;
	margin-bottom: 1.25rem;
}
.sjp-sidebar-card h3 {
	font-family: var(--sjp-font-heading);
	font-size: 1.2rem;
	color: var(--sjp-gold-lt);
	margin-bottom: 0.75rem;
}
.sjp-sidebar-card p {
	font-size: 0.98rem;
	color: rgba(255,255,255,0.7);
	line-height: 1.7;
	margin-bottom: 1.25rem;
}
.sjp-sidebar-info {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	padding: 1.75rem;
}
.sjp-sidebar-info h3 {
	font-size: 1rem;
	color: var(--sjp-navy);
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--sjp-mid-grey);
}
.sjp-contact-row {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-bottom: 0.9rem;
	font-size: 0.98rem;
	color: var(--sjp-text-mid);
}
.sjp-contact-row svg { flex-shrink: 0; margin-top: 3px; }
.sjp-contact-row a { color: var(--sjp-gold); text-decoration: none; }
.sjp-contact-row a:hover { text-decoration: underline; }

/* ============================================================
   PHOTO STRIP
   ============================================================ */
.sjp-photo-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	height: 240px;
	overflow: hidden;
}
.sjp-photo-strip-item { overflow: hidden; position: relative; }
.sjp-photo-strip-item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.sjp-photo-strip-item:hover img { transform: scale(1.06); }
.sjp-photo-strip-caption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	background: linear-gradient(transparent, rgba(27,43,75,0.72));
	color: #fff;
	font-size: 0.86rem;
	font-weight: 500;
	padding: 1.5rem 0.875rem 0.6rem;
	opacity: 0;
	transition: opacity 0.3s;
}
.sjp-photo-strip-item:hover .sjp-photo-strip-caption { opacity: 1; }

/* ============================================================
   QUICK LINKS BAR
   ============================================================ */
.sjp-links-bar {
	background: var(--sjp-light-grey);
	padding: 2.5rem 0;
	border-top: 1px solid var(--sjp-mid-grey);
	border-bottom: 1px solid var(--sjp-mid-grey);
}
.sjp-links-bar-inner {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}
.sjp-quick-link {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	padding: 1.25rem 1rem;
	text-align: center;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.sjp-quick-link:hover { box-shadow: var(--sjp-shadow); border-color: var(--sjp-gold); }
.sjp-quick-link svg { margin: 0 auto 0.65rem; flex-shrink: 0; }
.sjp-quick-link .sjp-ql-fa-icon { margin-bottom: 0.65rem; }
.sjp-quick-link span {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--sjp-navy);
	text-transform: uppercase;
	display: block;
}

/* ============================================================
   MAIN CONTENT AREA (inner pages)
   ============================================================ */
.site-main { padding: 4rem 0; }

.content-area { max-width: 760px; }
.has-sidebar .content-area { max-width: 100%; }

.sjp-page-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 3rem;
	align-items: start;
}
.sjp-page-layout.no-sidebar { grid-template-columns: 1fr; }
.sjp-page-layout.no-sidebar .content-area { max-width: 760px; margin: 0 auto; }
.sjp-page-layout.no-sidebar .sjp-archive-grid { grid-template-columns: 1fr; }

/* Entry */
.entry-header { margin-bottom: 2rem; }
.entry-title { margin-bottom: 0.5rem; }
.entry-meta {
	font-size: 0.94rem;
	color: var(--sjp-text-soft);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.entry-meta a { color: var(--sjp-gold); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }

.entry-thumbnail {
	margin-bottom: 2rem;
	width: 100%;
	aspect-ratio: 16/7;
	object-fit: cover;
}

.entry-content { line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content a:not(.btn):not(.wp-block-button__link),
.sjp-page-content a:not(.btn):not(.wp-block-button__link),
.sjp-sacrament-content a:not(.btn):not(.wp-block-button__link),
.sjp-pastoral-content a:not(.btn):not(.wp-block-button__link),
.sjp-story-content a:not(.btn):not(.wp-block-button__link),
.sjp-parish-story-content a:not(.btn):not(.wp-block-button__link) {
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: rgba(184, 137, 42, 0.55);
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.entry-content a:not(.btn):not(.wp-block-button__link):hover,
.sjp-page-content a:not(.btn):not(.wp-block-button__link):hover,
.sjp-sacrament-content a:not(.btn):not(.wp-block-button__link):hover,
.sjp-pastoral-content a:not(.btn):not(.wp-block-button__link):hover,
.sjp-story-content a:not(.btn):not(.wp-block-button__link):hover,
.sjp-parish-story-content a:not(.btn):not(.wp-block-button__link):hover {
	color: var(--sjp-gold-accessible);
	text-decoration-color: var(--sjp-gold-accessible);
}

/* Page header band */
.sjp-page-header {
	background: var(--sjp-navy);
	padding: 0;
	margin-bottom: 0;
	position: relative;
}
.sjp-page-header::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--sjp-gold);
}
.sjp-page-header::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 1px;
	background: rgba(184,137,42,0.25);
}
.sjp-page-header-inner {
	max-width: 680px;
	margin: 0 auto;
	padding: 38px 2rem 34px;
	text-align: center;
}
.sjp-page-header h1 {
	color: #fff;
	margin: 0 0 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 400;
}
.sjp-page-header-rule {
	width: 36px;
	height: 1px;
	background: rgba(184,137,42,0.45);
	margin: 14px auto 12px;
}
.sjp-page-header .breadcrumb {
	font-size: 0.86rem;
	color: rgba(255,255,255,0.75);
	margin: 0;
}
.sjp-page-header .breadcrumb a {
	color: rgba(255,255,255,0.9);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255,255,255,0.45);
}
.sjp-page-header .breadcrumb a:hover { text-decoration-color: currentColor; }

/* Override Ã¢â‚¬â€ Our Parish page header left-aligns its tag (no parent eyebrow) */
.sjp-our-parish-page .sjp-page-header-inner {
	text-align: left;
	max-width: 1200px;
}

/* ============================================================
   ARCHIVE / BLOG
   ============================================================ */
.sjp-archive-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}
.sjp-archive-card {
	border: 1px solid var(--sjp-mid-grey);
	overflow: hidden;
	transition: box-shadow 0.2s;
}
.sjp-archive-card:hover { box-shadow: var(--sjp-shadow); }
.sjp-archive-card-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}
.sjp-archive-card-body { padding: 1.5rem; }
.sjp-archive-card-body h2 {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}
.sjp-archive-card-body h2 a { text-decoration: none; color: var(--sjp-navy); }
.sjp-archive-card-body h2 a:hover { color: var(--sjp-gold); }
.sjp-archive-card-body p { font-size: 0.9rem; color: var(--sjp-text-soft); margin-bottom: 1rem; }

/* Pagination */
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.page-numbers {
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--sjp-mid-grey);
	text-decoration: none;
	font-size: 0.98rem;
	color: var(--sjp-text-mid);
	transition: all 0.2s;
}
.page-numbers.current,
.page-numbers:hover { background: var(--sjp-navy); color: #fff; border-color: var(--sjp-navy); }

/* ============================================================
   SIDEBAR WIDGET
   ============================================================ */
.widget-area { }
.widget {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}
.widget-title {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	color: var(--sjp-gold);
	text-transform: uppercase;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--sjp-mid-grey);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { border-bottom: 1px solid var(--sjp-mid-grey); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
	display: block;
	padding: 0.6rem 0;
	font-size: 0.9rem;
	color: var(--sjp-text-mid);
	text-decoration: none;
}
.widget ul li a:hover { color: var(--sjp-gold); }

/* ============================================================
   SINGLE POST Ã¢â‚¬â€ NAVIGATION
   ============================================================ */
.post-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--sjp-mid-grey);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.nav-previous a, .nav-next a {
	font-size: 0.94rem;
	font-weight: 600;
	color: var(--sjp-navy);
	text-decoration: none;
	display: block;
}
.nav-next { text-align: right; }
.nav-previous .nav-subtitle, .nav-next .nav-subtitle {
	font-size: 0.83rem;
	color: var(--sjp-gold);
	font-family: var(--sjp-font-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sjp-mid-grey); }
.comments-title { font-size: 1.3rem; margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--sjp-light-grey); }
.comment-author .fn { font-weight: 600; color: var(--sjp-navy); }
.comment-metadata { font-size: 0.92rem; color: var(--sjp-text-soft); margin-bottom: 0.75rem; }
.comment-content { font-size: 0.95rem; color: var(--sjp-text-mid); }
.comment-form input,
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--sjp-mid-grey);
	padding: 0.75rem 1rem;
	font-family: var(--sjp-font-body);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	background: var(--sjp-off-white);
}
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--sjp-gold);
	background: var(--sjp-white);
}
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   404 / SEARCH
   ============================================================ */
.sjp-404-content, .sjp-search-content { text-align: center; max-width: 560px; margin: 0 auto; padding: 4rem 0; }
.sjp-404-code { font-family: var(--sjp-font-heading); font-size: clamp(4rem, 10vw, 7rem); color: var(--sjp-text-soft); margin: 0; line-height: 1; }
.sjp-404-content h1 { margin-top: 0.5rem; }
.sjp-404-search { margin: 1.5rem 0; }
.sjp-404-links { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; }
.sjp-404-links a { color: var(--sjp-navy); text-decoration: underline; font-weight: 600; }
.search-form { display: flex; gap: 0; margin: 2rem auto; max-width: 420px; }
.search-form .search-field {
	flex: 1;
	border: 1px solid var(--sjp-mid-grey);
	border-right: none;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	font-family: var(--sjp-font-body);
}
.search-form .search-field:focus { outline: none; border-color: var(--sjp-gold); }
.search-form .search-submit {
	background: var(--sjp-navy);
	color: #fff;
	border: none;
	padding: 0.75rem 1.25rem;
	cursor: pointer;
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	font-family: var(--sjp-font-body);
	transition: background 0.2s;
}
.search-form .search-submit:hover { background: var(--sjp-navy-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: var(--sjp-navy);
	color: rgba(255,255,255,0.65);
	padding: 4rem 0 2rem;
}
.sjp-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	margin-bottom: 2rem;
}
.footer-brand .brand-name {
	font-family: var(--sjp-font-ui);
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	display: block;
	margin-bottom: 0.25rem;
	letter-spacing: 0.04em;
}
.footer-brand .brand-diocese {
	font-size: 0.98rem;
	color: rgba(255,255,255,0.65);
}
.footer-brand .brand-address {
	font-size: 0.95rem;
	line-height: 1.8;
	margin-top: 1rem;
	color: rgba(255,255,255,0.75);
}
.footer-brand .brand-whatsapp,
.footer-brand .brand-email,
.footer-brand .brand-phone {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.95rem;
	color: var(--sjp-gold-lt);
	text-decoration: none;
}
.footer-brand .brand-whatsapp { margin-top: 1rem; }
.footer-brand .brand-whatsapp:hover,
.footer-brand .brand-email:hover,
.footer-brand .brand-phone:hover { color: #fff; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-socials a {
	width: 34px; height: 34px;
	border: 1px solid rgba(255,255,255,0.2);
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--sjp-gold-lt); color: var(--sjp-gold-lt); }
.footer-col-title {
	font-family: var(--sjp-font-ui);
	font-size: 0.83rem;
	letter-spacing: 0.18em;
	color: var(--sjp-gold-lt);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav ul li a { font-size: 0.95rem; color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-nav ul li a:hover { color: #fff; }
.sjp-footer-bottom {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.7);
}
.site-footer .sjp-charity-statement {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(255,255,255,0.85);
}
.sjp-footer-copyright { display: block; margin-top: 0.75rem; }
.sjp-footer-bottom a {
	color: var(--sjp-gold-lt);
	text-decoration: none;
	text-underline-offset: 3px;
}
.sjp-footer-bottom a:hover,
.sjp-footer-bottom a:focus { color: #fff; text-decoration: underline; }
.sjp-footer-bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	font-size: 0.92rem;
}

/* ============================================================
   BLOCK EDITOR ALIGNMENT SUPPORT
   ============================================================ */
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 0.5rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 0.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-block-image img { max-width: 100%; height: auto; }

/* ============================================================
   RESPONSIVE Ã¢â‚¬â€ TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {

	.menu-toggle { display: flex; }
	
	.sjp-title-break { display: block; }

	.main-navigation {
		display: none;
		position: absolute;
		top: 80px;
		left: 0; right: 0;
		background: var(--sjp-white);
		border-bottom: 2px solid var(--sjp-gold);
		box-shadow: var(--sjp-shadow);
		z-index: 300;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; padding: 0.5rem 0; width: 100%; }
	.main-navigation ul li { width: 100%; position: relative; display: flex; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid var(--sjp-light-grey); }
	.main-navigation ul li > a { flex: 1; padding: 0.75rem 1.5rem; border-bottom: none; }
	.main-navigation ul li a::after { display: none; }
	.main-navigation ul ul { display: none; position: static; box-shadow: none; border: none; border-top: none; background: var(--sjp-off-white); width: 100%; }
	.main-navigation ul li.is-open > ul { display: flex; flex-direction: column; }
	.main-navigation .menu-newsletter > a { margin-left: 0; }

	.sjp-mass-strip-inner { grid-template-columns: repeat(2, 1fr); }
	.sjp-mass-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
	.sjp-mass-block:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }

	.sjp-welcome-inner { display: flex; flex-direction: column; gap: 3rem; }
	.sjp-welcome-text { order: 1; }
	.sjp-welcome-images { display: none; }
	.sjp-welcome-images { padding-bottom: 2rem; padding-right: 2rem; }
	.sjp-welcome-cards { grid-template-columns: repeat(2, 1fr); }

	.sjp-arrange-grid { grid-template-columns: repeat(2, 1fr); }

	.sjp-cards-grid { grid-template-columns: repeat(2, 1fr); }

	.sjp-photo-strip { grid-template-columns: repeat(2, 1fr); height: 320px; }

	.sjp-links-bar-inner { grid-template-columns: repeat(3, 1fr); }

	.sjp-page-layout { grid-template-columns: 1fr; }
	.sjp-archive-grid { grid-template-columns: 1fr; }

	.sjp-footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE Ã¢â‚¬â€ MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {

	.site-header .container { height: auto; padding: 0.875rem 1.25rem; }
	
	.sjp-welcome { padding: 2.5rem 0; }
	.sjp-welcome-text { padding-top: 0; }
	.sjp-top-banner .container { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
	.sjp-top-banner-right { gap: 1rem; }


	.sjp-mass-strip-inner { grid-template-columns: 1fr; }
	.sjp-mass-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
	.sjp-mass-block:nth-child(odd) { border-right: none; }

	.sjp-welcome-images { padding-bottom: 1.75rem; padding-right: 1.75rem; }
	.sjp-welcome-img-accent { width: 45%; }
	.sjp-welcome-cards { grid-template-columns: 1fr; }
	.sjp-welcome-btns { flex-direction: column; }
	.sjp-welcome-btns .btn { width: 100%; text-align: center; }

	.sjp-arrange { padding: 2.5rem 0; }
	.sjp-arrange-grid { grid-template-columns: 1fr; }
	.sjp-arrange-card { min-height: 0; }

	.sjp-cards-grid { grid-template-columns: 1fr; }

	.sjp-photo-strip { grid-template-columns: repeat(2, 1fr); height: 240px; }

	.sjp-links-bar-inner { grid-template-columns: repeat(2, 1fr); }

	.sjp-page-header { padding: 2rem 0; }

	.sjp-footer-grid { grid-template-columns: 1fr; gap: 2rem; }


	.post-navigation { grid-template-columns: 1fr; }
	.nav-next { text-align: left; }

	.alignwide, .alignfull { margin-left: 0; margin-right: 0; }
	.sjp-mass-strip { padding-bottom: 2rem; }
}
/* ============================================================
   NEWSLETTER Ã¢â‚¬â€ SINGLE ISSUE
   ============================================================ */
.sjp-newsletter-single {
	max-width: 900px;
	margin: 0 auto;
	padding: 3rem 0 5rem;
}

.sjp-nl-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--sjp-mid-grey);
	flex-wrap: wrap;
	gap: 1rem;
}
.sjp-nl-date {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	font-family: var(--sjp-font-ui);
	letter-spacing: 0.06em;
}
.sjp-nl-download {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.sjp-nl-preview-wrap {
	margin-bottom: 2rem;
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
}

/* Mobile notice Ã¢â‚¬â€ hidden on desktop, shown on mobile */
.sjp-nl-mobile-notice {
	display: none;
	padding: 2rem;
	text-align: center;
}
.sjp-nl-mobile-notice p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--sjp-text-mid);
	line-height: 1.7;
}
.sjp-nl-mobile-notice a {
	color: var(--sjp-gold);
	font-weight: 600;
}

.sjp-nl-preview-desktop { display: block; }
.sjp-nl-iframe {
	width: 100%;
	height: 780px;
	border: none;
	display: block;
}
.sjp-nl-iframe-fallback {
	text-align: center;
	padding: 0.75rem;
	font-size: 0.94rem;
	color: var(--sjp-text-soft);
	border-top: 1px solid var(--sjp-mid-grey);
	margin: 0;
	background: var(--sjp-white);
}
.sjp-nl-iframe-fallback a { color: var(--sjp-gold); }

/* Newsletter page: locally hosted first-page preview + button */
.sjp-nl-cover { text-align: center; padding: 1.5rem; }
.sjp-nl-cover-link { display: inline-block; max-width: 560px; width: 100%; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.sjp-nl-cover-img { display: block; width: 100%; height: auto; }
.sjp-nl-cover-text { margin: 1.25rem 0 0; }

.sjp-nl-download-footer {
	text-align: center;
	margin: 2rem 0;
}
.sjp-nl-download-footer .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.sjp-nl-no-pdf {
	padding: 3rem;
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	text-align: center;
	color: var(--sjp-text-soft);
	margin-bottom: 2rem;
}

.sjp-nl-notes {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--sjp-mid-grey);
}
.sjp-nl-notes h2 {
	font-size: 1.3rem;
	margin-bottom: 1.25rem;
}

.sjp-nl-back {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sjp-mid-grey);
}
.sjp-nl-back a {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--sjp-navy);
	text-decoration: none;
}
.sjp-nl-back a:hover { color: var(--sjp-gold); }

/* ============================================================
   NEWSLETTER Ã¢â‚¬â€ ARCHIVE LISTING
   ============================================================ */
.sjp-newsletter-archive {
	padding: 3rem 0 5rem;
	max-width: 860px;
	margin: 0 auto;
}

.sjp-nl-intro {
	margin-bottom: 2.5rem;
	font-size: 1rem;
	color: var(--sjp-text-mid);
}

.sjp-nl-year-group { margin-bottom: 3rem; }
.sjp-nl-year {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	color: var(--sjp-gold-accessible);
	text-transform: uppercase;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--sjp-navy);
	display: flex;
	align-items: center;
	gap: 1rem;
}
.sjp-nl-year::after {
	content: '';
	flex: 1;
	height: 2px;
	background: var(--sjp-light-grey);
}

.sjp-nl-table { width: 100%; border-collapse: collapse; }
/* Archive: one page, a folded section per year, months within each year */
.sjp-nl-yearnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 2rem; font-family: var(--sjp-font-ui); }
.sjp-nl-yearnav-label { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sjp-text-mid); }
.sjp-nl-yearnav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.sjp-nl-yearnav a { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--sjp-navy); color: var(--sjp-navy); font-weight: 600; text-decoration: none; }
.sjp-nl-yearnav a:hover, .sjp-nl-yearnav a:focus-visible { background: var(--sjp-navy); color: #fff; }
details.sjp-nl-year-group { margin-bottom: 1.5rem; scroll-margin-top: 6rem; }
.sjp-nl-year-summary { cursor: pointer; list-style: none; }
.sjp-nl-year-summary::-webkit-details-marker { display: none; }
.sjp-nl-year-summary:focus-visible { outline: 3px solid var(--sjp-gold); outline-offset: 3px; }
.sjp-nl-year-summary .sjp-nl-year { margin-bottom: 0; }
.sjp-nl-year-summary .sjp-nl-year::before { content: ''; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--sjp-navy); border-bottom: 2px solid var(--sjp-navy); transform: rotate(-45deg); transition: transform 0.2s; flex: none; }
details[open] > .sjp-nl-year-summary .sjp-nl-year::before { transform: rotate(45deg); }
.sjp-nl-count { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--sjp-text-soft); text-transform: none; font-weight: 400; order: 2; }
.sjp-nl-year-summary .sjp-nl-year::after { order: 3; }
.sjp-nl-year-group .sjp-nl-table { margin-top: 1rem; }
.sjp-nl-month-row th { text-align: left; font-family: var(--sjp-font-ui); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sjp-navy); padding: 1.1rem 1rem 0.4rem; border-bottom: 2px solid var(--sjp-navy); background: transparent; }

.sjp-nl-table thead tr {
	background: var(--sjp-light-grey);
	border-bottom: 2px solid var(--sjp-navy);
}
.sjp-nl-table thead th {
	font-family: var(--sjp-font-ui);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sjp-navy);
	font-weight: 700;
	padding: 0.85rem 1rem;
	text-align: left;
}
.sjp-nl-row {
	border-bottom: 1px solid var(--sjp-mid-grey);
	transition: background 0.15s;
}
.sjp-nl-row:hover { background: var(--sjp-off-white); }
.sjp-nl-row td { padding: 0.9rem 1rem; vertical-align: middle; }

.sjp-nl-title a {
	font-weight: 600;
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: var(--sjp-mid-grey);
	text-underline-offset: 3px;
	font-size: 1.05rem;
}
.sjp-nl-title a:hover { color: var(--sjp-gold); text-decoration-color: var(--sjp-gold); }

.sjp-nl-date-col {
	font-size: 0.95rem;
	color: var(--sjp-text-soft);
	white-space: nowrap;
	width: 160px;
}

.sjp-nl-actions { width: 150px; white-space: nowrap; }
.sjp-nl-action-view,
.sjp-nl-action-download {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-width: 4.5rem;
	height: 2.4rem;
	padding: 0 0.8rem;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	vertical-align: middle;
	border: 1px solid transparent;
}
.sjp-nl-action-view {
	color: var(--sjp-navy);
	border-color: var(--sjp-navy);
	margin-right: 0.4rem;
	transition: background 0.2s, color 0.2s;
}
.sjp-nl-action-view:hover { background: var(--sjp-navy); color: #fff; }

.sjp-nl-action-download {
	color: #fff;
	background: var(--sjp-gold-accessible);
	border-color: var(--sjp-gold-accessible);
	transition: background 0.2s;
}
.sjp-nl-action-download:hover { background: var(--sjp-gold-accessible-hover); color: white; }

.sjp-nl-empty {
	color: var(--sjp-text-soft);
	font-style: italic;
	padding: 3rem 0;
}

/* ============================================================
   NEWSLETTER RESPONSIVE
   ============================================================ */
@media ( max-width: 700px ) {
	.sjp-nl-preview-desktop { display: none; }
	.sjp-nl-mobile-notice   { display: block; }
	.sjp-nl-date-col        { display: none; }
	.sjp-nl-actions         { width: auto; }
	.sjp-nl-table thead th:nth-child(2) { display: none; }
}

/* ============================================================
   LOGO & BRANDING
   ============================================================ */
.site-branding-wrap {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 440px;
    margin: 0;
    padding: 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 0;
}

/* Robust custom-logo sizing.
   This covers both the current header markup and older header markup,
   so the logo stays controlled even if the wrapper class changes. */
.site-branding-wrap .custom-logo-link,
.site-branding-wrap.has-custom-logo .custom-logo-link,
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: clamp(240px, 32vw, 420px);
    overflow: visible;
    text-decoration: none;
}

.site-branding-wrap .custom-logo,
.site-branding-wrap .custom-logo-link img,
.site-branding-wrap.has-custom-logo .custom-logo-link img,
.site-branding .custom-logo-link img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 84px;
    object-fit: contain;
    flex-shrink: 1;
}

.site-branding-wrap.has-text-branding {
    max-width: 360px;
}

.brand-text-link {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
}
.brand-text-link:hover { color: inherit; text-decoration: none; }

.site-title {
    font-family: var(--sjp-font-ui);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 800;
    color: var(--sjp-navy);
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-description {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 600;
    color: var(--sjp-text-soft);
    letter-spacing: 0.04em;
    line-height: 1.35;
    margin: 0.15rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 601px) and (max-width: 900px) {
    .site-branding-wrap {
        flex: 1 1 auto;
        max-width: calc(100% - 70px);
        overflow: hidden;
    }
    .site-branding-wrap .custom-logo-link,
    .site-branding-wrap.has-custom-logo .custom-logo-link,
    .site-branding .custom-logo-link {
        max-width: min(100%, 340px);
    }
    .site-branding-wrap .custom-logo,
    .site-branding-wrap .custom-logo-link img,
    .site-branding-wrap.has-custom-logo .custom-logo-link img,
    .site-branding .custom-logo-link img {
        max-height: 72px;
    }
    .site-title { font-size: 1.2rem; }
    .site-description { font-size: 0.98rem; }
    .menu-toggle {
        flex-shrink: 0;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .site-branding-wrap {
        flex: 1 1 auto;
        max-width: calc(100% - 56px);
        overflow: hidden;
    }
    .site-branding {
        gap: 0.625rem;
        min-width: 0;
        overflow: hidden;
    }
    .site-branding-wrap .custom-logo-link,
    .site-branding-wrap.has-custom-logo .custom-logo-link,
    .site-branding .custom-logo-link {
        max-width: min(100%, 240px);
    }
    .site-branding-wrap .custom-logo,
    .site-branding-wrap .custom-logo-link img,
    .site-branding-wrap.has-custom-logo .custom-logo-link img,
    .site-branding .custom-logo-link img {
        max-height: 64px;
    }
    .brand-text-link {
        min-width: 0;
        overflow: hidden;
        text-decoration: none;
    }
    .brand-text-link:hover { text-decoration: none; }
    .site-title {
        font-size: 1.1rem;
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
        max-width: 100%;
        text-decoration: none;
    }
    .site-description {
        font-size: 0.83rem;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
    }
    .sjp-title-break { display: block; }
}
/* Submenu toggle button Ã¢â‚¬â€ added by JS on mobile only */
.submenu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: var(--sjp-navy);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    min-width: 44px;
    text-align: center;
}

@media (max-width: 900px) {
        .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        min-width: 44px;
        padding: 0;
        z-index: 10;
    }

    /* Make parent item relative so toggle button positions correctly */
    .main-navigation ul li {
        position: relative;
    }

    /* Hide submenus by default on mobile */
    .main-navigation ul ul {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: var(--sjp-off-white);
        width: 100%;
    }

    /* Show submenu when parent has is-open class */
    .main-navigation ul li.is-open > ul {
        display: flex;
        flex-direction: column;
    }

    /* Submenu items Ã¢â‚¬â€ same left edge as parent, gold border as visual cue */
    .main-navigation ul ul li a {
        padding: 0.65rem 1.5rem 0.65rem 2rem;
        background: var(--sjp-off-white);
        border-left: 3px solid var(--sjp-gold);
        border-bottom: 1px solid var(--sjp-mid-grey);
        padding-right: 1.5rem;
    }
}
/* ============================================================
   WHAT'S ON Ã¢â‚¬â€ UNIFIED MASS & EVENTS LIST
   ============================================================ */
.sjp-whats-on {
	display: block;
	margin-bottom: 2rem;
}
.sjp-wo-when {
    font-family: var(--sjp-font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--sjp-text-soft);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.sjp-wo-row {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 1.25rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--sjp-mid-grey);
	align-items: center;
}

.sjp-wo-date {
    background: var(--sjp-navy);
    text-align: center;
    padding: 0.4rem 0;
    flex-shrink: 0;
    align-self: center;
}

.sjp-wo-day {
    font-family: var(--sjp-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sjp-gold-lt);
    display: block;
    line-height: 1;
}

.sjp-wo-month { display: none; }
.sjp-wo-dayname { display: none; }
.sjp-wo-content { min-width: 0; }

.sjp-wo-type-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.15rem 0.5rem;
	display: inline-block;
	margin-bottom: 0.35rem;
	background: #EDF2FA;
	color: var(--sjp-navy);
}
.sjp-wo-event-label {
	background: #FDF7ED;
	color: var(--sjp-gold);
}

.sjp-wo-summary {
	font-size: 0.9rem;
	color: var(--sjp-text-mid);
	line-height: 1.5;
}
.sjp-wo-summary strong { color: var(--sjp-navy); }
.sjp-wo-summary a { color: var(--sjp-navy); font-weight: 600; text-decoration: none; }
.sjp-wo-summary a:hover { color: var(--sjp-gold-accessible); }

.sjp-wo-footer {
	margin-top: 1.5rem;
}

@media (max-width: 600px) {
	.sjp-wo-row { grid-template-columns: 58px 1fr; gap: 0.875rem; }
	.sjp-wo-day { font-size: 1.2rem; }
	.sjp-mass-mobile-summary {
		display: block;
		padding: 0.75rem 1.5rem;
	}
	.sjp-mass-mobile-toggle {
		background: none;
		border: 0;
		padding: 0;
		cursor: pointer;
		color: var(--sjp-gold-lt);
		font-family: var(--sjp-font-ui);
		font-size: 0.86rem;
		letter-spacing: 0.15em;
		text-transform: uppercase;
		text-decoration: none;
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	/* Same arrow glyph in both states, flipped with CSS, so the line never changes height */
	.sjp-mass-mobile-toggle { line-height: 1.2; }
	.sjp-mass-mobile-arrow {
		display: inline-block;
		line-height: 1;
		transition: transform 0.2s;
	}
	.sjp-mass-mobile-toggle[aria-expanded="true"] .sjp-mass-mobile-arrow { transform: rotate(180deg); }
	.sjp-mass-strip-detail { display: none; }
	.sjp-mass-strip-detail.is-open { display: block; }
}
@media (min-width: 601px) {
    .sjp-mass-mobile-summary { display: none; }
    .sjp-mass-strip-detail { display: block; }
}

/* ============================================================
   OUR PARISH Ã¢â‚¬â€ LANDING PAGE
   ============================================================ */
.sjp-our-parish-page { padding: 0 0 5rem; }

.sjp-op-intro {
	max-width: 720px;
	padding: 4rem 0 3rem;
}
.sjp-op-intro h2 {
	font-family: var(--sjp-font-heading);
	font-size: 2rem;
	color: var(--sjp-navy);
	margin-bottom: 1.25rem;
	line-height: 1.2;
}
.sjp-op-intro p { font-size: 1.05rem; color: var(--sjp-text-mid); line-height: 1.8; }

.sjp-op-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.sjp-op-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--sjp-white);
	overflow: hidden;
	transition: box-shadow 0.25s, transform 0.25s;
}
.sjp-op-card:hover {
	box-shadow: 0 12px 40px rgba(0,0,0,0.13);
	transform: translateY(-4px);
	color: inherit;
}

.sjp-op-card-photo {
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	position: relative;
	background: var(--sjp-navy);
}
.sjp-op-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.5s ease;
}
.sjp-op-card:hover .sjp-op-card-photo img { transform: scale(1.05); }

.sjp-op-card-photo::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 3px;
	background: var(--sjp-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.sjp-op-card:hover .sjp-op-card-photo::after { transform: scaleX(1); }

.sjp-op-card-placeholder {
	background: linear-gradient(135deg, var(--sjp-navy-mid), var(--sjp-navy));
	display: flex;
	align-items: center;
	justify-content: center;
}
.sjp-op-card-placeholder-cross {
	font-size: 2.5rem;
	color: rgba(255,255,255,0.12);
}

.sjp-op-card-body { padding: 1.5rem; }
.sjp-op-card-title {
	font-family: var(--sjp-font-heading);
	font-size: 1.1rem;
	color: var(--sjp-navy);
	margin-bottom: 0.5rem;
	line-height: 1.25;
}
.sjp-op-card-desc {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	line-height: 1.65;
	margin-bottom: 1rem;
}
.sjp-op-card-link {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	color: var(--sjp-gold-accessible);
	text-transform: uppercase;
	display: inline-block;
	transition: color 0.2s;
}
.sjp-op-card:hover .sjp-op-card-link { color: var(--sjp-navy); }

/* No gaps in the final row: on the 3-up grid (built on 6 tracks), two
   leftover cards widen to half the row each; a single leftover card (or the
   odd one on the 2-up tablet grid) becomes a full-width landscape card. */
@media (min-width: 901px) {
	.sjp-op-grid { grid-template-columns: repeat(6, 1fr); }
	.sjp-op-card { grid-column: span 2; }
	.sjp-op-card:nth-child(3n+1):nth-last-child(2),
	.sjp-op-card:nth-child(3n+1):nth-last-child(2) + .sjp-op-card { grid-column: span 3; }
	.sjp-op-card:nth-child(3n+1):nth-last-child(2) .sjp-op-card-photo,
	.sjp-op-card:nth-child(3n+1):nth-last-child(2) + .sjp-op-card .sjp-op-card-photo { aspect-ratio: 2/1; }
	.sjp-op-card:nth-child(3n+1):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
	.sjp-op-card:nth-child(3n+1):last-child .sjp-op-card-photo { height: 100%; aspect-ratio: auto; min-height: 260px; }
}
@media (max-width: 900px) {
	.sjp-op-grid { grid-template-columns: repeat(2, 1fr); }
	.sjp-op-card:nth-child(odd):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
	.sjp-op-card:nth-child(odd):last-child .sjp-op-card-photo { height: 100%; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 600px) {
	.sjp-op-grid { grid-template-columns: 1fr; }
	.sjp-op-card:nth-child(n) { display: block; }
	.sjp-op-card:nth-child(n) .sjp-op-card-photo { aspect-ratio: 4/3; height: auto; min-height: 0; }
	.sjp-op-intro { padding: 2.5rem 0 2rem; }
	.sjp-op-intro h2 { font-size: 1.6rem; }
}
/* ============================================================
   FACT BOX Ã¢â‚¬â€ custom Quote block style
   ============================================================ */
.sjp-page-content .wp-block-quote.is-style-fact-box,
.wp-block-quote.is-style-fact-box {
	background: var(--sjp-navy);
	border-left: 4px solid var(--sjp-gold);
	padding: 1.75rem 2rem;
	margin: 2.5rem 0;
	font-style: normal;
	font-family: var(--sjp-font-body);
	font-size: 0.95rem;
	color: rgba(255,255,255,0.85);
	line-height: 1.8;
}
.sjp-page-content .wp-block-quote.is-style-fact-box p,
.wp-block-quote.is-style-fact-box p {
	color: rgba(255,255,255,0.85);
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}
.sjp-page-content .wp-block-quote.is-style-fact-box p:last-child,
.wp-block-quote.is-style-fact-box p:last-child { margin-bottom: 0; }
.sjp-page-content .wp-block-quote.is-style-fact-box strong,
.wp-block-quote.is-style-fact-box strong { color: var(--sjp-gold-lt); }
.sjp-page-content .wp-block-quote.is-style-fact-box cite,
.wp-block-quote.is-style-fact-box cite {
	display: none; /* Citation not needed in fact box style */
}
/* ============================================================
   STANDARD PAGE TEMPLATE
   ============================================================ */

.sjp-page-header-tag {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	color: var(--sjp-gold-lt);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}
.sjp-page-header-tag::before {
	content: '';
	width: 1.5rem;
	height: 1px;
	background: var(--sjp-gold-lt);
}

/* Featured image Ã¢â‚¬â€ cover (photographs) */
.sjp-page-featured { width: 100%; overflow: hidden; position: relative; }
.sjp-page-featured-cover { max-height: 460px; }
.sjp-page-featured-cover img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	object-position: center 30%;
	display: block;
}

/* Featured image Ã¢â‚¬â€ contained (icons, artwork) */
.sjp-page-featured-contained {
	background: var(--sjp-navy);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 4rem;
	max-height: 520px;
}
.sjp-page-featured-contained img {
	max-height: 440px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

/* Caption */
.sjp-page-featured-caption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	background: linear-gradient(transparent, rgba(27,43,75,0.65));
	color: rgba(255,255,255,0.8);
	font-size: 0.94rem;
	font-style: italic;
	padding: 2rem 2rem 0.875rem;
	text-align: center;
}
.sjp-page-featured-contained .sjp-page-featured-caption {
	position: static;
	background: rgba(0,0,0,0.3);
	padding: 0.5rem 2rem;
}

/* Content wrapper */
.sjp-standard-page { padding-bottom: 0; }
.sjp-page-content-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0.5rem 0 5rem;
}
.sjp-page-content { line-height: 1.85; }

/* Typography */
.sjp-page-content p {
	color: var(--sjp-text-mid);
	margin-bottom: 1.4rem;
	/* Follows the Customiser's Base Font Size (Typography) */
	font-size: var(--sjp-font-size-base, 1.125rem);
}

/* Drop cap on the first paragraph of standard and Parish Story pages.
   The class is added by sjp_add_drop_cap() in functions.php. */
/* Contain the floated cap so a short paragraph can't let it overlap what follows */
.sjp-page-content p.sjp-drop-cap { display: flow-root; }
.sjp-page-content p.sjp-drop-cap::first-letter {
	float: left;
	font-family: var(--sjp-font-heading);
	font-size: 5.5em; /* spans three lines of body text */
	font-weight: 600;
	line-height: 0.74;
	color: var(--sjp-navy);
	margin: 0.06em 0.1em 0 0;
}
/* The cap above spans three lines, which leaves a gap under a shorter opening
   paragraph. sjp_drop_cap_fit_script() (functions.php) measures the paragraph
   at the current screen width and text size and picks the largest cap that
   leaves no gap: 3 lines (above), 2 lines (.sjp-dc-2), or none (.sjp-dc-off). */
.sjp-page-content p.sjp-drop-cap.sjp-dc-2::first-letter { font-size: 4.4em; }
.sjp-page-content p.sjp-drop-cap.sjp-dc-off::first-letter {
	float: none;
	font: inherit;
	line-height: inherit;
	color: inherit;
	margin: 0;
}
.sjp-page-content h2,
.sjp-page-content .wp-block-heading h2,
.sjp-page-content h2.wp-block-heading {
	font-family: var(--sjp-font-heading);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	color: var(--sjp-navy);
	margin: 2.75rem 0 0.875rem;
	line-height: 1.2;
}
.sjp-page-content h3,
.sjp-page-content .wp-block-heading h3,
.sjp-page-content h3.wp-block-heading {
	font-family: var(--sjp-font-heading);
	font-size: 1.2rem;
	color: var(--sjp-navy);
	margin: 2rem 0 0.6rem;
	line-height: 1.3;
}
.sjp-page-content h2:first-child,
.sjp-page-content h3:first-child { margin-top: 0; }

/* Blockquote Ã¢â‚¬â€ standard pull quote style */
.sjp-page-content blockquote,
.sjp-page-content .wp-block-quote:not(.is-style-fact-box) {
	border-left: 3px solid var(--sjp-gold);
	margin: 2.5rem 0;
	padding: 1.25rem 1.75rem;
	background: var(--sjp-off-white);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--sjp-navy);
	line-height: 1.7;
	font-family: var(--sjp-font-heading);
}
.sjp-page-content blockquote p,
.sjp-page-content .wp-block-quote:not(.is-style-fact-box) p {
	font-family: var(--sjp-font-heading);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--sjp-navy);
	margin-bottom: 0;
}
.sjp-page-content .wp-block-quote cite,
.sjp-page-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	color: var(--sjp-gold);
	font-style: normal;
	text-transform: uppercase;
}

/* Other content elements */
.sjp-page-content hr { border: none; border-top: 1px solid var(--sjp-mid-grey); margin: 3rem 0; }
.sjp-page-content ul,
.sjp-page-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; color: var(--sjp-text-mid); }
.sjp-page-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.sjp-page-content figure { margin: 2.5rem 0; }
.sjp-page-content figure img { width: 100%; height: auto; display: block; }
.sjp-page-content figcaption {
	font-size: 0.94rem;
	color: var(--sjp-text-soft);
	font-style: italic;
	text-align: center;
	padding: 0.5rem 0 0;
	border-top: 1px solid var(--sjp-mid-grey);
	margin-top: 0.4rem;
}
.sjp-page-content .alignleft { float: left; width: 42%; margin: 0.4rem 2rem 1.25rem 0; }
.sjp-page-content .alignright { float: right; width: 42%; margin: 0.4rem 0 1.25rem 2rem; }
.sjp-page-content .aligncenter { max-width: 560px; margin-left: auto; margin-right: auto; }
.sjp-page-content .alignwide { width: calc(100% + 8rem); margin-left: -4rem; margin-right: -4rem; max-width: none; }
.sjp-page-content::after { content: ''; display: table; clear: both; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ PAGE NAVIGATION FOOTER Ã¢â€â‚¬Ã¢â€â‚¬ */
.sjp-page-nav {
	background: var(--sjp-navy);
	border-top: 3px solid var(--sjp-gold);
	padding: 2rem 0;
}
.sjp-page-nav-inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}
.sjp-page-nav-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	color: var(--sjp-gold-lt);
	text-transform: uppercase;
	flex-shrink: 0;
}
.sjp-page-nav-links { display: flex; flex-wrap: wrap; }
.sjp-page-nav-link {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 400;
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	padding: 0.4rem 1.25rem;
	border-right: 1px solid rgba(255,255,255,0.12);
	transition: color 0.2s;
	white-space: nowrap;
}
.sjp-page-nav-link:first-child { padding-left: 0; }
.sjp-page-nav-link:last-child { border-right: none; }
.sjp-page-nav-link:hover { color: var(--sjp-gold-lt); }
.sjp-page-nav-link-current { color: var(--sjp-gold-lt); font-weight: 600; }

/* ============================================================
   CHILD SERIES NAVIGATION (Back + Previous/Next)
   ============================================================ */
.sjp-child-nav {
	background: var(--sjp-off-white);
	border-top: 1px solid var(--sjp-mid-grey);
	padding: 2.5rem 0;
}
.sjp-child-nav-back {
	display: table;
	margin: 0 auto 1.75rem;
	font-family: var(--sjp-font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sjp-navy);
	text-decoration: none;
	padding: 0.8rem 1.85rem;
	border: 1.5px solid var(--sjp-mid-grey);
	background: var(--sjp-white);
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sjp-child-nav-back:hover {
	border-color: var(--sjp-gold);
	color: var(--sjp-gold-accessible);
	background: var(--sjp-off-white);
}
.sjp-child-nav-row {
	display: flex;
	gap: 1.5rem;
	border-top: 1px solid var(--sjp-mid-grey);
	padding-top: 1.75rem;
}
.sjp-child-nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 46%;
	text-decoration: none;
	color: var(--sjp-navy);
	transition: color 0.2s;
}
.sjp-child-nav-link:hover { color: var(--sjp-gold-accessible); }
.sjp-child-nav-next { margin-left: auto; text-align: right; }
.sjp-child-nav-next .sjp-child-nav-text { align-items: flex-end; }
.sjp-child-nav-arrow { font-size: 1.3rem; line-height: 1; color: var(--sjp-gold); flex-shrink: 0; }
.sjp-child-nav-text { display: flex; flex-direction: column; font-family: var(--sjp-font-heading); }
.sjp-child-nav-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sjp-text-soft);
	margin-bottom: 0.2rem;
}

@media (max-width: 900px) {
	.sjp-page-content-wrap { padding: 0.5rem 0 4rem; }
	.sjp-page-featured-cover img { height: 320px; }
	.sjp-page-featured-contained { padding: 1.5rem 2rem; }
	.sjp-page-content .alignleft,
	.sjp-page-content .alignright { float: none; width: 100%; margin: 0 0 1.5rem; }
	.sjp-page-content .alignwide { width: 100%; margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
	.sjp-page-content-wrap { padding: 0.5rem 0 3rem; }
	.sjp-page-featured-cover img { height: 240px; }
	.sjp-page-featured-contained { padding: 1rem; }
	.sjp-page-nav-inner { gap: 1rem; }
	.sjp-page-nav-link { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
	.sjp-child-nav { padding: 2rem 0; }
	.sjp-child-nav-back { font-size: 0.8rem; padding: 0.7rem 1.4rem; }
	.sjp-child-nav-row { gap: 0.75rem; }
	.sjp-child-nav-link { max-width: 48%; gap: 0.5rem; }
	.sjp-child-nav-text { font-size: 0.92rem; line-height: 1.3; }
	.sjp-child-nav-label { font-size: 0.8rem; }
	.sjp-child-nav-arrow { font-size: 1.1rem; }
}
/* ============================================================
   PARISH NOTICES Ã¢â‚¬â€ card styles and archive
   ============================================================ */

/* Notice card Ã¢â‚¬â€ compact, no deep padding */
.sjp-notice-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}
.sjp-notice-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	flex-shrink: 0;
}
.sjp-notice-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.sjp-notice-card:hover .sjp-notice-thumb img { transform: scale(1.04); }

.sjp-notice-body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.sjp-notice-body h3 {
	font-size: 0.98rem;
	margin-bottom: 0.4rem;
	line-height: 1.3;
}
.sjp-notice-text {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	line-height: 1.65;
	flex: 1;
}
.sjp-notice-text p { margin-bottom: 0.4rem; }
.sjp-notice-text p:last-child { margin-bottom: 0; }
.sjp-notice-text a { color: var(--sjp-gold-accessible); text-decoration: underline; }

/* Notice type label colours */
.sjp-notice-type-notice               { background: #EDF2FA; color: var(--sjp-navy); }
.sjp-notice-type-reminder             { background: #FDF7ED; color: #7A5200; }
.sjp-notice-type-date-for-diary       { background: #EDF7ED; color: #1A5C1A; }
.sjp-notice-type-holy-day             { background: #F5EDF7; color: #5C1A5C; }
.sjp-notice-type-pilgrimage           { background: #FDF0F0; color: var(--sjp-red); }
.sjp-notice-type-sacraments           { background: #EDF2FA; color: var(--sjp-navy); }
.sjp-notice-type-fund-raising         { background: #FDF7ED; color: #7A5200; }
.sjp-notice-type-diocesan-news        { background: #EDF5F7; color: #1A4A5C; }
.sjp-notice-type-bereavement          { background: #F5F5F5; color: #444444; }
.sjp-notice-type-children-families    { background: #FFF3E0; color: #7A3D00; }
.sjp-notice-type-building-maintenance { background: #F0F0F0; color: #555555; }

/* Notice text in archive table */
.sjp-nl-notice-text {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	line-height: 1.65;
	margin-top: 0.4rem;
}
.sjp-nl-notice-text p { margin-bottom: 0.3rem; }
.sjp-nl-notice-text p:last-child { margin-bottom: 0; }
.sjp-nl-notice-text a { color: var(--sjp-gold-accessible); }
/* Ã¢â€â‚¬Ã¢â€â‚¬ Font Awesome quick link icons Ã¢â€â‚¬Ã¢â€â‚¬ */
.sjp-ql-fa-icon {
	font-size: 1.6rem;
	display: block;
	text-align: center;
	margin: 0 auto 0.65rem;
	color: var(--sjp-gold);
}
.btn-primary .sjp-ql-fa-icon { color: #fff; }
.btn-ghost .sjp-ql-fa-icon { color: var(--sjp-gold-lt); }
.sjp-quick-link:hover .sjp-ql-fa-icon { color: var(--sjp-navy); }
/* ============================================================
   LITURGICAL CALENDAR SIDEBAR CARD
   ============================================================ */
.sjp-litcal-card {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	overflow: hidden;
}
.sjp-litcal-photo {
	width: 100%;
	aspect-ratio: 3/4;
	overflow: hidden;
}
.sjp-litcal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}
.sjp-litcal-bar { height: 4px; width: 100%; }
.sjp-litcal-body { padding: 1.1rem 1.25rem 1.25rem; }
.sjp-litcal-eyebrow {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sjp-text-soft);
	margin-bottom: 0.25rem;
}
.sjp-litcal-date {
	font-size: 0.92rem;
	color: var(--sjp-text-soft);
	margin-bottom: 0.4rem;
}
.sjp-litcal-name {
	font-family: var(--sjp-font-heading);
	font-size: 1.1rem;
	color: var(--sjp-navy);
	line-height: 1.25;
	margin: 0 0 0.25rem;
}
.sjp-litcal-type {
	font-size: 0.92rem;
	color: var(--sjp-text-soft);
	margin-bottom: 0.875rem;
}
.sjp-litcal-links {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.sjp-litcal-link {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--sjp-gold-accessible);
	text-decoration: none;
}
.sjp-litcal-link:hover { color: var(--sjp-navy); }

/* ============================================================
   LATEST UPDATES BAND
   ============================================================ */
.sjp-updates-band {
    background: var(--sjp-off-white);
    border-top: 1px solid var(--sjp-mid-grey);
    border-bottom: 1px solid var(--sjp-mid-grey);
    padding: 0.65rem 0;
}
.sjp-updates-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.sjp-updates-label {
    font-family: var(--sjp-font-ui);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sjp-navy);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sjp-updates-label::after {
    content: '';
    display: block;
    width: 1px;
    height: 1rem;
    background: rgba(255,255,255,0.15);
}
.sjp-updates-items {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
    gap: 0;
}
.sjp-updates-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 1rem 0.15rem 0;
    margin-right: 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.sjp-updates-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.sjp-updates-tag {
    font-family: var(--sjp-font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    background: var(--sjp-mid-grey);
    color: var(--sjp-navy);
    white-space: nowrap;
    flex-shrink: 0;
}
/* Notice type overrides for updates band tag */
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-notice               { background: #EDF2FA; color: var(--sjp-navy); }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-reminder             { background: #FDF7ED; color: #7A5200; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-date-for-diary       { background: #EDF7ED; color: #1A5C1A; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-holy-day             { background: #F5EDF7; color: #5C1A5C; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-pilgrimage           { background: #FDF0F0; color: var(--sjp-red); }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-sacraments           { background: #EDF2FA; color: var(--sjp-navy); }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-fund-raising         { background: #FDF7ED; color: #7A5200; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-diocesan-news        { background: #EDF5F7; color: #1A4A5C; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-bereavement          { background: #F5F5F5; color: #444444; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-children-families    { background: #FFF3E0; color: #7A3D00; }
.sjp-updates-band .sjp-updates-tag.sjp-notice-type-building-maintenance { background: #F0F0F0; color: #555555; }
.sjp-updates-title {
    font-family: var(--sjp-font-heading);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--sjp-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sjp-updates-viewall {
    font-family: var(--sjp-font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sjp-navy);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
.sjp-updates-viewall:hover { color: var(--sjp-gold); }

/* Ticker states Ã¢â‚¬â€ mobile/tablet only */
.sjp-updates-item-hidden {
    display: none;
}
.sjp-updates-item-visible {
    display: flex;
    animation: sjp-fade-in 0.4s ease forwards;
}
.sjp-updates-item-out {
    animation: sjp-fade-out 0.4s ease forwards;
}
@keyframes sjp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes sjp-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@media (max-width: 900px) {
    .sjp-updates-inner { flex-wrap: nowrap; gap: 0.75rem; }
    .sjp-updates-items { flex-wrap: nowrap; flex: 1; min-width: 0; }
    .sjp-updates-label { font-size: 0.92rem; }
    .sjp-updates-label::after { display: none; }
    .sjp-updates-tag { display: none; }
    .sjp-updates-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
    .sjp-updates-label { font-size: 0.83rem; }
}



/* ============================================================
   CONTACT STRIP
   ============================================================ */
.sjp-contact-strip {
	background: var(--sjp-navy);
	padding: 2.5rem 0;
	border-top: 3px solid var(--sjp-gold);
}
.sjp-contact-strip-inner {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2rem;
	align-items: start;
}
.sjp-contact-strip-item {
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;
}
.sjp-contact-strip-item svg { color: var(--sjp-gold-lt); flex-shrink: 0; margin-top: 2px; }
.sjp-contact-strip-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--sjp-gold-lt);
	margin-bottom: 0.3rem;
}
.sjp-contact-strip-value {
	font-size: 0.98rem;
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	display: block;
	line-height: 1.6;
}
a.sjp-contact-strip-value:hover { color: var(--sjp-gold-lt); }
.sjp-contact-strip-sub {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	display: block;
	margin-top: 0.2rem;
}
.sjp-contact-strip-sub:hover { color: var(--sjp-gold-lt); }

@media (max-width: 900px) {
	.sjp-contact-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
	.sjp-contact-strip-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}
/* ============================================================
   NEW OR RETURNING PAGE
   ============================================================ */
.sjp-welcome-page { padding-bottom: 0; }

.sjp-welcome-intro {
	max-width: 640px;
	margin: 3.5rem auto 0;
	text-align: center;
	padding: 0 1.5rem;
}
.sjp-welcome-intro p {
	font-family: var(--sjp-font-heading);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--sjp-navy);
	line-height: 1.8;
}

.sjp-pathways {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding: 3rem 0 5rem;
}

.sjp-pathway {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	overflow: hidden;
}
.sjp-pathway-accent { height: 4px; }
.sjp-pathway-new .sjp-pathway-accent      { background: var(--sjp-gold); }
.sjp-pathway-returning .sjp-pathway-accent { background: var(--sjp-navy); }

.sjp-pathway-body {
	padding: 2.25rem 2.5rem 2.5rem;
}
.sjp-pathway-body h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.6rem);
	font-weight: 700;
	margin-bottom: 1.25rem;
	line-height: 1.2;
}
.sjp-pathway-body p {
	font-size: 0.95rem;
	color: var(--sjp-text-mid);
	line-height: 1.85;
	margin-bottom: 1rem;
}
.sjp-pathway-body p:last-of-type { margin-bottom: 2rem; }
.sjp-pathway-btn { display: inline-block; }
.sjp-pathway-footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--sjp-off-white);
    border: 1px solid var(--sjp-mid-grey);
    margin-bottom: 5rem;
}
.sjp-pathway-footer h3 {
    font-family: var(--sjp-font-heading);
    font-size: 1.3rem;
    color: var(--sjp-navy);
    margin-bottom: 0.75rem;
}
.sjp-pathway-footer p {
    font-size: 0.95rem;
    color: var(--sjp-text-mid);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 900px) {
	.sjp-pathways { grid-template-columns: 1fr; gap: 1.5rem; }
	.sjp-welcome-intro { margin-top: 2.5rem; }
	.sjp-pathway-body { padding: 1.75rem 2rem 2rem; }
}
@media (max-width: 600px) {
	.sjp-welcome-intro p { font-size: 1rem; }
	.sjp-pathway-body { padding: 1.5rem; }
	.sjp-pathways { padding: 2rem 0 3rem; }
}
/* ============================================================
   CONTACT PAGE
   ============================================================ */
.sjp-contact-page { padding-bottom: 0; }

.sjp-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: start;
	padding: 3.5rem 0 4rem;
}

.sjp-contact-h2 {
	font-family: var(--sjp-font-heading);
	font-size: 1.4rem;
	color: var(--sjp-navy);
	font-weight: 700;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--sjp-mid-grey);
}

.sjp-contact-info-block { margin-bottom: 2rem; }

.sjp-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	margin-bottom: 1rem;
	font-size: 1.06rem;
}
.sjp-contact-row svg { color: var(--sjp-gold); flex-shrink: 0; margin-top: 3px; width: 15px; height: 15px; }
.sjp-contact-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.86rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sjp-text-soft);
	display: block;
	margin-bottom: 2px;
}
.sjp-contact-value { color: var(--sjp-text-mid); line-height: 1.6; display: block; }
.sjp-contact-value a { color: var(--sjp-gold-accessible); text-decoration: none; }
.sjp-contact-value a:hover { text-decoration: underline; }

.sjp-contact-person {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-left: 3px solid var(--sjp-gold);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}
.sjp-contact-person-role {
	font-family: var(--sjp-font-ui);
	font-size: 0.86rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin-bottom: 4px;
}
.sjp-contact-person-name {
	font-family: var(--sjp-font-heading);
	font-size: 1.15rem;
	color: var(--sjp-navy);
	font-weight: 700;
	margin-bottom: 6px;
}
.sjp-contact-person-note {
	font-size: 1.04rem;
	color: var(--sjp-text-soft);
	line-height: 1.65;
}

.sjp-contact-safeguarding {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-left: 3px solid var(--sjp-navy);
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}
.sjp-contact-sg-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.86rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--sjp-navy);
	margin-bottom: 4px;
}
.sjp-contact-sg-names {
	font-size: 1.06rem;
	color: var(--sjp-navy);
	font-weight: 600;
	margin-bottom: 4px;
}
.sjp-contact-sg-email {
	font-size: 1.04rem;
	color: var(--sjp-gold-accessible);
	text-decoration: none;
}
.sjp-contact-sg-email:hover { text-decoration: underline; }

.sjp-contact-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sjp-contact-social-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0.5rem 1rem;
	border: 1px solid var(--sjp-mid-grey);
	font-size: 1.04rem;
	font-weight: 600;
	color: var(--sjp-navy);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.sjp-contact-social-link:hover { border-color: var(--sjp-gold); color: var(--sjp-gold-accessible); }

.sjp-contact-map {
	width: 100%;
	aspect-ratio: 4/3;
	border: 1px solid var(--sjp-mid-grey);
	margin-bottom: 1rem;
}
.sjp-contact-map-iframe { width: 100%; height: 100%; border: none; display: block; }
.sjp-contact-map { background-size: cover; background-position: center; background-color: var(--sjp-light-grey); }
.sjp-map-consent {
	min-height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem;
	text-align: center;
}
.sjp-map-consent-card { background: rgba(255,255,255,0.95); width: 100%; max-width: 380px; box-sizing: border-box; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.sjp-map-consent p { margin: 0; }
.sjp-map-consent-address { width: 100%; }
.sjp-map-consent-address { font-size: 1.05rem; color: var(--sjp-navy); line-height: 1.6; }
.sjp-map-consent-note { font-size: 0.95rem; color: var(--sjp-text-mid); line-height: 1.6; }
.sjp-map-consent-note a { color: var(--sjp-gold-accessible); text-decoration: underline; }
.btn-outline-navy { background: transparent; color: var(--sjp-navy); border: 2px solid var(--sjp-navy); }
.btn-outline-navy:hover { background: var(--sjp-navy); color: #fff; }
.sjp-contact-form-actions { margin-top: 1.25rem !important; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; max-width: none !important; }
.sjp-contact-map-placeholder {
	width: 100%;
	aspect-ratio: 4/3;
	background: var(--sjp-light-grey);
	border: 1px solid var(--sjp-mid-grey);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.sjp-contact-getting-here {
	font-size: 1.04rem;
	color: var(--sjp-text-soft);
	line-height: 1.65;
	margin-bottom: 2rem;
}
.sjp-contact-getting-here strong { color: var(--sjp-navy); }

.sjp-contact-form-placeholder {
	background: var(--sjp-off-white);
	border: 2px dashed var(--sjp-mid-grey);
	padding: 2.5rem;
	text-align: center;
}
.sjp-contact-form-placeholder h3 {
	font-family: var(--sjp-font-heading);
	font-size: 1.3rem;
	color: var(--sjp-navy);
	margin: 0.5rem 0 0.75rem;
}
.sjp-contact-form-placeholder p {
	font-size: 1.06rem;
	color: var(--sjp-text-soft);
	line-height: 1.7;
	max-width: 400px;
	margin: 0 auto;
}
.sjp-contact-form-placeholder .sjp-form-privacy-notice {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sjp-mid-grey);
}
.sjp-form-privacy-notice,
.sjp-contact-form-placeholder .sjp-form-privacy-notice {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--sjp-text-mid);
}
.sjp-form-privacy-notice a {
	color: var(--sjp-gold-accessible);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Mass times summary band */
.sjp-contact-mass-band {
	background: var(--sjp-navy);
	padding: 1.25rem 0;
	border-top: 3px solid var(--sjp-gold);
}
.sjp-contact-mass-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.sjp-contact-mass-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.86rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sjp-gold-lt);
	white-space: nowrap;
	flex-shrink: 0;
}
.sjp-contact-mass-times {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	flex: 1;
	font-size: 1.04rem;
	color: rgba(255,255,255,0.7);
}
.sjp-contact-mass-times strong { color: #fff; }
.sjp-contact-mass-link {
	font-family: var(--sjp-font-ui);
	font-size: 0.86rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sjp-gold-lt);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}
.sjp-contact-mass-link:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
	.sjp-contact-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 3rem; }
	.sjp-contact-mass-times { gap: 0.75rem; }
}
@media (max-width: 600px) {
	.sjp-contact-mass-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
	.sjp-contact-mass-times { flex-direction: column; gap: 0.25rem; }
}

/* ============================================================
   PASTORAL PAGE TEMPLATE
   Used by page-pastoral.php for invitation and return-to-faith pages
   ============================================================ */
.sjp-pastoral-page {
	background:
		linear-gradient(180deg, var(--sjp-white) 0%, var(--sjp-white) 55%, var(--sjp-off-white) 100%);
	padding-bottom: 0;
}

.sjp-pastoral-wrap {
	padding: 3.5rem 0 5rem;
}

.sjp-pastoral-layout {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 3rem;
	align-items: start;
}

.sjp-pastoral-main {
	min-width: 0;
}

.sjp-pastoral-content {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 4px solid var(--sjp-gold);
	box-shadow: var(--sjp-shadow);
	padding: 2.4rem 2.6rem;
}

.sjp-pastoral-content > p:first-of-type {
	font-size: 1.16rem;
	line-height: 1.75;
	color: var(--sjp-navy);
	background: var(--sjp-off-white);
	border-left: 4px solid var(--sjp-gold);
	padding: 1.35rem 1.55rem;
	margin: 0 0 2rem;
}

.sjp-pastoral-content h2,
.sjp-pastoral-content .wp-block-heading h2,
.sjp-pastoral-content h2.wp-block-heading {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	margin-top: 2.65rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--sjp-mid-grey);
}

.sjp-pastoral-content h2:first-child,
.sjp-pastoral-content h3:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.sjp-pastoral-content h3,
.sjp-pastoral-content .wp-block-heading h3,
.sjp-pastoral-content h3.wp-block-heading {
	font-size: 1.18rem;
	margin-top: 1.75rem;
}

.sjp-pastoral-content blockquote,
.sjp-pastoral-content .wp-block-quote:not(.is-style-fact-box) {
	background: var(--sjp-navy);
	border-left: none;
	border-top: 3px solid var(--sjp-gold);
	padding: 1.55rem 1.75rem;
	margin: 2.35rem 0;
	font-style: normal;
}

.sjp-pastoral-content blockquote p,
.sjp-pastoral-content .wp-block-quote:not(.is-style-fact-box) p {
	font-family: var(--sjp-font-body);
	font-style: normal;
	font-size: 1rem;
	line-height: 1.75;
	color: rgba(255,255,255,0.88);
}

.sjp-pastoral-content blockquote strong,
.sjp-pastoral-content .wp-block-quote:not(.is-style-fact-box) strong {
	color: var(--sjp-gold-lt);
}

.sjp-pastoral-content .wp-block-buttons,
.sjp-pastoral-content .sjp-pastoral-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.sjp-pastoral-content .wp-block-button__link {
	font-size: 0.94rem;
}

.sjp-pastoral-sidebar {
	position: sticky;
	top: 112px;
}

.sjp-pastoral-help-card,
.sjp-pastoral-note-card {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	padding: 1.5rem;
}

.sjp-pastoral-help-card {
	border-top: 4px solid var(--sjp-gold);
	box-shadow: var(--sjp-shadow);
}

.sjp-pastoral-help-card h2 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}
.sjp-pastoral-note-card h2 {
	font-family: var(--sjp-font-heading);
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--sjp-navy);
	margin: 0 0 0.75rem;
}

.sjp-pastoral-help-card p,
.sjp-pastoral-note-card p {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--sjp-text-mid);
	margin-bottom: 1rem;
}

.sjp-pastoral-note-card {
	margin-top: 1rem;
	border-left: 3px solid var(--sjp-navy);
}

.sjp-pastoral-note-card p:last-child,
.sjp-pastoral-help-card p:last-child {
	margin-bottom: 0;
}

.sjp-pastoral-note-card strong {
	color: var(--sjp-navy);
}

.sjp-pastoral-help-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 1.25rem;
}

.sjp-pastoral-help-actions .btn {
	width: 100%;
	text-align: center;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Optional editor classes for richer pastoral pages */
.sjp-pastoral-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 2.25rem 0 2.75rem;
}

.sjp-pastoral-step {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 1.25rem;
}

.sjp-pastoral-step-label {
	display: block;
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin-bottom: 0.45rem;
}

.sjp-pastoral-step h2,
.sjp-pastoral-step h3 {
	font-size: 1.08rem;
	margin: 0 0 0.5rem;
	padding: 0;
	border: none;
}

.sjp-pastoral-step p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--sjp-text-soft);
	margin-bottom: 0;
}

.sjp-pastoral-emphasis {
	font-family: var(--sjp-font-heading);
	font-size: clamp(1.9rem, 5vw, 3rem) !important;
	line-height: 1.1 !important;
	color: var(--sjp-navy) !important;
	margin: 1rem 0 1.35rem !important;
}

@media (max-width: 900px) {
	.sjp-pastoral-wrap {
		padding: 2.75rem 0 4rem;
	}

	.sjp-pastoral-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
		max-width: 760px;
	}

	.sjp-pastoral-sidebar {
		position: static;
	}

	.sjp-pastoral-help-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.sjp-pastoral-help-actions .btn {
		width: auto;
	}
}

@media (max-width: 700px) {
	.sjp-pastoral-wrap {
		padding: 2rem 0 3rem;
	}

	.sjp-pastoral-content {
		padding: 1.5rem 1.25rem;
	}

	.sjp-pastoral-content > p:first-of-type {
		font-size: 1.05rem;
		padding: 1.15rem 1.2rem;
	}

	.sjp-pastoral-steps {
		grid-template-columns: 1fr;
		margin: 2rem 0 2.25rem;
	}

	.sjp-pastoral-help-card,
	.sjp-pastoral-note-card {
		padding: 1.3rem 1.2rem;
	}

	.sjp-pastoral-help-actions {
		flex-direction: column;
	}

	.sjp-pastoral-help-actions .btn,
	.sjp-pastoral-content .wp-block-button,
	.sjp-pastoral-content .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* ============================================================
   PARISH STORY PAGE TEMPLATE
   Used for parish identity, history and patron pages
   ============================================================ */

.sjp-story-page {
	padding-bottom: 0;
}

.sjp-story-wrap {
	padding: 3.25rem 0 5rem;
}

.sjp-story-layout {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
	gap: 3rem;
	align-items: start;
}

.sjp-story-layout-no-image {
	max-width: 880px;
	grid-template-columns: minmax(0, 1fr);
}

.sjp-story-main {
	min-width: 0;
}

.sjp-story-content {
	line-height: 1.85;
}

.sjp-story-content > p:first-child {
	font-size: 1.12rem;
	line-height: 1.75;
	color: var(--sjp-navy);
}

.sjp-story-aside {
	position: sticky;
	top: calc(var(--sjp-header-h, 143px) + 1rem);
}

.sjp-story-featured-card {
	background: var(--sjp-navy);
	border-top: 3px solid var(--sjp-gold);
	box-shadow: var(--sjp-shadow);
}

.sjp-story-featured-card img {
	width: 100%;
	height: auto;
	display: block;
}

.sjp-story-featured-caption {
	padding: 0.75rem 1rem;
	font-size: 0.94rem;
	line-height: 1.55;
	color: rgba(255,255,255,0.7);
	font-style: italic;
}

/* Optional content blocks for pages using the Parish Story template */
.sjp-story-intro {
	position: relative;
	background:
		linear-gradient(135deg, rgba(27,43,75,0.045), rgba(184,137,42,0.08)),
		var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 4px solid var(--sjp-gold);
	padding: 2.25rem 2.4rem;
	margin: 0 0 3rem;
	box-shadow: 0 10px 30px rgba(27,43,75,0.08);
}

.sjp-story-intro::before {
	content: 'Our parish';
	display: block;
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin-bottom: 0.85rem;
}

.sjp-story-intro p {
	font-size: 1.08rem;
	line-height: 1.75;
	color: var(--sjp-text-mid);
	margin-bottom: 1rem;
	max-width: 42rem;
}

.sjp-story-intro p:first-child {
	font-family: var(--sjp-font-heading);
	font-size: clamp(1.35rem, 2.3vw, 1.75rem);
	line-height: 1.35;
	color: var(--sjp-navy);
	margin-bottom: 1rem;
}

.sjp-story-intro p:last-child {
	margin-bottom: 0;
}

.sjp-story-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 2.5rem 0;
}

.sjp-story-card {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 1.25rem;
}

.sjp-story-card h2,
.sjp-story-card h3 {
	font-size: 1.12rem;
	margin: 0 0 0.5rem;
}

.sjp-story-card p {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--sjp-text-soft);
	margin-bottom: 0;
}

.sjp-story-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--sjp-mid-grey);
	border: 1px solid var(--sjp-mid-grey);
	margin: 2.5rem 0;
}

.sjp-story-fact {
	background: var(--sjp-off-white);
	padding: 1rem 1.1rem;
}

.sjp-story-fact-label {
	display: block;
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin-bottom: 0.35rem;
}

.sjp-story-fact-value {
	display: block;
	font-family: var(--sjp-font-heading);
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--sjp-navy);
}

.sjp-story-timeline {
	position: relative;
	margin: 2.75rem 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--sjp-gold);
}

.sjp-story-timeline-item {
	position: relative;
	padding: 0 0 1.5rem 1.25rem;
}

.sjp-story-timeline-item:last-child {
	padding-bottom: 0;
}

.sjp-story-timeline-item::before {
	content: '';
	position: absolute;
	left: -1.85rem;
	top: 0.35rem;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--sjp-navy);
	border: 2px solid var(--sjp-gold);
}

.sjp-story-timeline-date {
	display: block;
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin-bottom: 0.25rem;
}

.sjp-story-timeline-item h2,
.sjp-story-timeline-item h3 {
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
}

.sjp-story-timeline-item p {
	font-size: 0.95rem;
	line-height: 1.65;
	margin-bottom: 0;
}

.sjp-story-feature-box {
	background: var(--sjp-navy);
	border-top: 3px solid var(--sjp-gold);
	padding: 1.75rem 2rem;
	margin: 2.75rem 0;
	color: #fff;
}

.sjp-story-feature-box h1,
.sjp-story-feature-box h2,
.sjp-story-feature-box h3,
.sjp-story-feature-box h4,
.sjp-story-feature-box h5,
.sjp-story-feature-box h6,
.sjp-story-feature-box .wp-block-heading {
	color: #fff !important;
	margin-top: 0;
}

.sjp-story-feature-box p {
	color: rgba(255,255,255,0.82);
}

.sjp-story-feature-box a:not(.btn):not(.wp-block-button__link) {
	color: var(--sjp-gold-lt) !important;
	text-decoration-color: rgba(212, 168, 75, 0.75) !important;
}

.sjp-story-feature-box a:not(.btn):not(.wp-block-button__link):hover {
	color: #fff !important;
	text-decoration-color: #fff !important;
}

.sjp-story-feature-box p:last-child {
	margin-bottom: 0;
}

.sjp-story-closing {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 2rem;
	margin: 3rem 0 0;
}

.sjp-story-closing h2,
.sjp-story-closing h3 {
	margin-top: 0;
}

.sjp-story-closing p:last-child {
	margin-bottom: 0;
}

.sjp-story-parent-link {
	margin-top: 1.75rem;
}

@media (max-width: 900px) {
	.sjp-story-layout,
	.sjp-story-layout-has-image {
		grid-template-columns: 1fr;
		max-width: 820px;
		gap: 2rem;
	}

	.sjp-story-aside {
		position: static;
		max-width: 420px;
	}

	.sjp-story-card-grid,
	.sjp-story-facts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.sjp-story-wrap {
		padding: 2.5rem 0 3.5rem;
	}

	.sjp-story-intro,
	.sjp-story-feature-box,
	.sjp-story-closing {
		padding: 1.45rem 1.25rem;
	}

	.sjp-story-intro p:first-child {
		font-size: 1.32rem;
	}

	.sjp-story-card {
		padding: 1.15rem;
	}
}

/* ============================================================
   SACRAMENT PAGE TEMPLATE
   ============================================================ */
.sjp-sacrament-page {
	padding: 0;
}

/* Hide the sacrament eyebrow if an older template still outputs it. */
.sjp-sacrament-header .sjp-page-header-tag,
.sjp-sacrament-kicker,
.sjp-sacrament-intro-label {
	display: none !important;
}

.sjp-sacrament-wrap {
	background: var(--sjp-white);
	padding: 3.25rem 0 4.5rem;
}

/* Main layout: body copy on the left, sidebar on the right. */
.sjp-sacrament-layout,
.sjp-sacrament-layout.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
	gap: 3rem;
	align-items: start;
	justify-content: center;
}

.sjp-sacrament-layout.no-sidebar {
	display: block;
}

.sjp-sacrament-layout.no-sidebar .sjp-sacrament-main {
	max-width: 760px;
	margin: 0 auto;
}

.sjp-sacrament-main {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	max-width: 760px;
}

.sjp-sacrament-sidebar {
	grid-column: 2;
	grid-row: 1;
	position: sticky;
	top: calc(var(--sjp-header-h, 143px) + 1rem);
	min-width: 0;
}

/* If an older template still places the intro above the grid,
   keep it aligned to the body-copy column rather than full width. */
.sjp-sacrament-wrap > .container > .sjp-sacrament-intro-card {
	width: min(760px, 100%);
	margin-left: max(0px, calc((100% - 1108px) / 2));
	margin-right: auto;
}

.sjp-sacrament-intro-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 2rem;
	margin-bottom: 2rem;
}

.sjp-sacrament-intro-icon {
	width: 4.25rem;
	height: 4.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sjp-white);
	border: 1px solid rgba(184,137,42,0.35);
	color: var(--sjp-gold-accessible);
	flex-shrink: 0;
}

.sjp-sacrament-intro-icon svg {
	width: 2rem;
	height: 2rem;
	display: block;
}

.sjp-sacrament-intro-icon .fa,
.sjp-sacrament-intro-icon .fas,
.sjp-sacrament-intro-icon span {
	font-size: 1.75rem;
	line-height: 1;
}

.sjp-sacrament-intro-copy h2 {
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	margin-bottom: 0.65rem;
}

.sjp-sacrament-intro-text {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--sjp-text-mid);
	max-width: 760px;
}

.sjp-sacrament-intro-text p {
	margin: 0 0 0.75rem;
}

/* Info box for use inside page content (block class "sjp-info-box"), matching the intro card */
.sjp-info-box.wp-block-group {
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 1.6rem 2rem;
	margin: 0 0 2.5rem;
	box-shadow: none;
}
.sjp-info-box.wp-block-group > * { max-width: none; }
.sjp-info-box h2,
.sjp-info-box h3 {
	font-size: clamp(1.2rem, 1.8vw, 1.45rem);
	margin: 0 0 0.6rem;
}
.sjp-info-box p {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--sjp-text-mid);
	margin: 0 0 0.75rem;
}
.sjp-info-box p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.sjp-info-box.wp-block-group { padding: 1.25rem 1.4rem; }
}

.sjp-sacrament-intro-text p:last-child {
	margin-bottom: 0;
}

.sjp-sacrament-content {
	max-width: 760px;
}

.sjp-sacrament-content h2 {
	scroll-margin-top: calc(var(--sjp-header-h, 143px) + 1rem);
}

.sjp-sacrament-side-card {
	background: var(--sjp-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-navy);
	padding: 1.35rem;
	margin-bottom: 1.25rem;
}

.sjp-sacrament-side-label {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin: 0 0 0.85rem;
}

/* A First Step card. Supports both current and earlier class names. */
.sjp-sacrament-step,
.sjp-sacrament-step-card {
	background: var(--sjp-off-white);
	border-top-color: var(--sjp-gold);
}

.sjp-sacrament-step h2,
.sjp-sacrament-step-card h2 {
	font-size: 1.1rem;
	line-height: 1.25;
	margin: 0 0 0.75rem;
	color: var(--sjp-navy);
}

.sjp-sacrament-step-text {
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--sjp-text-mid);
	margin-bottom: 1rem;
}

.sjp-sacrament-step-text p {
	margin: 0 0 0.75rem;
}

.sjp-sacrament-step-text p:last-child {
	margin-bottom: 0;
}

.sjp-sacrament-step-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 0.9rem;
}

.sjp-sacrament-step-actions .btn,
.sjp-sacrament-step-btn {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 0;
}

.sjp-sacrament-step-secondary:hover {
	text-decoration: none;
}

.sjp-sacrament-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sjp-sacrament-toc li {
	border-top: 1px solid var(--sjp-light-grey);
	margin: 0;
}

.sjp-sacrament-toc li:first-child {
	border-top: none;
}

.sjp-sacrament-toc a {
	display: block;
	padding: 0.55rem 0;
	font-size: 0.98rem;
	line-height: 1.35;
	color: var(--sjp-text-mid);
	text-decoration: none;
}

.sjp-sacrament-toc a:hover {
	color: var(--sjp-gold-accessible);
}

@media (max-width: 900px) {

	.sjp-sacrament-toc {
		display: none;
	}
	.sjp-sacrament-wrap {
		padding: 2.5rem 0 3.5rem;
	}

	.sjp-sacrament-layout,
	.sjp-sacrament-layout.has-sidebar {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.sjp-sacrament-main {
		order: 1;
		max-width: none;
		width: 100%;
	}

	.sjp-sacrament-sidebar {
		position: static;
		width: 100%;
		order: 2;
	}

	.sjp-sacrament-content {
		max-width: none;
	}

	.sjp-sacrament-wrap > .container > .sjp-sacrament-intro-card {
		margin-left: 0;
	}
}

@media (max-width: 600px) {
	.sjp-sacrament-intro-card {
		grid-template-columns: 1fr;
		gap: 1.1rem;
		padding: 1.4rem;
		margin-bottom: 2rem;
	}

	.sjp-sacrament-intro-icon {
		width: 3.5rem;
		height: 3.5rem;
	}

	.sjp-sacrament-intro-icon svg {
		width: 1.65rem;
		height: 1.65rem;
	}
}
/* ============================================================
   THE EVENTS CALENDAR — SINGLE EVENT PAGES
   ============================================================ */

/* Keep event pages clean and full-width. Avoid ugly blog/plugin sidebars. */
.single-tribe_events .site-main,
.single-tribe_events main.site-main {
	background: var(--sjp-white);
}

.single-tribe_events .sjp-page-layout,
.single-tribe_events .content-area,
.single-tribe_events .site-main .container,
.single-tribe_events .tribe-events-pg-template {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.single-tribe_events .sjp-page-layout {
	display: block;
}

.single-tribe_events .widget-area,
.single-tribe_events .sidebar,
.single-tribe_events #secondary {
	display: none !important;
}

/* Main event shell */
.single-tribe_events .tribe-events-single,
.single-tribe_events .tribe_events {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
	color: var(--sjp-text);
	font-family: var(--sjp-font-body);
}

/* Back link */
.single-tribe_events .tribe-events-back {
	margin: 0 0 1.5rem;
}

.single-tribe_events .tribe-events-back a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--sjp-navy);
	font-size: 0.98rem;
	font-weight: 700;
	text-decoration: none;
}

.single-tribe_events .tribe-events-back a:hover {
	color: var(--sjp-gold-accessible);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

/* Title */
.single-tribe_events .tribe-events-single-event-title {
	font-family: var(--sjp-font-heading);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	color: var(--sjp-navy);
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--sjp-gold);
}

/* Date/time panel */
.single-tribe_events .tribe-events-schedule {
	background: var(--sjp-navy);
	color: var(--sjp-white);
	border-left: 5px solid var(--sjp-gold);
	padding: 1.15rem 1.35rem;
	margin: 0 0 2rem;
	box-shadow: none;
	display: block;
}

.single-tribe_events .tribe-events-schedule h2,
.single-tribe_events .tribe-events-schedule .tribe-events-cost {
	font-family: var(--sjp-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--sjp-white);
	margin: 0;
}

/* Event content */
.single-tribe_events .tribe-events-single-event-description,
.single-tribe_events .tribe-events-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--sjp-text);
	margin: 2rem 0;
}

.single-tribe_events .tribe-events-single-event-description p,
.single-tribe_events .tribe-events-content p {
	margin-bottom: 1.25rem;
}

/* Content links: navy on white, not gold on white */
.single-tribe_events .tribe-events-content a,
.single-tribe_events .tribe-events-single-event-description a {
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: rgba(184, 137, 42, 0.55);
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.single-tribe_events .tribe-events-content a:hover,
.single-tribe_events .tribe-events-single-event-description a:hover {
	color: var(--sjp-gold-accessible);
	text-decoration-color: var(--sjp-gold-accessible);
}

/* Details and venue: tidy cards, not sidebar-looking blocks */
.single-tribe_events .tribe-events-event-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	width: 100%;
	margin: 2.5rem 0 2rem;
	padding: 0;
	border: none;
	background: transparent;
}

.single-tribe_events .tribe-events-event-meta::before,
.single-tribe_events .tribe-events-event-meta::after {
	display: none;
}

.single-tribe_events .tribe-events-meta-group {
	width: auto;
	float: none;
	background: var(--sjp-off-white);
	border: 1px solid var(--sjp-mid-grey);
	border-top: 3px solid var(--sjp-gold);
	padding: 1.25rem 1.35rem;
	margin: 0;
}

.single-tribe_events .tribe-events-meta-group .tribe-events-single-section-title,
.single-tribe_events .tribe-events-meta-group h2,
.single-tribe_events .tribe-events-meta-group h3 {
	font-family: var(--sjp-font-heading);
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--sjp-navy);
	margin: 0 0 0.75rem;
}

.single-tribe_events .tribe-events-meta-group dl,
.single-tribe_events .tribe-events-meta-group ul,
.single-tribe_events .tribe-events-meta-group ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-tribe_events .tribe-events-meta-group dt {
	font-family: var(--sjp-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sjp-gold-accessible);
	margin: 0.8rem 0 0.1rem;
}

.single-tribe_events .tribe-events-meta-group dt:first-child {
	margin-top: 0;
}

.single-tribe_events .tribe-events-meta-group dd,
.single-tribe_events .tribe-events-meta-group li {
	margin: 0 0 0.55rem;
	color: var(--sjp-text-mid);
	font-size: 0.95rem;
	line-height: 1.6;
}

.single-tribe_events .tribe-events-meta-group a {
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: rgba(184, 137, 42, 0.55);
	text-underline-offset: 0.16em;
}

.single-tribe_events .tribe-events-meta-group a:hover {
	color: var(--sjp-gold-accessible);
	text-decoration-color: var(--sjp-gold-accessible);
}

/* Add-to-calendar area */
.single-tribe_events .tribe-events-cal-links,
.single-tribe_events .tribe-events-c-subscribe-dropdown__container {
	margin: 2rem 0;
}

.single-tribe_events .tribe-events-cal-links a,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button,
.single-tribe_events .tribe-events-c-subscribe-dropdown__list-item a {
	font-family: var(--sjp-font-body);
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--sjp-navy);
	border-color: var(--sjp-mid-grey);
}

.single-tribe_events .tribe-events-cal-links a:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__list-item a:hover {
	color: var(--sjp-gold-accessible);
	border-color: var(--sjp-gold);
}

/* Previous / next event navigation */
.single-tribe_events .tribe-events-sub-nav,
.single-tribe_events .tribe-events-nav-pagination ul {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2.5rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--sjp-mid-grey);
	list-style: none;
}

.single-tribe_events .tribe-events-sub-nav li,
.single-tribe_events .tribe-events-nav-pagination li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.single-tribe_events .tribe-events-sub-nav a,
.single-tribe_events .tribe-events-nav-pagination a {
	display: inline-flex;
	align-items: center;
	color: var(--sjp-navy);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.single-tribe_events .tribe-events-sub-nav a:hover,
.single-tribe_events .tribe-events-nav-pagination a:hover {
	color: var(--sjp-gold-accessible);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

/* ============================================================
   HOME PAGE — READABLE LINKS ON WHITE BACKGROUNDS
   ============================================================ */

/* Avoid gold-on-white for normal homepage links. Leave navy/dark sections alone. */
.home .sjp-welcome a:not(.btn):not(.wp-block-button__link),
.home .sjp-arrange a:not(.btn):not(.wp-block-button__link),
.home .sjp-parish-dashboard a:not(.btn):not(.wp-block-button__link) {
	color: var(--sjp-navy);
}

.home .sjp-welcome a:not(.btn):not(.wp-block-button__link):hover,
.home .sjp-arrange a:not(.btn):not(.wp-block-button__link):hover,
.home .sjp-parish-dashboard a:not(.btn):not(.wp-block-button__link):hover {
	color: var(--sjp-gold-accessible);
}

/* Dashboard header links such as All notices / Archive / All events */
.home .sjp-dash-viewall {
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: rgba(184, 137, 42, 0.55);
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.home .sjp-dash-viewall:hover {
	color: var(--sjp-gold-accessible);
	text-decoration-color: var(--sjp-gold-accessible);
}

/* Notice-specific links on the front page */
.home .sjp-dash-notice-title a,
.home .sjp-dash-notice-link {
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: rgba(184, 137, 42, 0.55);
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.home .sjp-dash-notice-title a:hover,
.home .sjp-dash-notice-link:hover {
	color: var(--sjp-gold-accessible);
	text-decoration-color: var(--sjp-gold-accessible);
}

/* Keep card links readable without making the whole card look underlined */
.home .sjp-welcome-card,
.home .sjp-arrange-card {
	text-decoration: none;
	color: inherit;
}

.home .sjp-welcome-card:hover,
.home .sjp-arrange-card:hover {
	color: inherit;
}

/* Responsive event pages */
@media (max-width: 700px) {
	.single-tribe_events .tribe-events-single,
	.single-tribe_events .tribe_events {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.single-tribe_events .tribe-events-event-meta {
		grid-template-columns: 1fr;
	}

	.single-tribe_events .tribe-events-sub-nav,
	.single-tribe_events .tribe-events-nav-pagination ul {
		display: block;
	}

	.single-tribe_events .tribe-events-sub-nav li,
	.single-tribe_events .tribe-events-nav-pagination li {
		margin-bottom: 0.75rem;
	}

	.single-tribe_events .tribe-events-schedule {
		padding: 1rem;
	}
}
/* ============================================================
   PARISH NOTICES — SINGLE NOTICE PAGES
   ============================================================ */

/* Remove default blog/sidebar treatment from individual parish notices */
.single-sjp_notice .widget-area,
.single-sjp_notice .sidebar,
.single-sjp_notice #secondary {
	display: none !important;
}

/* Make single notices read as clean parish content pages */
.single-sjp_notice .sjp-page-layout {
	display: block;
}

.single-sjp_notice .content-area,
.single-sjp_notice .site-main .container {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.single-sjp_notice .site-main {
	background: var(--sjp-white);
}

/* Clean notice article layout */
.single-sjp_notice article,
.single-sjp_notice .type-sjp_notice {
	max-width: 760px;
	margin: 0 auto;
}

.single-sjp_notice .entry-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--sjp-gold);
}

.single-sjp_notice .entry-title {
	font-family: var(--sjp-font-heading);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	color: var(--sjp-navy);
	margin-bottom: 0.75rem;
}

/* Soften the date/byline */
.single-sjp_notice .entry-meta {
	font-size: 0.98rem;
	color: var(--sjp-text-soft);
	margin-bottom: 1.5rem;
}

/* Body copy */
.single-sjp_notice .entry-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--sjp-text);
}

.single-sjp_notice .entry-content p {
	margin-bottom: 1.25rem;
}

/* Navy links on white, not gold */
.single-sjp_notice .entry-content a:not(.btn):not(.wp-block-button__link) {
	color: var(--sjp-navy);
	text-decoration: underline;
	text-decoration-color: rgba(184, 137, 42, 0.55);
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.single-sjp_notice .entry-content a:not(.btn):not(.wp-block-button__link):hover {
	color: var(--sjp-gold-accessible);
	text-decoration-color: var(--sjp-gold-accessible);
}

/* Previous / next notice navigation */
.single-sjp_notice .post-navigation {
	max-width: 760px;
	margin: 2.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sjp-mid-grey);
}

/* Mobile */
@media (max-width: 700px) {
	.single-sjp_notice .content-area,
	.single-sjp_notice .site-main .container {
		max-width: none;
	}

	.single-sjp_notice article,
	.single-sjp_notice .type-sjp_notice {
		max-width: none;
	}

	.single-sjp_notice .entry-title {
		font-size: clamp(1.7rem, 8vw, 2.3rem);
	}
}


/* ============================================================
   ACCESSIBILITY: keyboard focus
   A two-tone ring (light gold inside, navy outside) shows clearly
   on both light and navy backgrounds. Skip-link targets
   (tabindex="-1") don't show a ring when focused by script.
   ============================================================ */
:focus-visible {
	outline: 3px solid var(--sjp-gold-lt);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--sjp-navy);
}
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* ── TEXT SIZE CONTROL (top banner) ── */
.sjp-top-banner { padding: 0.6rem 0; }
.sjp-textsize { display: flex; align-items: center; gap: 0.35rem; }
.sjp-textsize-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-right: 0.25rem; color: rgba(255,255,255,0.92); }
.sjp-textsize-btn {
	min-width: 2.25rem;
	min-height: 2rem;
	padding: 0.1rem 0.5rem;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
	font-family: var(--sjp-font-body);
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
}
.sjp-textsize-btn--up { font-size: 1.05rem; }
.sjp-textsize-btn:hover:not(:disabled) { border-color: var(--sjp-gold-lt); color: var(--sjp-gold-lt); }
.sjp-textsize-btn:disabled { opacity: 0.4; cursor: default; }
.sjp-textsize.is-resized .sjp-textsize-btn--reset { background: #fff; color: var(--sjp-navy); border-color: #fff; }

/* Compact menu: when enlarged text means the desktop menu no longer fits,
   main.js adds .sjp-nav-compact to <html> and the mobile menu is used
   (same rules as the max-width: 900px breakpoint). */
html.sjp-nav-compact .menu-toggle { display: flex; }
html.sjp-nav-compact .site-header .container { position: relative; }
html.sjp-nav-compact .main-navigation {
	display: none;
	position: absolute;
	top: 100%;
	left: 0; right: 0;
	background: var(--sjp-white);
	border-bottom: 2px solid var(--sjp-gold);
	box-shadow: var(--sjp-shadow);
	z-index: 300;
}
html.sjp-nav-compact .main-navigation.is-open { display: block; }
html.sjp-nav-compact .main-navigation ul { flex-direction: column; padding: 0.5rem 0; width: 100%; }
html.sjp-nav-compact .main-navigation ul li { width: 100%; position: relative; display: flex; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid var(--sjp-light-grey); }
html.sjp-nav-compact .main-navigation ul li > a { flex: 1; padding: 0.75rem 1.5rem; border-bottom: none; }
html.sjp-nav-compact .main-navigation ul li a::after { display: none; }
html.sjp-nav-compact .main-navigation ul ul { display: none; position: static; box-shadow: none; border: none; border-top: none; background: var(--sjp-off-white); width: 100%; }
html.sjp-nav-compact .main-navigation ul li.is-open > ul { display: flex; flex-direction: column; }
html.sjp-nav-compact .main-navigation .menu-newsletter > a { margin-left: 0; }

/* Text size strip now sits inside the sticky header, so it stays in view. */
.sjp-top-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
.site-header .container { position: relative; }
@media (max-width: 900px) {
	.main-navigation { top: 100%; }
}
@media (max-width: 600px) {
	.sjp-top-banner-inner { padding: 0 1.25rem; justify-content: flex-start; }
}

/* "Parish updates" and "Parish Noticeboard" are real headings (h2) but keep their label styling. */
h2.sjp-updates-label,
h2.sjp-dashboard-heading-text { margin: 0; line-height: inherit; }

/* Reflow (WCAG 1.4.10): on short screens – browser zoom, phones held sideways –
   the header scrolls away instead of staying pinned, so it can't cover the page. */
@media (max-height: 560px) {
	.site-header { position: relative; }
	html { --sjp-header-h: 0px !important; }
}

/* Respect the "reduce motion" setting: no smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Accessibility help line in the footer: link sits within a sentence, so it is underlined. */
.sjp-footer-bottom .sjp-access-help a { text-decoration: underline; }
.sjp-nl-intro a { text-decoration: underline; text-underline-offset: 3px; }

/* Dona donate badge: scale down on narrow screens rather than overflow */
.sjp-page-content a[href*="mydona.com"] { display: inline-block; max-width: 100%; }
.sjp-page-content a[href*="mydona.com"] svg { max-width: 100%; height: auto; }

/* Contact Form 7 (website contact form) */
.sjp-contact-form-live { background: var(--sjp-off-white); border: 1px solid var(--sjp-mid-grey); padding: 2rem; }
.sjp-contact-form-live h3 { font-family: var(--sjp-font-heading); font-size: 1.3rem; color: var(--sjp-navy); margin: 0 0 1rem; }
.sjp-cf7 p { margin: 0 0 1.1rem; }
.sjp-cf7 label { display: block; font-weight: 600; color: var(--sjp-navy); margin-bottom: 0.35rem; }
.sjp-cf7 input[type="text"], .sjp-cf7 input[type="email"], .sjp-cf7 input[type="tel"], .sjp-cf7 textarea {
	width: 100%; box-sizing: border-box; padding: 0.7rem 0.85rem; font: inherit; color: var(--sjp-text-dark, #222);
	background: #fff; border: 1px solid var(--sjp-text-mid); border-radius: 0;
}
.sjp-cf7 input:focus, .sjp-cf7 textarea:focus { outline: 3px solid var(--sjp-gold-accessible); outline-offset: 1px; }
.sjp-cf7 input[type="submit"] { cursor: pointer; }
.sjp-cf7 .sjp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sjp-contact-form-live .wpcf7-not-valid-tip { color: #b32d2e; font-size: 0.95rem; margin-top: 0.3rem; display: block; }
.sjp-contact-form-live .wpcf7-response-output { margin: 1rem 0 0; padding: 0.8rem 1rem; border: 2px solid var(--sjp-navy); }
.sjp-contact-form-live .wpcf7 form.sent .wpcf7-response-output { border-color: #1e7b34; }
.sjp-contact-form-live .wpcf7 form.invalid .wpcf7-response-output,
.sjp-contact-form-live .wpcf7 form.failed .wpcf7-response-output,
.sjp-contact-form-live .wpcf7 form.spam .wpcf7-response-output { border-color: #b32d2e; }
.sjp-contact-form-live .wpcf7-spinner { margin-left: 0.75rem; }
.sjp-cf7 br { display: none; }
.sjp-cf7 .wpcf7-form-control-wrap { display: block; }

/* Contact page: parish priest photo beside his details */
.sjp-contact-person.has-photo { display: flex; align-items: center; gap: 1.25rem; }
.sjp-contact-person-photo { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 3px solid var(--sjp-white, #fff); box-shadow: 0 0 0 2px var(--sjp-gold); }
.sjp-contact-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media ( max-width: 480px ) {
	.sjp-contact-person.has-photo { flex-direction: column; align-items: flex-start; }
}

/* Contact page: photo of the church under the map */
.sjp-contact-church-photo { margin: 0 0 1rem; }
.sjp-contact-church-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--sjp-mid-grey); }
.sjp-contact-church-photo figcaption { font-size: 0.95rem; color: var(--sjp-text-mid); margin-top: 0.5rem; line-height: 1.5; }

/* Sacrament pages: optional photo (the page's featured image) under the overview card */
.sjp-sacrament-photo { margin: 0 0 2rem; }
.sjp-sacrament-photo img { display: block; width: 100%; height: clamp(220px, 34vw, 400px); object-fit: cover; object-position: center; border: 1px solid var(--sjp-mid-grey); }
.sjp-sacrament-photo.is-portrait img { height: 440px; object-fit: contain; background: var(--sjp-off-white); }

/* Standard pages with a featured photo: photo sits flush under the page header, with room beneath it */
.sjp-standard-page.has-featured { padding-top: 0; }
.sjp-standard-page.has-featured .sjp-page-featured { margin-bottom: 2.5rem; }

/* Tall banner: the photo fills the width at its own shape (about 2:1) instead of a slim crop */
.sjp-page-featured-tall img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: center 70%; display: block; }
.sjp-page-featured-tall .sjp-page-featured-caption { position: absolute; left: 0; right: 0; bottom: 0; }

/* Mobile menu: keep the +/− button level with its own menu link.
   It used to stretch to the full height of the menu item, so when a section opened
   the − dropped to the middle of the list of sub-pages. Now it sits in the link's row. */
@media (max-width: 900px) {
	.main-navigation ul li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: stretch; }
	.main-navigation ul li.menu-item-has-children > a { flex: 1 1 0; min-width: 0; }
	.main-navigation ul li > .submenu-toggle { position: static; height: auto; align-self: stretch; flex: 0 0 44px; }
}
html.sjp-nav-compact .main-navigation ul li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: stretch; }
html.sjp-nav-compact .main-navigation ul li.menu-item-has-children > a { flex: 1 1 0; min-width: 0; }
html.sjp-nav-compact .main-navigation ul li > .submenu-toggle { position: static; height: auto; align-self: stretch; flex: 0 0 44px; }

/* Mobile menu: a section opens and closes only with its +/− button.
   The desktop "open while hovered" rule used to keep a section showing after tapping/clicking −
   (the pointer is still over it, and iPhones keep the hover state after a tap). */
@media (max-width: 900px) {
	.main-navigation ul li:not(.is-open):hover > ul { display: none; }
}
html.sjp-nav-compact .main-navigation ul li:not(.is-open):hover > ul { display: none; }

/* Share on WhatsApp button (newsletters and notices) */
.sjp-share-wa { display: inline-flex; align-items: center; gap: 0.5rem; }
.sjp-nl-meta .sjp-share-wa { margin-left: 0.5rem; }
.sjp-share-row { margin: 1.5rem 0; }

/* Team page: people with a round photo, side by side (a roundel with the name, role and phone beside it) */
.sjp-people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin: 0 0 2rem; }
.sjp-people .sjp-person { grid-template-columns: auto 1fr !important; gap: 1.1rem; margin: 0; align-items: center; }
.sjp-person .wp-block-media-text__media { margin: 0; }
.sjp-person .wp-block-media-text__media img {
	width: 110px;
	height: 110px;
	max-width: none;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid var(--sjp-gold-accessible);
	padding: 3px;
	background: #fff;
	display: block;
}
.sjp-person .wp-block-media-text__content { padding: 0; }
.sjp-person h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.sjp-person p { margin: 0; line-height: 1.5; }
@media ( max-width: 700px ) {
	.sjp-people { grid-template-columns: 1fr; gap: 1.25rem; }
}
/* Keep the roundel beside the text on phones too (core stacks media-text blocks under 600px) */
@media ( max-width: 600px ) {
	.sjp-people .sjp-person.is-stacked-on-mobile { grid-template-columns: auto 1fr !important; }
	.sjp-people .sjp-person.is-stacked-on-mobile .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
	.sjp-people .sjp-person.is-stacked-on-mobile .wp-block-media-text__content { grid-column: 2; grid-row: 1; padding: 0; }
}

/* ============================================================
   PHOTO GALLERIES: list page (one row each) and gallery pages
   ============================================================ */
.sjp-gal-list-container { padding-bottom: 4.5rem; }
.sjp-gal-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; margin-top: 2.5rem; }
.sjp-gal-card { min-width: 0; border-top: 1px solid var(--sjp-mid-grey); padding-top: 1.75rem; }
.sjp-gal-list .sjp-gal-card:first-child { border-top: 0; padding-top: 0; }
.sjp-gal-head { margin: 0 0 1.1rem; }
.sjp-gal-title { font-family: var(--sjp-font-heading); color: var(--sjp-navy); margin: 0 0 0.35rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; }
.sjp-gal-title a { color: inherit; text-decoration: none; }
.sjp-gal-title a:hover, .sjp-gal-title a:focus-visible { color: var(--sjp-gold-accessible); text-decoration: underline; text-underline-offset: 4px; }
.sjp-gal-sub { margin: 0 0 0.6rem; font-family: var(--sjp-font-heading); font-style: italic; font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.35; color: var(--sjp-text-mid); }
.sjp-gal-by { margin: 0; font-family: var(--sjp-font-ui); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sjp-text-mid); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.sjp-gal-by-name { color: var(--sjp-navy); font-weight: 700; letter-spacing: 0.08em; }
.sjp-gal-by::before { content: ''; flex: 0 0 1.75rem; height: 2px; background: var(--sjp-gold); align-self: center; }

/* One justified row: the row's own shape is the sum of the photos' proportions, so nothing is cropped. */
.sjp-gal-row { display: flex; gap: 6px; aspect-ratio: var(--sum, 6); max-height: 340px; width: 100%; overflow: hidden; background: var(--sjp-light-grey); }
.sjp-gal-tile { position: relative; display: block; flex: var(--r, 1.5) 1 0; min-width: 0; overflow: hidden; }
.sjp-gal-tile picture { display: contents; }
.sjp-gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.sjp-gal-row:hover .sjp-gal-tile img { transform: scale(1.02); }
.sjp-gal-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(27, 43, 75, 0.62); color: #fff; font-family: var(--sjp-font-heading); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.sjp-gal-viewall { margin: 0.9rem 0 0; font-family: var(--sjp-font-ui); font-size: 0.95rem; letter-spacing: 0.06em; }
.sjp-gal-viewall a { color: var(--sjp-navy); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--sjp-gold); padding-bottom: 2px; }
.sjp-gal-viewall a:hover, .sjp-gal-viewall a:focus-visible { color: var(--sjp-gold-accessible); }
.sjp-gal-empty { margin: 2.5rem 0; color: var(--sjp-text-soft); font-style: italic; }

/* Page numbers under the list */
.sjp-gal-pagination { margin: 3rem 0 0; }
.sjp-gal-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.sjp-gal-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 1rem; border: 1px solid var(--sjp-navy); color: var(--sjp-navy); font-weight: 600; text-decoration: none; }
a.sjp-gal-page-link:hover, a.sjp-gal-page-link:focus-visible { background: var(--sjp-navy); color: #fff; }
.sjp-gal-page-link.is-current { background: var(--sjp-navy); color: #fff; }

/* A gallery's own page */
.sjp-gal-backwrap-bottom { margin: 2.5rem 0 0; }
.sjp-gal-back { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.sjp-gal-nocap { display: none !important; }
/* A quiet way back, above the photos: small, grey, underlined on hover only */
.sjp-gal-backlink { margin: 0 0 1.1rem; font-family: var(--sjp-font-ui); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sjp-gal-backlink a { color: var(--sjp-text-mid); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.sjp-gal-backlink a:hover, .sjp-gal-backlink a:focus-visible { color: var(--sjp-navy); border-bottom-color: var(--sjp-gold); }
.sjp-gal-count { margin: 0 0 1.75rem; font-size: 0.95rem; color: var(--sjp-text-soft); }
/* Subheading and photographer sit in the banner under the title */
.sjp-gal-header .sjp-gal-header-sub { margin: 0.65rem 0 0; font-family: var(--sjp-font-heading); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.35; color: rgba(255, 255, 255, 0.92); }
.sjp-gal-header .sjp-gal-by { justify-content: center; margin-top: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.sjp-gal-header .sjp-gal-by::before { display: none; }
.sjp-gal-header .sjp-gal-by-name { color: var(--sjp-gold-lt, #e0c27a); }
.sjp-gal-header .sjp-page-header-rule { margin-top: 1.1rem; }
.sjp-gallery-single .sjp-gallery-content > .wp-block-gallery { margin-top: 0; }
.sjp-gallery-single .wp-block-image { scroll-margin-top: 7rem; }

@media ( max-width: 700px ) {
	.sjp-gal-list { gap: 2.5rem; }
	/* On phones the row is a swipeable strip at a readable height */
	.sjp-gal-row { aspect-ratio: auto; height: 150px; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
	.sjp-gal-tile { flex: 0 0 auto; width: calc(150px * var(--r, 1.5)); scroll-snap-align: start; }
	.sjp-gal-more { font-size: 1.4rem; }
}
@media ( prefers-reduced-motion: reduce ) {
	.sjp-gal-tile img { transition: none; }
}


/* Contact page: the two Safeguarding Representatives, small round photos under the priest */
.sjp-contact-sg-people { display: flex; flex-wrap: wrap; gap: 0.9rem 1.75rem; list-style: none; margin: 0.15rem 0 0.75rem; padding: 0; }
.sjp-contact-sg-person { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.sjp-contact-sg-photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--sjp-white, #fff); box-shadow: 0 0 0 2px var(--sjp-gold); }
.sjp-contact-sg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sjp-contact-sg-person-text { display: flex; flex-direction: column; gap: 0.1rem; }
.sjp-contact-sg-person-name { font-weight: 600; color: var(--sjp-navy); line-height: 1.3; }
.sjp-contact-sg-phone { font-size: 0.95rem; color: var(--sjp-gold-accessible); text-decoration: none; white-space: nowrap; }
.sjp-contact-sg-phone:hover, .sjp-contact-sg-phone:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
