/* News & Events hub (/news-media/, page 8810): CR's light editorial brief, 2026-11-19. Scoped to .stj-ne.
   Rails 1.618fr | 1fr; the sage Watch Live / Gallery panel overlaps the news panel by 40px (24px top offset);
   the lower pair is reversed (1fr | 1.618fr) with Condolences overlapping Festival by 24px. Stacked below 1000px. */
.stj-ne { --ink: #1f3b2e; --green: #204535; --muted: #5d6a61; --gold: #b29259; --rule: #dde2da; --sage: #ebefe7; --warm: #fbf9f4;
	--serif: var(--stj-font-serif, "EB Garamond", Georgia, serif); --sans: var(--stj-font-sans, "Figtree", system-ui, sans-serif);
	--ov: 40px; width: min(1200px, calc(100% - 84px)); margin: 0 auto; padding: 64px 0 0; color: var(--ink); font: 17.5px/1.5 var(--sans); }
.stj-ne *, .stj-ne *::before, .stj-ne *::after { box-sizing: border-box; }
.stj-ne h1, .stj-ne h2, .stj-ne h3, .stj-ne p, .stj-ne ul { margin: 0; }
.stj-ne h1, .stj-ne h2, .stj-ne h3 { font-family: var(--serif); font-weight: 500; color: var(--green); letter-spacing: -.015em; line-height: 1.1; }
.stj-ne a { color: var(--green); }
.stj-ne a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.stj-ne .arrow { color: var(--gold); font-family: Arial, "DejaVu Sans", sans-serif; }

