/* Parish frontend, November 2026. Loaded after the existing theme. */
:root {
 --ink: #1d1d1f;
 --muted: #55555b;
 --soft: #f5f5f7;
 --line: #d8d8dc;
 --color1: #1d1d1f;
 --color2: #1d1d1f;
 --color3: #55555b;
 --font-color: #1d1d1f;
 --font-size: 18px;
 --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
 --hx-font-family: var(--font-family);
 --hx2-font-family: var(--font-family);
 --hx-font-color: #1d1d1f;
 --sidebar-background: #f5f5f7;
 --tile-background: #f5f5f7;
 --tile-hx-font-color: #1d1d1f;
 --footer-background: #f5f5f7;
 --footer-hx-color: #1d1d1f;
}
html { background: #fff; }
body {
 margin: 0;
 padding: 0 !important;
 background: #fff;
 color: var(--ink);
 font: 400 18px/1.7 var(--font-family);
 -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: .2em; }
a:hover { color: #000; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
 outline: 3px solid #1d1d1f;
 outline-offset: 4px;
}
h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-family) !important;
 font-weight: 650;
 color: var(--ink);
 line-height: 1.3;
 letter-spacing: -.025em;
 text-transform: none !important;
}
h1 { font-size: clamp(28px, 3vw, 44px); }
h2 { font-size: clamp(25px, 2.4vw, 34px); }
h3 { font-size: 23px; }
.container { max-width: none; width: calc(100% - clamp(32px, 5vw, 96px)); padding-inline: 0; }
.parish-skip { position: absolute; top: -100px; left: 16px; z-index: 1100; background: white; color: #000; padding: 12px; }
.parish-skip:focus { top: 8px; }
.parish-header.fixed-top { position: static; background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); padding: 0; height: auto; }
.parish-header .bg { display: none; }
.parish-header .topbar { background: var(--soft); color: var(--ink); padding: 4px 0; font-size: 14px; height: auto; min-height: 0; }
.parish-header .topbar .topaddress { color: var(--muted); line-height: 1.6; font-size: 14px; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.parish-header .topbar a { color: var(--ink); }
.parish-header .topaddress span { padding: 0; }
.parish-header .topaddress img { max-height: 24px; width: auto; }
.parish-header > .container { padding: 28px 0 22px; text-align: center; }
.parish-header > .container > .navbar-brand {
 display: block;
 color: var(--ink);
 font: 650 clamp(24px, 2.3vw, 34px)/1.25 var(--font-family);
 letter-spacing: -.04em;
 margin: 0;
 padding: 0;
 white-space: normal;
}
.parish-header .navbar-brand small { font: 500 12px/1.6 var(--font-family); letter-spacing: .12em; color: var(--muted); }
.parish-header .navbar-brand small br { display: none; }
.parish-header .search .form-inline { justify-content: flex-end; flex-wrap: nowrap; }
.parish-header .search input { font: inherit; font-size: 15px; background: white; color: var(--ink); height: 44px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; }
.parish-header .search input::placeholder { color: var(--muted); }
.parish-header .search button { font: 600 15px/1.5 var(--font-family); color: var(--ink); background: transparent; border: 0; min-height: 44px; height: auto; }
#header_navbar { background: #fff; border-top: 1px solid #e8e8ec; padding: 0 24px; min-height: 50px; }
#header_navbar > .navbar-brand { display: none; }
#header_navbar .navbar-nav { width: 100%; justify-content: center; flex-wrap: wrap; float: none; }
#header_navbar .navbar-nav > li { flex: 0 1 auto; }
#header_navbar .navbar-nav > li > a { padding: 14px 12px; min-height: 50px; font: 500 17px/1.4 var(--font-family); color: var(--ink); text-transform: none; }
#header_navbar .navbar-nav > li > a > .my-i, #header_navbar .navbar-nav > li > a > br { display: none; }
#header_navbar .navbar-nav > li > a:hover, #header_navbar .navbar-nav > li.active > a { background: var(--soft); color: #000; }
#header_navbar .dropdown-menu { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #00000014; width: 260px !important; }
#header_navbar .dropdown-menu a { display: block; min-height: 44px; padding: 10px 14px; font: 400 17px/1.45 var(--font-family); white-space: normal; }
.page-with-sidebar { display: grid; grid-template-columns: clamp(240px, 20vw, 300px) minmax(0, 1fr); gap: clamp(24px, 3vw, 54px); padding: 32px 0 56px; margin: 0; }
.page-with-sidebar > .content { grid-column: 1 / -1; }
.page-with-sidebar > .sidebar { width: auto; padding: 0; background: transparent; border: 0; min-width: 0; float: none; }
.page-with-sidebar > .page-content { width: auto; margin: 0; padding: 0; min-width: 0; float: none; }
.page-content > .content, .page-with-sidebar > .content { font: 400 18px/1.8 var(--font-family); text-align: left; padding: 0; max-width: 100%; overflow-wrap: anywhere; }
.content-home { background: white; border: 0; border-radius: 0; box-shadow: none; }
.content p, .content li { font-size: 18px; line-height: 1.75; text-align: left; }
.content a { color: var(--ink); }
.content img { max-width: 100%; height: auto; }
.content .page-title-c { margin-bottom: 24px; }
.content .page-title-c h1, .content .page-title-c h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 650; }
.content h2.home { font-size: 28px; line-height: 1.3; margin: 30px 0 16px; text-align: left; }
.content h2.home a { color: var(--ink); }
.content .btn, .content .button { font-size: 16px; min-height: 44px; line-height: 1.5; padding: 10px 14px; }
.content .list2 { border-bottom: 1px solid var(--line); padding: 20px 0; }
.content .list2 h3 { font-size: 24px; line-height: 1.4; }
.content .list2 p.date, .content .date { font-size: 16px; color: var(--muted); }
.content .list { border-bottom: 1px solid var(--line); margin: 0; }
.content .list p { padding: 10px 0; }
.content .nav-pills { flex-wrap: wrap; }
.content .nav-pills li { width: auto; max-width: 100%; }
.content .nav-pills a { min-height: 48px; padding: 10px 15px; font-size: 17px; background: var(--soft); }
.content .tab-content { line-height: 1.8; }
.content .tab-pane { scroll-margin-top: 20px; }
.content .pagination { flex-wrap: wrap; }
.content .page-link { min-height: 44px; }
.content input, .content select, .content textarea { font-size: 18px; max-width: 100%; }
.content input:not([type=checkbox]):not([type=radio]), .content select { min-height: 44px; }
#menu_sidebar { padding: 0; margin-bottom: 0; }
#menu_sidebar > .navbar-brand, #menu_sidebar > .navbar-toggler { display: none; }
#menu_sidebar .navbar-nav:empty { display: none; }
.parish-schedule { background: var(--soft); border-radius: 12px; padding: 20px; }
.parish-schedule .tile { padding: 0 0 20px; margin: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; border-radius: 0; text-align: left; }
.parish-schedule .tile:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.parish-schedule h2 { font-size: 23px; margin: 0 0 16px; text-align: left; }
.parish-schedule p { font-size: 18px; line-height: 1.65; margin-bottom: 12px; }
.parish-schedule .button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; margin-top: 4px; border: 0; border-radius: 0; font-size: 16px; color: var(--ink); background: transparent; text-decoration: underline; gap: 8px; }
.parish-services { margin: 0 0 28px; }
.parish-services > h2 { font-size: 22px; margin: 0 0 14px; }
.parish-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; grid-auto-rows: 1fr; }
.parish-link-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 108px; height: 100%; border: 1px solid #e5e5e9; border-radius: 12px; background: var(--soft); }
.parish-link-card:hover { background: #eaeaec; border-color: #bcbcc2; text-decoration: none; }
.parish-link-card > span:nth-child(2) { min-width: 0; }
.parish-link-card strong { display: block; font-size: 18px; line-height: 1.4; font-weight: 600; }
.parish-link-card small { display: block; font-size: 16px; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.parish-card-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: white; font-size: 20px; }
.parish-card-arrow { margin-left: auto; flex: none; }
.parish-link-weekly { background: #f0f0f2; }
.parish-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.parish-section-heading h2 { font-size: 30px; margin: 0; }
.parish-all-news { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; gap: 12px; text-decoration: underline; }
.parish-news-item { display: grid; grid-template-columns: clamp(175px, 17vw, 235px) minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.parish-news-item .parish-news-image img { width: 100%; height: 150px; object-fit: cover; border-radius: 9px; padding: 0; }
.parish-news-item time { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.parish-news-item h3 { font-size: 24px; line-height: 1.4; margin: 6px 0; }
.parish-news-item p { color: var(--muted); margin: 8px 0 0; }
footer { background: var(--soft); color: var(--muted); border-top: 1px solid var(--line); padding: 38px 0 0; }
footer > .container { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
footer h4 { color: var(--ink); font-size: 20px; text-transform: none; margin: 0 0 14px; }
footer p, footer li, footer .footer-box-text { font-size: 17px; line-height: 1.6; }
footer a { color: var(--ink); }
footer .footer-box a { display: inline-block; min-height: 44px; padding: 6px 0; }
footer .footer-box { padding: 0 18px 24px; }
footer .footer-box ul { list-style: none; padding-left: 0; }
footer .footer-box li { border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
footer .copyright { border-top: 1px solid var(--line); background: transparent; padding: 18px 0; margin-top: 12px; color: var(--muted); }
footer .copyright p { font-size: 15px; margin: 0; }
.logotypes-bg { background: #fff; border-top: 1px solid var(--line); padding: 24px 0; }
.logotypes img { max-height: 54px; width: auto; }
#simplecookienotification_v01 { background: #1d1d1f !important; color: #fff; }
#simplecookienotification_v01 > div { padding: 12px 120px 12px 16px !important; font-size: 16px !important; margin: 0 !important; }
#simplecookienotification_v01 a { color: #fff; text-decoration: underline; }
#simplecookienotification_v01 #okbutton { min-height: 44px; min-width: 100px; font-size: 16px !important; display: inline-flex; justify-content: center; align-items: center; top: 8px !important; }
.welcome:empty { display: none; }
body .wow { animation: none !important; visibility: visible !important; }
@media (max-width: 1100px) {
 .parish-card-icon { display: none; }
 .parish-link-card { min-height: 124px; }
 .parish-news-item { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
}
@media (min-width: 768px) {
 #menu_mobile2.collapse { display: block; }
 #header_navbar .navbar-toggler { display: none; }
}
@media (max-width: 767.98px) {
 .container { width: calc(100% - 32px); }
 .parish-header > .container { padding: 20px 0 16px; }
 .parish-header > .container > .navbar-brand { font-size: 24px; line-height: 1.3; text-align: center; }
 .parish-header .topbar .topaddress { font-size: 14px; justify-content: center; }
 .parish-header .search .form-inline { justify-content: center; }
 .parish-header .topbar .topaddress span { font-size: 14px; }
 .parish-header .topbar .topaddress span:nth-child(3) { display: none; }
 #header_navbar { display: block; padding: 8px 16px; }
 #header_navbar .navbar-toggler { display: inline-flex; position: static; align-items: center; justify-content: center; float: none !important; height: 48px; width: 100%; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; margin: 0; }
 #header_navbar .navbar-toggler:after { content: "Menu parafii"; margin-left: 10px; font-size: 18px; }
 #menu_mobile2 { position: static; width: 100%; max-height: none; padding-top: 8px; background: white; }
 #menu_mobile2:not(.show):not(.collapsing) { display: none; }
 #menu_mobile2 .navbar-nav { display: block; margin: 0; }
 #menu_mobile2 .navbar-nav > li > a { min-height: 48px; display: block; padding: 12px 10px; font-size: 18px; }
 #menu_mobile2 .dropdown-menu { position: static !important; width: 100% !important; margin: 0 0 8px; box-shadow: none; background: var(--soft); }
 #menu_mobile2 .dropdown-menu a { font-size: 17px; min-height: 44px; }
 .page-with-sidebar { display: flex; flex-direction: column; gap: 24px; padding: 24px 0 36px; }
 .page-with-sidebar > .sidebar, .page-with-sidebar > .page-content { width: 100%; max-width: 100%; }
 .page-content > .content { padding: 0; font-size: 18px; }
 .parish-news-item { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
 .parish-news-item .parish-news-image img { height: 110px; }
 .parish-news-item h3 { font-size: 22px; }
 .parish-services > h2 { font-size: 22px; }
 .parish-link-card strong { font-size: 18px; }
 .parish-link-card small { font-size: 16px; }
 .content h2.home { font-size: 26px; }
 footer .row { margin-inline: -12px; }
 footer .footer-box { width: 100%; max-width: 100%; flex: 0 0 100%; padding: 0 12px 20px; }
 footer .copyright .text-right { text-align: left !important; margin-top: 10px; }
 .content .nav-pills li { width: 100%; }
 .content .nav-pills a { text-align: left; width: 100%; }
}
@media (max-width: 540px) {
 .parish-link-grid { grid-template-columns: 1fr; }
 .parish-link-card { min-height: 128px; }
 .parish-card-icon { display: grid; }
 .parish-news-item { grid-template-columns: 1fr; }
 .parish-news-item .parish-news-image img { height: auto; aspect-ratio: 16 / 9; }
 .parish-header .topbar .topaddress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
 *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
 .parish-header, .sidebar, .parish-services, footer, #simplecookienotification_v01, .logotypes-bg { display: none !important; }
 .container { width: 100%; }
 .page-with-sidebar { display: block; }
 .content { color: #000; font-size: 12pt; }
}
.parish-card-icon svg { width: 22px; height: 22px; display: block; }
.parish-header > .container > .navbar-brand small { display: block; margin-top: 8px; }
.parish-schedule .button { background-image: none; font-style: normal; box-shadow: none; }
.parish-schedule .tile p strong { color: var(--muted); font-weight: 600; }
@media (max-width: 767.98px) {
 .parish-header > .container > .navbar-brand small { display: block; font-size: 12px; }
 .parish-header .search { display: block; }
}
.parish-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.parish-header .search input:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 3px; }
.sidebar #menu_sidebar .navbar-collapse { display: block; }
.parish-sidebar-extra { margin-top: 24px; }
.parish-sidebar-extra .tile, .parish-sidebar-extra .rss { background: var(--soft); border: 0; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.parish-sidebar-extra h3 { font-size: 22px; }
.parish-sidebar-extra p, .parish-sidebar-extra li { font-size: 18px; line-height: 1.65; }
.parish-sidebar-extra a { display: inline-block; min-height: 44px; }

/* Integration corrections: override the legacy theme's narrow-screen header. */
.parish-header > .container { display: block; }
.parish-header > .container > .navbar-brand { display: inline-flex; align-items: center; gap: 16px; text-align: left; font-size: clamp(24px, 2.3vw, 34px); }
.parish-header > .container > .navbar-brand::before { content: "✝"; display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; color: white; background: var(--ink); font: 400 30px/1 var(--font-family); }
.parish-header > .container > .navbar-brand .parish-brand-text { display: block; }
.parish-header .navbar-brand .parish-brand-text > span { line-height: inherit; }
#header_navbar { position: static; margin: 0; width: 100%; box-shadow: none; }
#header_navbar .navbar-toggler { color: var(--ink); }
#header_navbar .navbar-nav > li.active > a { background: transparent; box-shadow: inset 0 -2px var(--ink); }
.parish-schedule p { line-height: 1.65; }
.page-content .content .page-title-c { padding: 0 0 20px; }
.page-content .content .page-title-c h1 { text-align: left; border-bottom: 1px solid var(--line); padding-bottom: 16px; line-height: 1.3; }
.parish-news-item h3 { text-transform: none !important; }
@media (max-width: 767.98px) {
 .parish-header .topbar { display: block; margin: 0; }
 .parish-header .topbar .container { display: block; }
 .parish-header .topbar .topaddress { display: none; }
 .parish-header .search { width: 100%; max-width: 100%; flex: 0 0 100%; }
 .parish-header .search form { float: none; display: flex; width: 100%; }
 .parish-header .search input { flex: 1; width: 0; }
 .parish-header > .container > .navbar-brand { font-size: 23px; gap: 12px; }
 .parish-header > .container > .navbar-brand::before { width: 42px; height: 42px; flex-basis: 42px; font-size: 26px; }
 #header_navbar .navbar-toggler i { color: var(--ink); font-size: 20px; }
 #menu_mobile2 { height: auto; overflow: visible; }
 #header_navbar .navbar-nav li ul li a { padding: 12px 20px !important; }
 .page-with-sidebar > .page-content { order: 0; }
 .page-with-sidebar > .sidebar { order: 1; }
 .parish-link-card { min-height: 108px; }
 .parish-header .navbar-brand small { letter-spacing: .08em; }
 .content table { display: block; max-width: 100%; overflow-x: auto; }
 .content iframe { max-width: 100%; }
}

.parish-header .navbar-brand .parish-brand-text { line-height: 1.3; }
#simplecookienotification_v01 #okbutton { color: #000 !important; }
@media (max-width: 767.98px) {
 #simplecookienotification_v01 > div { padding: 12px 16px !important; text-align: left; }
 #simplecookienotification_v01 p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
 #simplecookienotification_v01 #okbutton { position: static !important; }
}
