/* ==========================================================================
   St. Joseph Honey Creek: site styles (design v2, Oct 2026)
   Layout reference: ap.church/new. Brand colors per DESIGN.md. System sans-serif only.
   ========================================================================== */

/* ---- Base rhythm ---- */
body { -webkit-font-smoothing: antialiased; }
.entry-content > * + h2, .entry-content > h2 { margin-top: 2.5rem; }
.entry-content p, .entry-content li { max-width: 72ch; }
.entry-content .has-text-align-center, .entry-content .aligncenter { margin-left: auto; margin-right: auto; }

a[href^="tel:"] { white-space: nowrap; }

/* ---- Buttons (theme setting gives color/padding; this adds the finish) ---- */
.wp-block-button__link, .wp-element-button, .button { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-buttons { gap: .75rem; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--global-palette1); color: var(--global-palette1); background: transparent; padding: 11px 26px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--global-palette1); color: var(--global-palette9); }

/* ---- Page title band ---- */
.entry-hero .entry-header { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ---- Footer: light band, four columns like ap.church; stacks centered on phones ---- */
.site-middle-footer-wrap .site-footer-row-container-inner { padding-top: 3rem; padding-bottom: 2rem; }
.site-middle-footer-wrap .site-footer-row { column-gap: 2.5rem; row-gap: 2rem; }
.site-middle-footer-wrap .site-footer-section { flex-direction: column; align-items: flex-start; }
.site-middle-footer-wrap .site-footer-section > .footer-widget-area { margin-left: 0 !important; margin-right: 0 !important; }
.site-footer .footer-logo { margin: 0 0 1rem; }
.site-footer .footer-logo img { width: 220px; max-width: 70vw; height: auto; }
.site-footer h2.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--global-palette1); margin: .35rem 0 1rem; padding-top: .6rem; border-top: 2px solid var(--global-palette15); display: inline-block; }
.site-footer .footer-contact, .site-footer .footer-urgent { font-size: .93rem; line-height: 1.65; margin: 0 0 .9rem; }
.site-footer .footer-widget-area a { text-decoration: underline; text-underline-offset: 2px; }
.site-middle-footer-wrap .footer-navigation, .site-middle-footer-wrap .footer-navigation .menu { margin: 0 !important; padding: 0 !important; }
.site-middle-footer-wrap .footer-navigation .menu { flex-direction: column; align-items: flex-start; gap: .1rem; }
.site-middle-footer-wrap .footer-navigation .menu > li { margin: 0 !important; padding: 0 !important; }
.site-middle-footer-wrap .footer-navigation .menu > li > a { padding: .2rem 0 !important; font-size: .93rem; text-decoration: none; }
.site-middle-footer-wrap .footer-navigation .menu > li > a:hover { text-decoration: underline; }
.site-footer .footer-social-wrap, .site-footer .footer-social-wrap .footer-social-inner-wrap { margin: 0 !important; padding: 0 !important; justify-content: flex-start; gap: .9rem; }
.site-footer .footer-social-wrap .social-button { margin: 0 !important; }
.site-footer .footer-social-wrap .social-button { background: transparent !important; border: 0 !important; padding: 0; width: auto; height: auto; }
.site-bottom-footer-wrap .site-footer-row-container-inner { padding-top: 1rem; padding-bottom: 1.5rem; }
.site-bottom-footer-wrap .site-footer-section { justify-content: center; text-align: center; }
@media (max-width: 767px) {
	.site-middle-footer-wrap .site-footer-section { align-items: center; text-align: center; }
	.site-footer .footer-logo { margin: 0 auto 1rem; }
	.site-middle-footer-wrap .footer-navigation .menu { align-items: center; }
	.site-footer .footer-social-wrap .footer-social-inner-wrap { justify-content: center; }
}

