:root {
  --navy-950: #07101f;
  --navy-900: #101a2b;
  --navy-850: #152238;
  --navy-800: #1b2b45;
  --line: #30425c;
  --gold: #d9b46d;
  --gold-light: #f0d391;
  --paper: #f8f5ee;
  --muted: #b7c1cf;
  --live: #d72e35;
  --success: #65c58f;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy-950); color: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); background: var(--paper); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(7, 16, 31, .94); backdrop-filter: blur(14px); }
.header-inner { width: min(1400px, calc(100% - 40px)); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 13px; }
.brand-name { font-size: 27px; font-weight: 780; letter-spacing: -.04em; color: var(--paper); }
.brand-name span { color: var(--gold); font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 650; }
.main-nav a { text-decoration: none; color: #d8e0e9; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-light); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--navy-850); color: #fff; padding: 9px 14px; border-radius: 9px; }

.hero { min-height: 580px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: 80px; padding-block: 90px; background: radial-gradient(circle at 76% 42%, rgba(217, 180, 109, .14), transparent 32%); }
.hero h1, .page-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.045em; margin: .15em 0; }
.hero p, .page-hero p, .lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 800; }
.eyebrow i, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 5px rgba(215, 46, 53, .15); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; cursor: pointer; }
.button.primary { background: var(--gold); color: var(--navy-950); }
.button.primary:hover, .button.primary:focus-visible { background: var(--gold-light); }
.button.ghost { border-color: #526681; background: var(--navy-900); color: var(--paper); }
.hero-mark { justify-self: center; }
.hero-mark img { width: min(300px, 30vw); filter: drop-shadow(0 26px 55px rgba(0, 0, 0, .48)); }

.section { padding-block: 70px; }
.section + .section { border-top: 1px solid #223450; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: .2em 0 0; }
.section-head > a { color: var(--gold); font-weight: 700; }
.parish-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.parish-card, .post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-900); box-shadow: 0 16px 40px rgba(0, 0, 0, .16); transition: transform .2s, border-color .2s; }
.parish-card:hover, .post-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.parish-card[hidden] { display: none; }
.parish-image { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-850); overflow: hidden; }
.parish-image img, .post-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card > a { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.status { display: inline-flex; align-items: center; position: absolute; top: 13px; left: 13px; border-radius: 999px; background: #536173; color: #fff; padding: 4px 10px; text-transform: uppercase; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.status.is-live { background: var(--live); }
.parish-body { padding: 18px 20px 22px; }
.parish-body .place { margin: 0; color: var(--gold); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.parish-body h3 { margin: .25em 0; font-size: 20px; line-height: 1.25; }
.parish-body h3 a, .post-card h3 a { text-decoration: none; }
.parish-body > p:last-child { margin: 0; color: #94a4b7; font-size: 14px; }
.post-card > div { padding: 22px; }
.post-card h3 { font-size: 21px; line-height: 1.28; }
.post-card p { color: var(--muted); font-size: 15px; }

.page-hero { padding-block: 72px 36px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 1050px; overflow-wrap: anywhere; }
.article { width: min(920px, calc(100% - 40px)); display: block; padding-bottom: 90px; }
.article-cover { display: block; width: 100%; max-height: 540px; object-fit: cover; border-radius: 20px; margin-bottom: 34px; }
.legacy-content, .prose-card { min-width: 0; font-size: 18px; color: #dce3eb; overflow-wrap: anywhere; }
.legacy-content h2, .legacy-content h3, .legacy-content h4 { color: var(--paper); line-height: 1.22; margin: 1.8em 0 .65em; scroll-margin-top: 110px; }
.legacy-content h2 { font-size: clamp(28px, 4vw, 42px); }
.legacy-content h3 { font-size: clamp(23px, 3vw, 32px); }
.legacy-content h4 { font-size: clamp(19px, 2.5vw, 25px); }
.legacy-content p, .legacy-content li { max-width: 78ch; }
.legacy-content a { color: var(--gold-light); }
.legacy-content img { display: block; max-width: 100%; border-radius: 12px; }
.legacy-content figure { margin: 30px auto; max-width: 100%; }
.legacy-content figcaption { margin-top: 8px; color: #9cabbc; font-size: 14px; text-align: center; }
.legacy-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.legacy-content th, .legacy-content td { padding: 10px 12px; border: 1px solid var(--line); }
.content-section { display: block; width: 100%; margin-block: 26px; }
.content-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 22px; min-width: 0; }
.content-grid > .content-grid { flex: 1 1 100%; }
.content-column { min-width: 0; flex: 1 1 100%; }
.content-column-25 { flex-basis: calc(25% - 17px); }
.content-column-33 { flex-basis: calc(33.333% - 15px); }
.content-column-50 { flex-basis: calc(50% - 11px); }
.content-column-66 { flex-basis: calc(66.666% - 8px); }
.content-column-75 { flex-basis: calc(75% - 6px); }
.content-price-card { height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--navy-900); }
.content-price { color: var(--gold); font-size: 26px; font-weight: 800; }
.content-button { display: inline-flex; padding: 10px 16px; border-radius: 9px; background: var(--gold); color: var(--navy-950) !important; font-weight: 800; text-decoration: none; }
.content-anchor { display: block; position: relative; top: -100px; visibility: hidden; }
.aligncenter { margin-inline: auto; text-align: center; }
.alignleft { margin-right: auto; }
.alignright { margin-left: auto; }
.notice { padding: 20px 24px; margin-bottom: 28px; border-left: 5px solid var(--gold); border-radius: 8px; background: var(--navy-850); }
.notice strong { font-size: 20px; }
.notice a { color: var(--gold); }

.watch-card { margin-bottom: 38px; border: 1px solid #3b506d; border-radius: 20px; background: var(--navy-900); overflow: hidden; box-shadow: var(--shadow); }
.watch-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px; }
.watch-head .status { position: static; }
.watch-head h2 { margin: .25em 0 0; font-size: clamp(22px, 3vw, 30px); }
.watch-head p { margin: 0; color: var(--gold); }
.source-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.source-list[hidden] { display: none; }
.source-button { min-width: 170px; max-width: 250px; display: grid; gap: 2px; padding: 11px 14px; border: 1px solid #536681; border-radius: 10px; background: var(--navy-850); text-align: left; cursor: pointer; }
.source-button span { font-weight: 800; }
.source-button small { color: var(--muted); }
.source-button:hover, .source-button:focus-visible, .source-button.is-active { border-color: var(--gold); background: #243550; }
.video-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #020407; overflow: hidden; }
.video-shell video, .external-stage, .external-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.video-shell video[hidden], .external-stage[hidden] { display: none; }
.player-message { position: absolute; z-index: 4; right: 14px; bottom: 56px; display: flex; align-items: center; gap: 8px; min-width: 54px; min-height: 34px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(7, 16, 31, .84); box-shadow: 0 8px 24px rgba(0, 0, 0, .38); backdrop-filter: blur(8px); }
.player-message[hidden] { display: none; }
.player-message .button[hidden] { display: none; }
.player-message strong, .player-message small { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.player-dots { display: inline-flex; align-items: center; gap: 5px; }
.player-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); animation: player-dot 1.15s ease-in-out infinite; }
.player-dots i:nth-child(2) { animation-delay: .16s; }
.player-dots i:nth-child(3) { animation-delay: .32s; }
.player-message.is-error { inset: 0; right: 0; bottom: 0; flex-direction: column; justify-content: center; min-width: 0; padding: 24px; border: 0; border-radius: 0; background: radial-gradient(circle, rgba(21, 34, 56, .82), rgba(2, 4, 7, .95)); text-align: center; }
.player-message.is-error .player-dots { display: none; }
.player-message.is-error strong, .player-message.is-error small { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.player-message.is-error strong { color: #ff9ea2; font-size: clamp(20px, 3vw, 30px); }
.player-message.is-error small { color: var(--muted); max-width: 620px; }
.player-message.is-error .button { margin-top: 8px; }
.player-unmute { position: absolute; z-index: 5; left: 14px; bottom: 56px; min-height: 36px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(7, 16, 31, .84); color: #fff; font-weight: 750; cursor: pointer; backdrop-filter: blur(8px); }
.player-unmute[hidden] { display: none; }
.parish-mass-times { margin: 0 0 42px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--navy-900); }
.parish-mass-times .section-head { margin-bottom: 18px; }
.parish-mass-times .section-head h2 { font-size: clamp(28px, 4vw, 38px); }
@keyframes player-dot { 0%, 70%, 100% { opacity: .32; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

.filters { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 8px 24px; align-items: end; margin-bottom: 32px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-900); }
.filters > label:first-child { grid-column: 1 / -1; color: var(--gold); font-size: 14px; font-weight: 750; }
.filters input[type=search], .portal-form input, .portal-form textarea, .portal-form select { width: 100%; min-height: 52px; border: 1px solid #4a5c75; border-radius: 10px; background: var(--navy-950); color: #fff; padding: 10px 14px; }
.live-filter { display: flex; min-height: 52px; align-items: center; gap: 8px; font-weight: 700; }
.schedule { display: grid; gap: 22px; }
.schedule > section { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--navy-900); }
.schedule h2 { margin: 0; }
.schedule h2 a { text-decoration: none; }
.schedule p { margin: 0; color: var(--gold); }
.times { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.times > div { display: grid; min-width: 130px; padding: 10px 12px; border-radius: 10px; background: var(--navy-850); }
.times span, .times small { color: var(--muted); font-size: 12px; }
.times strong { font-size: 20px; }

.portal-form-section, .web-privacy-update { margin-top: 44px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-900); }
.portal-form-section h2, .web-privacy-update h2 { margin-top: 0; }
.portal-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-form label { display: grid; gap: 6px; color: #dce4ed; font-weight: 650; }
.portal-form textarea { resize: vertical; min-height: 130px; }
.portal-form select { appearance: auto; }
.form-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.form-consent input { width: 20px; min-height: 20px; margin-top: 4px; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.portal-form .button { justify-self: start; }
.form-status { min-height: 1.6em; margin: 0; color: var(--muted); }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: #ff9ea2; }
.privacy .updated { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #050b15; padding: 52px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid p, .footer-grid a, .link-button { color: #9eacbd; }
.footer-grid nav, .footer-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand { margin-bottom: 12px; }
.link-button { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.consent-banner { position: fixed; z-index: 80; right: 20px; bottom: 20px; left: 20px; max-width: 1100px; margin-inline: auto; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #5b6f8c; border-radius: 16px; background: #101b2d; box-shadow: 0 24px 80px #000; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 4px 0 0; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid #87efad; outline-offset: 4px; }

@media (max-width: 1050px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 82px; right: 20px; left: 20px; flex-direction: column; align-items: stretch; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-900); box-shadow: 0 20px 50px #000; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .parish-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-head { align-items: flex-start; flex-direction: column; }
  .source-list { width: 100%; justify-content: flex-start; }
}

@media (max-width: 700px) {
  .shell, .header-inner, .article { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 70px; }
  .brand img { width: 46px; height: 46px; border-radius: 11px; }
  .brand-name { font-size: 23px; }
  .main-nav { top: 70px; }
  .hero { min-height: calc(100svh - 70px); align-content: center; padding-block: 62px; gap: 20px; }
  .hero h1 { font-size: 48px; }
  .section { padding-block: 48px; }
  .section-head { align-items: start; flex-direction: column; }
  .parish-grid, .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-hero { padding-block: 48px 24px; }
  .article { padding-bottom: 60px; }
  .legacy-content { font-size: 17px; }
  .content-grid { display: block; }
  .content-column { margin-bottom: 20px; }
  .source-button { max-width: none; width: 100%; }
  .filters, .form-grid { grid-template-columns: 1fr; }
  .filters > label:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { width: 100%; }
  .consent-actions .button { flex: 1; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 20px; }
  .nav-toggle { padding-inline: 10px; }
  .hero h1 { font-size: 41px; }
  .video-shell { aspect-ratio: 16 / 10; }
  .consent-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