/* Heading row */
.stj-ne .ne-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.stj-ne .ne-eyebrow { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.stj-ne .ne-eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.stj-ne h1 { margin-top: 12px; font-size: clamp(42px, 4.5vw, 56px); }
.stj-ne .ne-bulletin { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 22px; border: 1.5px solid var(--green); font-weight: 650; text-decoration: none; margin-bottom: 6px; }
.stj-ne .ne-bulletin:hover { background: var(--green); color: #fff; }

/* Main panels */
.stj-ne .ne-main { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); align-items: start; margin-top: 40px; }
.stj-ne .ne-news { position: relative; background: #fff; border: 1px solid var(--rule); box-shadow: 0 14px 30px -26px rgb(31 59 46 / .35); padding: 40px calc(var(--ov) + 40px) 40px 40px; }
.stj-ne .ne-news > h2 { font-size: 32px; }
.stj-ne .ne-news > h2 a { text-decoration: none; }
.stj-ne .ne-list { list-style: none; padding: 0; margin-top: 8px; }
.stj-ne .ne-list li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.stj-ne .ne-list h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
.stj-ne .ne-list h3 a { text-decoration: none; }
.stj-ne .ne-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.stj-ne .ne-date { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stj-ne .ne-excerpt { margin-top: 8px; font-size: 17px; line-height: 1.5; }
.stj-ne .ne-empty { margin-top: 16px; color: var(--muted); }
.stj-ne .ne-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; font-weight: 650; text-decoration: none; }
.stj-ne .ne-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.stj-ne .ne-media { position: relative; z-index: 1; margin: 24px 0 0 calc(-1 * var(--ov)); background: var(--sage); border: 1px solid #dfe5da; box-shadow: 0 14px 30px -26px rgb(31 59 46 / .3); padding: 32px; }
.stj-ne .ne-media h2 { font-size: 30px; }
.stj-ne .ne-media p, .stj-ne .ne-pair p { margin-top: 12px; }
.stj-ne .ne-media section + section { margin-top: 32px; padding-top: 32px; border-top: 1px solid #cfd8cb; }
.stj-ne .ne-media .ne-link, .stj-ne .ne-pair .ne-link { margin-top: 8px; }

/* Lower pair, reversed */
.stj-ne .ne-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); align-items: start; margin-top: 64px; }
.stj-ne .ne-festival { background: var(--warm); border: 1px solid #ece6d8; padding: 32px; position: relative; }
.stj-ne .ne-festival::before { content: ""; display: block; height: 1px; background: var(--gold); margin-bottom: 24px; width: min(100%, 340px); }
.stj-ne .ne-festival h2 { font-size: 28px; }
.stj-ne .ne-condolences { position: relative; z-index: 1; margin: 24px 0 0 -24px; background: var(--sage); border: 1px solid #dfe5da; box-shadow: 0 14px 30px -26px rgb(31 59 46 / .3); padding: 32px; }
.stj-ne .ne-condolences h2 { font-size: 32px; }

/* Follow us */
.stj-ne .ne-follow { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin: 64px 0; padding-top: 24px; border-top: 1px solid var(--gold); scroll-margin-top: 24px; }
.stj-ne .ne-follow h2 { font-size: 34px; }
.stj-ne .ne-follow ul { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; padding: 0; }
.stj-ne .ne-follow li + li { border-left: 1px solid var(--gold); }
.stj-ne .ne-follow a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 24px; text-decoration: none; font-weight: 500; }
.stj-ne .ne-follow li:last-child a { padding-right: 0; }
.stj-ne .ne-follow a:hover { text-decoration: underline; }
.stj-ne .ne-follow svg { width: 22px; height: 22px; color: var(--green); }

/* Narrower desktops: smaller overlap so the news text keeps its room. */
@media (max-width: 1199px) { .stj-ne { --ov: 24px; } }
/* Stacked: heading/bulletin, Parish News, Watch Live, Photo Gallery, Festival, Condolences, Follow Us. */
@media (max-width: 999px) {
	.stj-ne { width: calc(100% - 50px); padding-top: 48px; }
	.stj-ne .ne-main, .stj-ne .ne-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.stj-ne .ne-news { padding: 32px; }
	.stj-ne .ne-media, .stj-ne .ne-condolences { margin: 0; }
	.stj-ne .ne-pair { margin-top: 40px; }
	.stj-ne .ne-follow { margin: 40px 0 48px; }
}
@media (max-width: 600px) {
	.stj-ne { width: calc(100% - 40px); padding-top: 40px; }
	.stj-ne h1 { font-size: 42px; }
	.stj-ne .ne-news, .stj-ne .ne-media, .stj-ne .ne-festival, .stj-ne .ne-condolences { padding: 24px; }
	.stj-ne .ne-news > h2, .stj-ne .ne-media h2, .stj-ne .ne-condolences h2, .stj-ne .ne-festival h2, .stj-ne .ne-follow h2 { font-size: 28px; }
	.stj-ne .ne-follow ul { flex-direction: column; }
	.stj-ne .ne-follow li + li { border-left: 0; }
	.stj-ne .ne-follow a { padding: 0; }
}

/* Green top band like the other hub pages (CR, 2026-11-19): forest green with the faded chapel wallpaper behind the
   heading row, reaching 92px into the panels so they straddle green and white. The band is .ne-head::before/::after
   (full width, clipped by .stj-ne), so it follows the heading's height at every width. */
.stj-ne { width: 100%; overflow-x: clip; }
.stj-ne > .ne-head, .stj-ne > .ne-main, .stj-ne > .ne-pair, .stj-ne > .ne-follow { width: min(1200px, calc(100% - 84px)); margin-left: auto; margin-right: auto; }
.stj-ne .ne-head { position: relative; isolation: isolate; }
.stj-ne .ne-head::before, .stj-ne .ne-head::after { content: ""; position: absolute; z-index: -1; top: -64px; bottom: -132px; left: -100vmax; right: -100vmax; pointer-events: none; }
.stj-ne .ne-head::before { background: #18382c; }
.stj-ne .ne-head::after { background: url(../home/pattern-01-chapel-980.webp) right top / 440px repeat; opacity: .19; -webkit-mask-image: linear-gradient(100deg, transparent 17%, #000); mask-image: linear-gradient(100deg, transparent 17%, #000); } /* same fade as the Sacraments hub */
.stj-ne .ne-main { position: relative; z-index: 1; }
.stj-ne .ne-head .ne-eyebrow { color: #e7cb91; }
.stj-ne .ne-head .ne-eyebrow::before { background: #e7cb91; }
.stj-ne .ne-head h1 { color: #f8f6ee; }
.stj-ne .ne-head .ne-bulletin { color: #f8f6ee; border-color: rgb(248 246 238 / .75); }
.stj-ne .ne-head .ne-bulletin .arrow { color: #e7cb91; }
.stj-ne .ne-head .ne-bulletin:hover { background: #f8f6ee; color: #18382c; }
@media (max-width: 999px) {
	.stj-ne { width: 100%; }
	.stj-ne > .ne-head, .stj-ne > .ne-main, .stj-ne > .ne-pair, .stj-ne > .ne-follow { width: calc(100% - 50px); }
	.stj-ne .ne-head::before, .stj-ne .ne-head::after { top: -48px; bottom: -112px; }
}
@media (max-width: 600px) {
	.stj-ne > .ne-head, .stj-ne > .ne-main, .stj-ne > .ne-pair, .stj-ne > .ne-follow { width: calc(100% - 40px); }
	.stj-ne .ne-head::before, .stj-ne .ne-head::after { top: -40px; bottom: -104px; }
}

/* Same warm page tint as the other hub pages (CR, 2026-11-19). The news panel stays white. */
.stj-ne { background: #f8f6ee; padding-bottom: 1px; }

/* Follow Us (CR, 2026-11-19): no external-link icon on Facebook / Instagram / YouTube (already understood).
   They still open in a new tab and say so to screen readers. */
.stj-ne .ne-follow .stj-ext-icon, .stj-ne .ne-follow .stj-sym-external { display: none; }