/* ---- Home page sections ---- */
.home .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.stj-hero.wp-block-cover { min-height: 72vh; padding-left: 1.25rem; padding-right: 1.25rem; }
.stj-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0 0 .4rem; letter-spacing: -.01em; }
.stj-hero .stj-hero-sub { color: #fff; font-size: 1.15rem; margin: 0 auto 1.75rem; }
.stj-hero .wp-block-button__link { min-width: 10rem; }
.stj-hero .wp-block-button.is-style-outline > .wp-block-button__link, .stj-on-dark .wp-block-button.is-style-outline > .wp-block-button__link { border-color: #fff; color: #fff; }
.stj-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover, .stj-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--global-palette1); }
.stj-section { padding-top: clamp(3rem, 7vw, 5.5rem) !important; padding-bottom: clamp(3rem, 7vw, 5.5rem) !important; padding-left: clamp(1.25rem, 4vw, 2rem) !important; padding-right: clamp(1.25rem, 4vw, 2rem) !important; }
.stj-section > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.stj-section.has-background { margin: 0; }
.stj-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--global-palette1); margin-bottom: .4rem; }
.stj-kicker::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--global-palette15); margin-bottom: .7rem; }
.stj-kicker.is-centered::before { margin-left: auto; margin-right: auto; }
.stj-section h2 { margin-top: 0; }
.stj-section h2.has-text-align-center { margin-bottom: 2rem; }
.stj-es h2.has-text-align-center { margin-bottom: .75rem; }
.stj-split { gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stj-photo img { border-radius: 14px; width: 100%; height: auto; object-fit: cover; }
.stj-photo.is-tall img { aspect-ratio: 4 / 5; }
.stj-photo.is-wide img { aspect-ratio: 4 / 3; }

/* Cards (ap.church/new info cards): soft limestone/green tint, rounded, centered */
.stj-cards { gap: 1.25rem !important; }
.stj-card { background: var(--global-palette8); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; display: flex; flex-direction: column; }
.stj-card.is-green { background: #E3ECE6; }
.stj-card h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.stj-card p { margin: 0 auto 1.25rem; font-size: .98rem; }
.stj-card .wp-block-buttons { margin-top: auto; justify-content: center; }
.stj-card .wp-block-button__link { border-radius: 999px; padding: 10px 24px; font-size: .95rem; }

/* Latest news list */
.stj-news .wp-block-latest-posts { gap: 1.5rem; }
.stj-news .wp-block-latest-posts li { background: var(--global-palette9); border-radius: 14px; overflow: hidden; padding: 0 0 1.1rem; border: 1px solid var(--global-palette7); }
.stj-news .wp-block-latest-posts__featured-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.stj-news .wp-block-latest-posts li > a, .stj-news .wp-block-latest-posts__post-date { display: block; padding: 0 1.1rem; }
.stj-news .wp-block-latest-posts li > a { font-weight: 700; color: var(--global-palette3); text-decoration: none; margin-top: .9rem; line-height: 1.35; }
.stj-news .wp-block-latest-posts__post-date { font-size: .85rem; color: var(--global-palette6); margin-top: .3rem; }

/* Mass & Confession times on Home */
.stj-mass h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--global-palette1); margin: 1.4rem 0 .35rem; }
.stj-mass ul { list-style: none; padding: 0; margin: 0; }
.stj-mass li { padding: .2rem 0; }

.stj-news .stj-card { background: var(--global-palette9); }
.stj-news .wp-block-latest-posts.is-grid li { margin: 0; padding: 1.25rem 1.25rem 1.1rem; }
.stj-news .wp-block-latest-posts__post-excerpt { padding: 0; margin-top: .5rem; font-size: .95rem; color: var(--global-palette5); }
.stj-news .wp-block-latest-posts li > a, .stj-news .wp-block-latest-posts__post-date { padding: 0; }
.stj-news .wp-block-latest-posts li > a { margin-top: 0; }

/* Spanish band */

.stj-es { text-align: center; }
.stj-es p { margin-left: auto; margin-right: auto; }

/* TO DO highlights stay visible but tidy */
.todo mark { background: #FFF4C2; padding: .15rem .35rem; border-radius: 4px; font-size: .9rem; }

@media (max-width: 781px) {
	.stj-hero.wp-block-cover { min-height: 62vh; }
	.stj-cards { gap: 1rem !important; }
}

/* ---- Condolences page intro + closing note (cards are styled by the stjhc-condolences plugin) ---- */
.memorial-intro { background: var(--global-palette8); border-left: 3px solid var(--global-palette15); border-radius: 8px; margin-bottom: 1.5rem; }
.memorial-intro .kt-inside-inner-col { padding: 1.25rem 1.5rem; }
.memorial-intro .memorial-lede { font-size: 1.1rem; margin-bottom: .75rem; }
.memorial-intro .memorial-prayer { font-style: italic; color: var(--global-palette1); margin: 0; }
.memorial-closing { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--global-palette8); border-radius: 8px; }

/* Hill of the Cross: green book icons (replaced invisible white PNGs) */
.hoc-icon { display: inline-block; vertical-align: middle; width: 32px; height: 32px; margin: 0 .4rem .2rem 0; }
.hoc-section a { color: var(--global-palette1); font-weight: 600; text-decoration: none; }

/* Phone menu: quick links row at the top of the green panel */
.stj-mobile-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .25rem 0 1rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.stj-mobile-quick a { display: block; text-align: center; padding: .55rem .5rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff !important; font-size: .9rem; font-weight: 600; text-decoration: none !important; }
.stj-mobile-quick a:hover, .stj-mobile-quick a:focus { background: #fff; color: var(--global-palette1) !important; }
.mobile-html-inner { width: 100%; }

/* Header v3: one bar: logo | menu | Español | Give */
.site-main-header-wrap .site-header-row-container-inner { padding-top: .35rem; padding-bottom: .35rem; }
.site-header-main-section-right { gap: .25rem; }
.header-html .stj-header-es { font-size: .9rem; font-weight: 600; text-decoration: none; padding: .4rem .6rem; border-radius: 6px; }
.header-html .stj-header-es:hover { background: var(--global-palette8); }
.header-button-wrap .header-button { font-weight: 700; padding: .6rem 1.4rem; margin-left: .35rem; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { padding-left: .7em; padding-right: .7em; }
/* Never squeeze the logo out; keep the menu on one line */
.site-header-main-section-left { flex-shrink: 0; }
.site-header-main-section-left .site-branding .custom-logo { min-width: 180px; }
.main-navigation .primary-menu-container > ul { flex-wrap: nowrap; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1480px) {
	.site-header-main-section-left .site-branding .custom-logo { width: 190px; max-width: 190px; }
	.main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 14px; padding-left: .45em; padding-right: .45em; }
	.header-html .stj-header-es { padding: .4rem .35rem; }
	.header-button-wrap .header-button { padding: .55rem 1rem; }
}

/* Cards read as buttons: icon, whole card clickable, lift on hover */
.stj-card-icon { color: var(--global-palette1); margin: 0 auto .75rem; line-height: 0; }
.stj-card-icon svg { width: 40px; height: 40px; }
.stj-card.is-linked { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.stj-card.is-linked .wp-block-button__link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.stj-card.is-linked:hover, .stj-card.is-linked:focus-within { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(41, 80, 56, .14); }
.stj-card.is-linked a:not(.wp-block-button__link) { position: relative; z-index: 1; } /* keep inline links (e.g. phone number) clickable on their own */
.stj-news .stj-cards { flex-wrap: wrap !important; }
@media (min-width: 782px) and (max-width: 1100px) { .stj-news .stj-cards > .stj-card { flex-basis: calc(50% - .75rem) !important; } }
/* News cards: featured image on top */
.stj-news .wp-block-latest-posts__featured-image { margin: -1.25rem -1.25rem 1rem; }
.stj-news .wp-block-latest-posts__featured-image img { border-radius: 14px 14px 0 0; display: block; }

/* Card icons (Feather icons, MIT): add class "icon-<name>" to a .stj-card column */
.stj-card[class*="icon-"]::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto .8rem; background-color: var(--global-palette1); -webkit-mask: var(--stj-icon) center / contain no-repeat; mask: var(--stj-icon) center / contain no-repeat; }
.stj-card.icon-droplet { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z%22/%3E%3C/svg%3E"); }
.stj-card.icon-book { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z%22/%3E%3Cpath d=%22M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z%22/%3E%3C/svg%3E"); }
.stj-card.icon-users { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M23 21v-2a4 4 0 0 0-3-3.87%22/%3E%3Cpath d=%22M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E"); }
.stj-card.icon-phone { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z%22/%3E%3C/svg%3E"); }
.stj-card.icon-sun { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%225%22/%3E%3Cpath d=%22M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42%22/%3E%3C/svg%3E"); }
.stj-card.icon-flag { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z%22/%3E%3Cpath d=%22M4 22v-7%22/%3E%3C/svg%3E"); }
.stj-card.icon-camera { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z%22/%3E%3Ccircle cx=%2212%22 cy=%2213%22 r=%224%22/%3E%3C/svg%3E"); }
.stj-card.icon-heart { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z%22/%3E%3C/svg%3E"); }
.stj-card.icon-userplus { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%228.5%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M20 8v6M23 11h-6%22/%3E%3C/svg%3E"); }
.stj-card.icon-gift { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 12v10H4V12%22/%3E%3Cpath d=%22M2 7h20v5H2z%22/%3E%3Cpath d=%22M12 22V7%22/%3E%3Cpath d=%22M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z%22/%3E%3Cpath d=%22M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z%22/%3E%3C/svg%3E"); }
.stj-card.icon-cross { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2v20M7 7h10%22/%3E%3C/svg%3E"); }
.stj-card.icon-calendar { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M16 2v4M8 2v4M3 10h18%22/%3E%3C/svg%3E"); }
.stj-card.icon-file { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%22/%3E%3Cpath d=%22M14 2v6h6M16 13H8M16 17H8M10 9H8%22/%3E%3C/svg%3E"); }
.stj-card.icon-monitor { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%223%22 width=%2220%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M8 21h8M12 17v4%22/%3E%3C/svg%3E"); }
.stj-card.icon-edit { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20h9%22/%3E%3Cpath d=%22M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z%22/%3E%3C/svg%3E"); }
.stj-card.icon-sunrise { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17 18a5 5 0 0 0-10 0%22/%3E%3Cpath d=%22M12 2v7M4.22 10.22l1.42 1.42M1 18h2M21 18h2M18.36 11.64l1.42-1.42M23 22H1M8 6l4-4 4 4%22/%3E%3C/svg%3E"); }
.stj-card.icon-compass { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M16.24 7.76l-2.12 6.36-6.36 2.12 2.12-6.36 6.36-2.12z%22/%3E%3C/svg%3E"); }
.stj-card.icon-smile { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01%22/%3E%3C/svg%3E"); }
.stj-card.icon-star { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z%22/%3E%3C/svg%3E"); }
.stj-card.icon-home { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z%22/%3E%3Cpath d=%22M9 22V12h6v10%22/%3E%3C/svg%3E"); }
.stj-card.icon-tool { --stj-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z%22/%3E%3C/svg%3E"); }

/* Landing pages (Sacraments, Faith Formation, Get Involved): card grid above the original content */
.stj-lede { font-size: 1.15rem; color: var(--global-palette5); max-width: 60ch; margin-bottom: 1.75rem; }
.stj-card-grid { gap: 1.25rem !important; margin-bottom: 3rem; }
.stj-card-grid > .stj-card { margin: 0 !important; padding: 1.75rem 1.25rem 1.5rem; }
.stj-card-grid > .stj-card:nth-child(4n+1), .stj-card-grid > .stj-card:nth-child(4n+3) { background: #E3ECE6; }
.stj-card-grid .stj-card h3 { font-size: 1.15rem; }
.stj-card-grid .stj-card p { font-size: .95rem; }
h2.stj-about-heading { padding-top: 2rem; border-top: 1px solid var(--global-palette7); }

/* Imported (old-site) content: tidy floated photos and notices on every inner page */
.entry-content img.body-image-right, .entry-content img.body-image-left { max-width: min(42%, 420px); height: auto; border-radius: 12px; margin-bottom: 1rem; }
.entry-content img.body-image-right { float: right; margin-left: 2rem; }
.entry-content img.body-image-left { float: left; margin-right: 2rem; }
.entry-content h2, .entry-content h3 { clear: none; }
.entry-content .redirect-notice { border-radius: 10px !important; border-color: var(--global-palette15) !important; background: #FBF7EC !important; }
@media (max-width: 781px) {
	.entry-content img.body-image-right, .entry-content img.body-image-left { float: none; display: block; max-width: 100%; margin: 0 0 1.25rem; }
}
.stj-groups .stj-group-list { font-size: .9rem; line-height: 1.6; color: var(--global-palette5); }
.entry-content h2[id] { scroll-margin-top: 1.5rem; }
.entry-content .wp-block-table table { font-size: .95rem; }
.entry-content .wp-block-table thead { border-bottom: 2px solid var(--global-palette15); }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: .6rem .75rem; }
.entry-content .wp-block-table tbody tr:nth-child(even) { background: var(--global-palette8); }

/* News: no "By admin" byline */
.entry-meta .posted-by, .entry-meta .posted-by + .meta-divider { display: none !important; }

/* Language switch (GTranslate, text only): "English | Español" */
.stj-lang .gtranslate_wrapper { display: flex; align-items: center; white-space: nowrap; }
.stj-lang .gtranslate_wrapper a { font-size: .88rem; font-weight: 500; color: var(--global-palette1) !important; text-decoration: none !important; padding: .25rem .1rem; line-height: 1.2; }
.stj-lang .gtranslate_wrapper a + a { margin-left: .55rem; padding-left: .6rem; border-left: 1px solid var(--global-palette7); }
.stj-lang .gtranslate_wrapper a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.stj-lang .gtranslate_wrapper a.gt-current-lang { font-weight: 700; }
.header-html .stj-lang { margin-right: .35rem; }
/* Phone menu: switch sits above the quick links, white on green */
.stj-lang-mobile { margin: 0 0 .9rem; }
.stj-lang-mobile .gtranslate_wrapper { justify-content: center; }
.stj-lang-mobile .gtranslate_wrapper a { color: #fff !important; font-size: 1rem; }
.stj-lang-mobile .gtranslate_wrapper a + a { border-left-color: rgba(255,255,255,.45); }

/* Header fit (logo | menu | search | language | Give) at small-laptop widths */
.search-toggle-open-container .search-toggle-open { padding: .4rem; }
@media (min-width: 1025px) and (max-width: 1480px) {
	.site-header-main-section-left .site-branding .custom-logo { width: 165px; max-width: 165px; min-width: 150px; }
	.main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 13.5px; padding-left: .38em; padding-right: .38em; }
	.header-html .stj-lang .gtranslate_wrapper a.gt-current-lang { display: none; }   /* show only the other language */
	.header-html .stj-lang .gtranslate_wrapper a + a { margin-left: 0; padding-left: .1rem; border-left: 0; }
	.header-html .stj-lang { margin-right: .15rem; }
	.search-toggle-open-container .search-toggle-open { padding: .3rem; }
	.header-button-wrap .header-button { padding: .5rem .9rem; margin-left: .2rem; }
}


/* ---- News: a photo only when a Featured Image is set ---- */
/* Single post without a photo: simple limestone title band, green headline */
.stj-no-hero .entry-hero .entry-hero-container-inner { background: var(--global-palette8) !important; }
.stj-no-hero .entry-hero .hero-section-overlay { background: transparent !important; }
.stj-no-hero .entry-hero .entry-header { min-height: 0 !important; padding-top: 3rem; padding-bottom: 2.5rem; }
.stj-no-hero .entry-hero h1.entry-title { color: var(--global-palette1) !important; }
.stj-no-hero .entry-hero .entry-meta, .stj-no-hero .entry-hero .entry-meta a, .stj-no-hero .entry-hero .entry-taxonomies a { color: var(--global-palette5) !important; }
.stj-no-hero .entry-hero { border-bottom: 3px solid var(--global-palette15); }

/* Cards without a photo (Home + News page): limestone top band with a small green news icon */
.stj-news .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)),
.blog .loop-entry:not(.has-post-thumbnail), .archive .loop-entry:not(.has-post-thumbnail) { position: relative; }
.stj-news .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image))::before,
.blog .loop-entry:not(.has-post-thumbnail)::before, .archive .loop-entry:not(.has-post-thumbnail)::before {
	content: ""; display: block; height: 96px; background: var(--global-palette8); border-bottom: 2px solid var(--global-palette15);
}
.stj-news .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image))::before { margin: -1.25rem -1.25rem 1rem; border-radius: 14px 14px 0 0; }
.stj-news .wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image))::after,
.blog .loop-entry:not(.has-post-thumbnail)::after, .archive .loop-entry:not(.has-post-thumbnail)::after {
	content: ""; position: absolute; top: 28px; left: calc(50% - 20px); width: 40px; height: 40px;
	background-color: var(--global-palette1); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2%22/%3E%3Cpath d=%22M18 14h-8M15 18h-5M10 6h8v4h-8z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2%22/%3E%3Cpath d=%22M18 14h-8M15 18h-5M10 6h8v4h-8z%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Search: overlay + results ---- */
#search-drawer .drawer-inner .search-form input.search-field { font-size: 1.4rem; border-color: rgba(255,255,255,.5); color: #fff; }
.search-results .content-container, .search-no-results .content-container { max-width: 820px; }
.stj-search-again { margin: 0 0 2rem; }
.stj-search-again .search-form { display: flex; gap: .5rem; max-width: 560px; }
.stj-search-again .search-field { flex: 1; border: 1px solid var(--global-palette7); border-radius: 6px; padding: .7rem .9rem; font-size: 1rem; }
.search-results .loop-entry { background: var(--global-palette9); border: 1px solid var(--global-palette7); border-left: 3px solid var(--global-palette15); border-radius: 10px; margin-bottom: 1rem !important; box-shadow: none; }
.search-results .loop-entry .entry-content-wrap { padding: 1.1rem 1.4rem 1.2rem; }
.search-results .loop-entry .entry-title { font-size: 1.3rem; margin: .2rem 0 .3rem; }
.search-results .loop-entry .entry-title a { color: var(--global-palette1); text-decoration: none; }
.search-results .loop-entry .entry-title a:hover { text-decoration: underline; }
.search-results .loop-entry.type-page .entry-meta .posted-on, .search-results .loop-entry.type-page .entry-meta .meta-divider { display: none; }   /* page dates are just the import date */
.search-results .loop-entry .entry-summary p { margin: .3rem 0 0; font-size: .95rem; color: var(--global-palette5); }
.stj-result-type { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--global-palette1); background: #E3ECE6; border-radius: 999px; padding: .15rem .6rem; margin-bottom: .25rem; }
.search-results .entry-meta > .stj-result-type::after, .search-results .entry-meta > .stj-result-type::before { display: none !important; content: none !important; }
.search-results .entry-meta > .stj-result-type { margin-right: .5rem; }

/* ---- Cards: equal height per row, button/link pinned to the bottom (all card grids) ---- */
.stj-card-grid, .stj-cards { align-items: stretch !important; }
.stj-card-grid > .stj-card, .stj-cards > .stj-card { height: auto; align-self: stretch !important; }
.stj-card { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; }
.stj-card > h3 { margin-top: 0 !important; }
.stj-card > p { margin-bottom: 1.25rem !important; }
.stj-card > .wp-block-buttons { margin-top: auto !important; margin-bottom: 0 !important; padding-top: .25rem; justify-content: center; }
/* News page cards (Kadence loop) */
.blog .loop-entry, .archive .loop-entry { display: flex; flex-direction: column; height: 100%; }
.blog .loop-entry .entry-content-wrap, .archive .loop-entry .entry-content-wrap { flex: 1; display: flex; flex-direction: column; }
.blog .loop-entry .entry-footer, .archive .loop-entry .entry-footer { margin-top: auto; }
/* Home news cards */
.stj-news .wp-block-latest-posts.is-grid li { display: flex; flex-direction: column; }
/* Condolences cards: obituary link at the bottom */
.stjhc-condolences .memorial-card-inner { display: flex; flex-direction: column; }
.stjhc-condolences .memorial-link { margin-top: auto !important; padding-top: .85rem; }
.stjhc-condolences .memorial-services + .memorial-link, .stjhc-condolences .memorial-dates + .memorial-link { margin-top: auto !important; }
/* Keep short ranges together */
.nowrap { white-space: nowrap; }
/* Group-based cards have an inner container: make it the flex column too */
.stj-card > .wp-block-group__inner-container { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; }
.stj-card > .wp-block-group__inner-container > h3 { margin-top: 0 !important; }
.stj-card > .wp-block-group__inner-container > p { margin-bottom: 1.25rem !important; }
.stj-card > .wp-block-group__inner-container > .wp-block-buttons { margin-top: auto !important; margin-bottom: 0 !important; justify-content: center; }
.stj-card-grid > .stj-card { padding-bottom: 1.5rem; }
/* Card buttons stay on one line so they're the same height */
.stj-card .wp-block-button__link { white-space: nowrap; }
@media (min-width: 782px) and (max-width: 1100px) {
	.stj-cards > .stj-card { padding-left: 1rem; padding-right: 1rem; }
	.stj-cards > .stj-card .wp-block-button__link { padding-left: 16px; padding-right: 16px; font-size: .9rem; }
}

/* ---- Hero options (mockups; keep the chosen one, remove the rest) ---- */
/* A: split – text left on limestone, photo right */
.stj-heroA { background: var(--global-palette8); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) !important; }
.stj-heroA > .wp-block-columns { max-width: 1180px; margin: 0 auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stj-heroA h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: .2rem 0 .8rem; letter-spacing: -.01em; }
.stj-heroA .stj-hero-place { font-size: 1.15rem; color: var(--global-palette5); margin: 0 0 1.75rem; }
.stj-heroA .wp-block-buttons { gap: .75rem; align-items: center; }
.stj-heroA .stj-textlink a { font-weight: 700; color: var(--global-palette1); text-decoration: none; }
.stj-heroA .stj-textlink a:hover { text-decoration: underline; }
.stj-heroA .stj-textlink { margin: 1.1rem 0 0; }
.stj-heroA-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 42%; border-radius: 18px; display: block; }
@media (max-width: 781px) {
	.stj-heroA > .wp-block-columns { flex-direction: column-reverse; }
	.stj-heroA-photo img { aspect-ratio: 4 / 3; }
}
/* B: full-bleed photo, no tint, soft gradient bottom-left, text bottom-left */
.stj-heroB.wp-block-cover { min-height: 78vh; padding: clamp(1.5rem, 5vw, 4rem) !important; overflow: hidden; }
.stj-heroB .wp-block-cover__background { display: none; } /* no tint: the photo shows as shot; text sits on its own card */
.stj-heroB .wp-block-cover__inner-container { max-width: 1180px; margin: 0 auto; width: 100%; }
.stj-heroB h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; line-height: 1.1; margin: 0 0 .5rem; max-width: 18ch; }
.stj-heroB .stj-hero-place { color: rgba(255,255,255,.9); margin: 0 0 1.4rem; font-size: 1.05rem; }
.stj-heroB .wp-block-button.is-style-outline > .wp-block-button__link { border-color: #fff; color: #fff; }
.stj-heroB .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--global-palette1); }
/* C: text-first limestone band with a Mass-times card, slim photo strip */
.stj-heroC { background: var(--global-palette8); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) !important; }
.stj-heroC > .wp-block-columns { max-width: 1180px; margin: 0 auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.stj-heroC h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: .2rem 0 .8rem; }
.stj-heroC .stj-hero-place { font-size: 1.15rem; color: var(--global-palette5); margin: 0 0 1.75rem; }
.stj-heroC-card { background: #fff; border-radius: 16px; padding: 1.5rem 1.75rem !important; box-shadow: 0 12px 30px rgba(41,80,56,.10); border-top: 3px solid var(--global-palette15); }
.stj-heroC-card h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
.stj-heroC-card h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--global-palette1); margin: 1rem 0 .25rem; }
.stj-heroC-card ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.stj-heroC-card li { padding: .1rem 0; }
.stj-strip img { width: 100%; height: clamp(140px, 18vw, 260px); object-fit: cover; object-position: 50% 45%; display: block; }
.stj-strip { margin: 0 !important; }
.stj-heroA .wp-block-columns, .stj-heroC .wp-block-columns { max-width: 1180px; margin-left: auto; margin-right: auto; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 781px) { .stj-heroA .wp-block-columns { flex-direction: column-reverse !important; } }

/* Staff page: headshot card grid */
.stj-staff, .stj-staff > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.stj-staff:has(> .wp-block-group__inner-container) { display: block; }
.stj-staff { margin-bottom: 2.5rem; }
.stj-person, .stj-person > .wp-block-group__inner-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stj-person { background: var(--global-palette8); border-radius: 14px; padding: 1.5rem 1.25rem; height: 100%; margin: 0 !important; }
.stj-person > .wp-block-group__inner-container { height: 100%; width: 100%; }
.stj-person > *, .stj-person > .wp-block-group__inner-container > * { margin: 0 !important; }
.stj-person .stj-person-photo { width: 150px; margin-bottom: 1rem !important; }
.stj-person .stj-person-photo img { width: 150px; height: 150px; object-fit: cover; border-radius: 16px; display: block; }
.stj-person .stj-initials { width: 150px; height: 150px; border-radius: 50%; background: var(--global-palette1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem !important; }
.stj-person h3 { font-size: 1.15rem; margin-bottom: .25rem !important; }
.stj-person .stj-person-role { font-size: .95rem; color: var(--global-palette5); margin-bottom: .75rem !important; }
.stj-person .stj-person-contact { margin-top: auto !important; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.stj-staff, .stj-staff > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: .75rem; }
	.stj-person { display: block; padding: 1rem; }
	.stj-person > .wp-block-group__inner-container { display: grid; grid-template-columns: 88px 1fr; column-gap: 1rem; align-items: center; text-align: left; }
	.stj-person .stj-person-photo, .stj-person .stj-initials { grid-row: 1 / span 3; width: 88px; height: 88px; margin: 0 !important; }
	.stj-person .stj-person-photo img { width: 88px; height: 88px; }
	.stj-person .stj-initials { font-size: 1.7rem; }
	.stj-person .stj-person-role { margin-bottom: .35rem !important; }
	.stj-person .stj-person-contact { font-size: .88rem; margin-top: 0 !important; overflow-wrap: normal; }
}
/* Hero A with a portrait photo (bell tower) */
.stj-heroA-photo.is-portrait img { aspect-ratio: 4 / 5; object-position: 35% 40%; max-height: 640px; }
@media (max-width: 781px) { .stj-heroA-photo.is-portrait img { aspect-ratio: 4 / 4.4; object-position: 30% 35%; } }

/* Hero B: text card over an untinted photo */
.stj-heroB.wp-block-cover { align-items: flex-end; }
.stj-heroB .wp-block-cover__inner-container { width: min(100%, 31rem); max-width: 31rem; margin: 0 auto 0 max(0px, calc((100% - 1180px) / 2)); background: #fff; border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 12px 30px rgba(0,0,0,.18); box-sizing: border-box; }
.stj-heroB h1 { color: var(--global-palette1); }
.stj-heroB .stj-hero-place { color: var(--global-palette5); }
.stj-heroB .wp-block-button.is-style-outline > .wp-block-button__link { border-color: var(--global-palette1); color: var(--global-palette1); }
.stj-heroB .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--global-palette1); color: #fff; }
/* Hero C: four-photo strip */
.stj-strip-gallery.wp-block-gallery { gap: 4px !important; margin: 0 !important; flex-wrap: nowrap !important; }
.stj-strip-gallery.wp-block-gallery figure.wp-block-image { margin: 0 !important; width: 25% !important; flex: 1 1 25% !important; }
.stj-strip-gallery.wp-block-gallery figure.wp-block-image img { height: clamp(120px, 16vw, 240px) !important; width: 100% !important; object-fit: cover; }
@media (max-width: 600px) { .stj-strip-gallery.wp-block-gallery { flex-wrap: wrap !important; } .stj-strip-gallery.wp-block-gallery figure.wp-block-image { width: calc(50% - 2px) !important; flex-basis: calc(50% - 2px) !important; } }
/* Buttons on the green band (Bienvenidos): solid white at rest so they never depend on the outline style */
.stj-on-dark .wp-block-button > .wp-block-button__link, .stj-on-dark .wp-block-button.is-style-outline > .wp-block-button__link { background: #fff !important; color: var(--global-palette1) !important; border: 2px solid #fff !important; }
.stj-on-dark .wp-block-button > .wp-block-button__link:hover, .stj-on-dark .wp-block-button > .wp-block-button__link:focus-visible { background: transparent !important; color: #fff !important; border-color: #fff !important; }
/* Design-preview pages (hero-option*): small label at the top */
.stj-preview-label { background: #FFF4C2; color: #3d3a2a; font-size: .85rem; text-align: center; padding: .45rem 1rem; border-bottom: 1px solid #e8d98a; }
.stj-preview-label a { color: inherit; font-weight: 600; }

/* Home hero (chosen Oct 20: A2 mirrored): tower photo left; the parish logo image (not text) right */
.stj-heroA--photo-left .stj-hero-place { margin-bottom: 1.6rem; }
.stj-heroA--photo-left .stj-heroA-photo.is-portrait img { aspect-ratio: 4 / 4.6; max-height: 600px; object-position: 30% 40%; }
@media (max-width: 781px) {
	/* phone: text first (column-reverse rule above), photo below and short */
	.stj-heroA--photo-left { padding-top: 2rem !important; }
	.stj-heroA--photo-left .stj-heroA-photo.is-portrait img { aspect-ratio: 4 / 3; object-position: 30% 30%; }
}

/* Join the Parish: Camino Life registration card */
.stj-register-card { background: var(--global-palette8); border-top: 4px solid var(--global-palette1); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.5rem) !important; margin: 2rem 0; max-width: 820px; }
.stj-register-card h2 { margin-top: .25rem; }
.stj-register-card h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.stj-register-card ol.stj-steps { padding-left: 1.4rem; }
.stj-register-card ol.stj-steps li { margin-bottom: .5rem; padding-left: .25rem; }
.stj-register-card ol.stj-steps li::marker { color: var(--global-palette1); font-weight: 700; }
.stj-register-card .stj-screenshot img { border-radius: 10px; border: 1px solid #d8dbd9; box-shadow: 0 6px 18px rgba(0,0,0,.08); background: #fff; }
.stj-register-card .wp-block-buttons { margin: 1.5rem 0 1rem; }
.stj-register-card .stj-small { font-size: .95rem; color: var(--global-palette5); margin-bottom: 0; }
.stj-register-note { background: #E3ECE6; border-left: 4px solid var(--global-palette1); border-radius: 10px; padding: 1rem 1.25rem !important; margin: 0 0 1.75rem; }
.stj-register-note p { margin: 0; }
/* Hero logo: the real logo artwork, never recolored or styled. 480px max = the 959px PNG at 2x on Retina. */
.stj-heroA--photo-left .stj-hero-logo { margin: 0 0 1.25rem !important; max-width: 480px; }
.stj-heroA--photo-left .stj-hero-logo img { width: 100%; height: auto; display: block; }
.stj-heroA--photo-left .stj-hero-place { font-size: 1.1rem; }

/* Embedded videos start below any floated photo (e.g. Our History) */
.entry-content .wp-block-embed { clear: both; }

/* Full-width photo hero (previews /hero-option-1..5/): photo untinted, soft dark gradient only behind the text */
.stj-heroFull.wp-block-cover { min-height: min(78vh, 760px); padding: clamp(1.5rem, 5vw, 4rem) !important; align-items: center; }
.stj-heroFull .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgba(8,14,10,.72) 0%, rgba(8,14,10,.5) 32%, rgba(8,14,10,.12) 58%, rgba(8,14,10,0) 72%) !important; }
.stj-heroFull .wp-block-cover__inner-container { max-width: 1180px; margin: 0 auto; width: 100%; color: #fff; }
.stj-heroFull .wp-block-cover__inner-container > * { max-width: 34rem; }
.stj-heroFull .stj-kicker { color: #fff; opacity: .92; }
.stj-heroFull .stj-kicker::before { background: var(--global-palette15, #AD8B3B); }
.stj-heroFull h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.08; margin: .3rem 0 .6rem; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.stj-heroFull .stj-hero-place { color: rgba(255,255,255,.92); font-size: 1.15rem; margin: 0 0 1.75rem; }
.stj-heroFull .wp-block-buttons { gap: .75rem; }
.stj-heroFull .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--global-palette1); color: #fff; border: 2px solid var(--global-palette1); }
.stj-heroFull .wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid #fff; color: #fff; background: rgba(0,0,0,.08); }
.stj-heroFull .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--global-palette1); }
@media (max-width: 781px) {
	.stj-heroFull.wp-block-cover { min-height: 78vh; align-items: flex-end; padding: 1.5rem 1.25rem 2rem !important; }
	.stj-heroFull .wp-block-cover__background { background: linear-gradient(0deg, rgba(8,14,10,.78) 0%, rgba(8,14,10,.55) 38%, rgba(8,14,10,0) 70%) !important; }
	.stj-heroFull h1 { font-size: 2.2rem; }
}

/* Watch Live added to the menu (Oct 26): extra squeeze on the narrowest desktop widths so Give stays visible. */
@media (min-width: 1025px) and (max-width: 1140px) {
	.site-header-main-section-left .site-branding .custom-logo { width: 150px; max-width: 150px; min-width: 140px; }
	.main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 13px; padding-left: .28em; padding-right: .28em; }
	.header-button-wrap .header-button { padding: .45rem .75rem; }
}

/* Visited outline buttons on dark backgrounds keep white text (Kadence turns visited outline links green). */
.stj-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):visited, .stj-heroFull .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):visited { color: #fff; }
.stj-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):visited:hover, .stj-heroFull .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):visited:hover { color: var(--global-palette1); }

/* Header aligned with the hero text (Oct 26, CR): the logo sits above "WELCOME HOME", with clear space before the menu.
   Left padding mirrors hero.css (.stj-heroSunset inner container): 40px up to 1099px, clamp(48px, 6vw, 140px) above. */
@media (min-width: 1025px) {
	#masthead .site-main-header-wrap .site-container { max-width: none; padding-left: 40px; padding-right: 12px; }
	.site-header-main-section-left { margin-right: 24px; }
	.site-header-main-section-right { justify-content: flex-end; }
}
@media (min-width: 1100px) {
	#masthead .site-main-header-wrap .site-container { padding-left: clamp(48px, 6vw, 140px); padding-right: clamp(24px, 3vw, 72px); }
	.site-header-main-section-left { margin-right: clamp(32px, 3vw, 48px); }
}


/* Menu restructure (Nov 1, CR): 7 menus no longer fit on small laptops, so the phone/tablet header
   (hamburger) is used up to 1099px instead of Kadence's 1024px. The bar never wraps. */
/* (2026-11-19) removed: the 1025–1099px switch to the menu button; the full menu starts at 1025px now (5 top items). */

/* Header with room to breathe (CR, 2026-11-02): below 1280px the menu button is used instead of shrinking the
   links and logo; from 1280px the full menu at 15px. "English" appears beside "Español" from 1440px.
   (Replaces the earlier 1100px switch; the older small-laptop squeeze rules above no longer apply below 1280.) */
/* (2026-11-19) The 1025–1279px switch to the menu button was removed: the full menu now starts at 1025px, so iPads held sideways get it. */
@media (min-width: 1280px) {
	.main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 15px; padding-left: .45em; padding-right: .45em; }
	.site-header-main-section-left .site-branding .custom-logo { width: 200px; max-width: 200px; min-width: 0; }
	.header-button-wrap .header-button { padding: .55rem 1.1rem; }
	.search-toggle-open-container .search-toggle-open { padding: .4rem; }
}
@media (min-width: 1440px) {
	.main-navigation .primary-menu-container > ul > li.menu-item > a { padding-left: .6em; padding-right: .6em; }
	.site-header-main-section-left .site-branding .custom-logo { width: 215px; max-width: 215px; }
	.header-html .stj-lang .gtranslate_wrapper a.gt-current-lang { display: inline; }
	.header-button-wrap .header-button { padding: .6rem 1.3rem; }
}