/* Selected visual direction: Beseda in svetloba, 27 October 2026. */
:root { --evm-paper: #f7f4ee; --evm-white: #fcfbf8; --evm-ink: #242822; --evm-muted: #666862; --evm-red: #a32f35; --evm-red-hover: #842329; --evm-line: #d8d4cb; }
body.evm-theme { background: var(--evm-white); }
.evm-theme .evm-header.site-header { background: var(--evm-white); border-bottom: 1px solid #e9e5dd; }
.evm-theme .evm-header-inner { min-height: 136px; gap: 24px; }
.evm-theme .evm-brand img { height: 120px; max-width: 210px; }
.evm-theme .evm-navigation { gap: 20px; }
.evm-theme .evm-menu { gap: 22px; }
.evm-theme .evm-menu > .current-menu-item > a, .evm-theme .evm-menu > .current-menu-ancestor > a { color: var(--evm-red); text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 2px; }
.evm-theme .evm-support { padding-left: 24px; font-size: 18px; }
.evm-header-search { position: relative; flex: 0 0 auto; }
.evm-header-search summary { list-style: none; display: grid; place-items: center; width: 44px; height: 48px; cursor: pointer; }
.evm-header-search summary::-webkit-details-marker { display: none; }
.evm-header-search .evm-icon { width: 22px; height: 22px; }
.evm-header-search-panel { position: absolute; right: 0; top: calc(100% + 24px); width: 410px; padding: 24px; background: var(--evm-white); border: 1px solid var(--evm-line); }
.evm-header-search-panel input { flex: 1; }
.evm-theme .evm-page-heading { padding: 58px 0 24px; border: 0; background: transparent; }
.evm-theme .evm-page-heading h1 { font-size: clamp(36px,4.4vw,62px); line-height: 1.2; }
.evm-theme:not(.evm-home) #primary { padding-top: 32px; }
.evm-theme .evm-builder-content > .vc_row { padding-block: 48px !important; }
.evm-theme .entry-content { line-height: 1.8; }
.evm-theme .entry-content blockquote { border-left-width: 2px; background: transparent; }
.evm-theme .evm-section-nav { padding-bottom: 20px; margin-bottom: 36px; }
.evm-theme .evm-page-contents { background: var(--evm-paper); border-width: 0 0 0 2px; }
.evm-theme .evm-existing-home { background: var(--evm-white); }
.evm-theme .evm-existing-home .entry-content > .vc_row { padding-block: 88px !important; }
.evm-theme .evm-existing-home .entry-content > .evm-slider-row { padding: 0 !important; }
.evm-theme .evm-existing-home .entry-content > .vc_row:not(.evm-slider-row) { background-color: var(--evm-white) !important; }
.evm-theme .evm-existing-home .cms-custom-heading, .evm-theme .evm-existing-home .cms-heading-inner { text-align: left !important; }
.evm-theme .evm-existing-home .cms-heading-inner { text-transform: none; font-size: clamp(32px,3.5vw,48px) !important; }
.evm-theme .evm-existing-home .cms-heading-inner.evm-heading-sentence { text-transform: lowercase; }
.evm-theme .evm-existing-home .evm-heading-sentence::first-letter { text-transform: uppercase; }
.evm-theme .evm-existing-home .cms-heading-inner em { color: inherit; }
.evm-theme .evm-existing-home .vc_col-sm-3 h2 { font-size: 24px !important; }
.evm-theme .evm-existing-home .vc_col-sm-6 .cms-heading-inner { font-size: 36px !important; }
.evm-theme .evm-existing-home .vc_images_carousel img { border-radius: 0; }
/* The original MEC widget is rearranged into an open, ruled programme. */
.evm-theme .evm-existing-home .entry-content > .evm-home-agenda { padding-block: 76px 64px !important; background: var(--evm-paper) !important; }
.evm-theme .evm-home-agenda .cms-custom-heading { max-width: none !important; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; position: relative; padding-top: 24px; margin-bottom: 34px; }
.evm-theme .evm-home-agenda .cms-custom-heading::before { content: ''; position: absolute; left: 0; top: 0; width: 44px; height: 3px; background: var(--evm-red); }
.evm-theme .evm-home-agenda .cms-heading-inner { font-size: clamp(30px,4.5vw,64px) !important; }
.evm-theme .evm-home-agenda .evm-agenda-all { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; min-height: 44px; font-size: 15px; text-decoration: none !important; }
.evm-agenda-all::after { content: ''; display: block; width: 20px; height: 20px; background: var(--evm-red); mask: url('../icons/arrow-right.svg') center/contain no-repeat; -webkit-mask: url('../icons/arrow-right.svg') center/contain no-repeat; }
.evm-theme .evm-home-agenda .mec-event-grid-minimal > .row { display: block; }
.evm-theme .evm-home-agenda .mec-event-grid-minimal > .row > div { float: none; width: 100%; }
.evm-theme .evm-home-agenda .mec-event-article { display: flex; align-items: center; gap: 44px; margin: 0; padding: 34px 48px 34px 0; background: transparent; border: 0; border-top: 1px solid var(--evm-line); position: relative; }
.evm-home-agenda .mec-event-article::after { content: ''; position: absolute; right: 0; width: 24px; height: 24px; background: var(--evm-red); mask: url('../icons/arrow-right.svg') center/contain no-repeat; -webkit-mask: url('../icons/arrow-right.svg') center/contain no-repeat; pointer-events: none; }
.evm-theme .evm-home-agenda .mec-event-grid-minimal .mec-event-date { align-self: stretch; display: flex; flex-direction: column; justify-content: center; flex: 0 0 170px; width: 170px; padding: 0 32px 0 0; border: 0; border-right: 1px solid var(--evm-line); background: transparent !important; box-shadow: none; text-align: left; border-radius: 0; }
.evm-theme .evm-home-agenda .mec-event-date > span:first-child { font: 400 62px/1.2 var(--evm-serif); color: var(--evm-red); }
.evm-theme .evm-home-agenda .mec-event-date .evm-date-month { margin-top: 8px; font: 400 16px/1.5 var(--evm-sans); color: var(--evm-muted); text-transform: uppercase; }
.evm-theme .evm-home-agenda .event-detail-wrap { margin: 0; padding: 0; }
.evm-theme .evm-home-agenda .mec-event-grid-minimal .mec-event-title { margin: 0 0 16px; font: 400 34px/1.4 var(--evm-serif) !important; letter-spacing: -.025em; }
.evm-theme .evm-home-agenda .mec-event-detail { font-size: 17px; line-height: 1.5; color: var(--evm-muted); }
.evm-home-agenda .mec-event-loc-place { display: flex; align-items: center; gap: 12px; }
.evm-home-agenda .mec-event-loc-place::before { content: ''; flex: 0 0 20px; height: 20px; background: var(--evm-red); mask: url('../icons/map-pin.svg') center/contain no-repeat; -webkit-mask: url('../icons/map-pin.svg') center/contain no-repeat; }
/* One accessible tab panel per existing parish row; no content is discarded. */
.evm-parish-directory { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 32px; }
.evm-parish-directory .evm-parish-tabs { flex-basis: 100%; width: 100%; }
.evm-parishes .evm-page-heading h1 { text-transform: lowercase; font-size: clamp(36px,5.5vw,80px); }
.evm-parishes .evm-page-heading h1::first-letter { text-transform: uppercase; }
.evm-parish-tabs { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 14px; }
.evm-theme .evm-parish-tab { flex: 1 0 auto; min-width: 140px; min-height: 56px; padding: 14px 28px; border: 0; border-right: 2px solid var(--evm-white); border-radius: 0; background: #efebe3; color: var(--evm-ink); font: 400 18px/1.5 var(--evm-serif); }
.evm-theme .evm-parish-tab[aria-selected="true"] { background: var(--evm-red); color: #fff; }
.evm-theme .evm-parish-tab:hover:not([aria-selected="true"]) { background: #e3ded4; }
.evm-theme .evm-parish-all { display: block; margin: 12px 0 0 auto; padding: 6px 0; min-height: 44px; border: 0; background: transparent; color: var(--evm-red); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.evm-theme .evm-parish-select { display: block; width: 270px; appearance: none; padding-right: 46px; background: var(--evm-paper) url('../icons/chevron-down.svg') right 14px center/20px no-repeat; }
.evm-theme.evm-parishes .evm-parishes-enhanced > .evm-parish-panel { align-items: flex-start; padding: 0 0 48px !important; border: 0; margin-bottom: 32px; }
.evm-theme .evm-parishes-enhanced > .evm-parish-panel[hidden], .evm-parish-directory [hidden] { display: none !important; }
.evm-theme .evm-parish-panel .evm-parish-photo { order: 0; }
.evm-theme .evm-parish-panel .evm-parish-copy { order: 1; }
.evm-theme .evm-parish-panel > .evm-parish-photo > .vc_column-inner { padding: 0 40px 0 0 !important; }
.evm-theme .evm-parish-panel > .evm-parish-copy > .vc_column-inner { padding: 0 !important; }
.evm-theme .evm-parish-panel .wpb_single_image img { width: 100%; border-radius: 0; }
.evm-theme.evm-parishes .evm-parish-panel h3 { font-size: clamp(27px,2.7vw,36px); line-height: 1.35; margin: 0 0 24px; }
.evm-theme.evm-parishes .evm-parish-panel h3 + p { padding: 0 0 28px; margin-bottom: 28px; background: transparent; border: 0; border-bottom: 1px solid var(--evm-red); font-size: 16px; line-height: 2; }
.evm-theme.evm-parishes .evm-parish-panel p { font-size: 17px; line-height: 1.8; }
.evm-theme.evm-parishes .evm-parish-panel p a { overflow-wrap: anywhere; }
.evm-theme.evm-parishes .evm-parish-panel i { color: var(--evm-red); margin-right: 9px; }
.evm-theme.evm-parishes .evm-parishes-enhanced > .evm-parish-intro { border-top: 1px solid var(--evm-line); border-bottom: 0; padding-block: 40px !important; }
.evm-theme .evm-parish-intro .wpb_text_column { max-width: 850px; }
/* Apply the same restrained hierarchy to the rest of the site. */
.evm-theme .gv-blog-loop, .evm-theme .gv-blog-single { background: transparent; }
.evm-theme :is(#secondary,.gv-sidebar) .widget { padding: 24px 0; background: transparent; border: 0; border-top: 1px solid var(--evm-line); }
.evm-theme .gv-blog-loop .post-thumbnail img { background: var(--evm-paper); }
.evm-theme .mec-single-event > .mec-single-title { font: 400 clamp(32px,5vw,72px)/1.18 var(--evm-serif) !important; padding: 0 15px; margin: 0 0 42px; }
.evm-theme .mec-single-event .mec-events-event-image img { max-height: 850px; background: var(--evm-paper); }
.evm-theme .mec-single-event .mec-event-meta, .evm-theme .mec-single-event .mec-event-social { border: 0; background: var(--evm-paper); padding: 28px 32px; }
.evm-theme .mec-single-event .mec-event-meta > div { padding: 22px 0; }
.evm-theme .mec-single-event .mec-event-meta h3 { font-size: 23px; }
.evm-theme.evm-contacts .entry-content .vc_col-sm-4 > .vc_column-inner { background: transparent; border-top: 1px solid var(--evm-line); }
.evm-theme .evm-footer { background: var(--evm-paper); }
.evm-theme .evm-hero-content { text-align: left; width: min(1080px,calc(100% - 64px)); }
.evm-theme .evm-hero-content p { margin-left: 0; }
@media (min-width:1251px) {
 .evm-theme .evm-menu a { font-size: 18px; }
}
@media (min-width:1101px) and (max-width:1250px) {
 .evm-theme .evm-menu { gap: 12px; }
 .evm-theme .evm-navigation { gap: 12px; }
 .evm-theme .evm-support { font-size: 16px; padding-left: 14px; }
 .evm-theme .evm-brand img { height: 100px; }
}
@media (max-width:1100px) {
 .evm-theme .evm-header-inner { min-height: 100px; gap: 0 24px; }
 .evm-theme .evm-brand img { height: 90px; }
 .evm-theme .evm-support { padding-left: 0; }
 .evm-header-search { margin-top: 18px; }
 .evm-header-search-panel { position: static; width: 100%; margin-top: 12px; }
}
@media (max-width:767px) {
 .evm-theme .evm-header-inner { min-height: 90px; }
 .evm-theme .evm-brand img { height: 80px; }
 .evm-theme .evm-page-heading { padding: 32px 0 16px; }
 .evm-theme .evm-page-heading h1 { font-size: 36px; }
 .evm-theme:not(.evm-home) #primary { padding-top: 24px; }
 .evm-theme .evm-existing-home .entry-content > .vc_row { padding-block: 48px !important; }
 .evm-theme .evm-existing-home .entry-content > .evm-slider-row { padding: 0 !important; }
 .evm-theme .evm-existing-home .entry-content > .evm-home-agenda { padding: 44px 24px !important; }
 .evm-theme .evm-home-agenda .cms-custom-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
 .evm-theme .evm-home-agenda .mec-event-article { display: flex; align-items: flex-start; gap: 18px; padding: 24px 0; }
 .evm-home-agenda .mec-event-article::after { display: none; }
 .evm-theme .evm-home-agenda .mec-event-grid-minimal .mec-event-date { flex-basis: 68px; width: 68px; padding-right: 14px; margin: 0; gap: 0; }
 .evm-theme .evm-home-agenda .mec-event-date > span:first-child { font-size: 36px; }
 .evm-theme .evm-home-agenda .mec-event-date .evm-date-month { font-size: 12px; white-space: normal; }
 .evm-theme .evm-home-agenda .mec-event-grid-minimal .mec-event-title { font-size: 20px !important; margin-bottom: 12px; }
 .evm-theme .evm-home-agenda .mec-event-detail { font-size: 14px; }
 .evm-theme .evm-home-agenda .event-detail-wrap { width: auto; flex: 1; }
 .evm-home-agenda .mec-event-loc-place { align-items: flex-start; gap: 7px; }
 .evm-parish-tabs { display: none; }
 .evm-theme .evm-parish-select { display: block; width: 100%; min-height: 54px; background-color: var(--evm-paper); }
 .evm-parish-directory { margin-bottom: 26px; }
 .evm-theme .evm-parishes-enhanced > .evm-parish-panel { display: flex; flex-direction: column; gap: 28px; margin-bottom: 8px; padding-bottom: 32px !important; }
 .evm-theme .evm-parish-panel > .vc_column_container { width: 100%; margin-top: 0 !important; }
 .evm-theme .evm-parish-panel > .evm-parish-photo > .vc_column-inner { padding: 0 !important; }
 .evm-theme.evm-parishes .evm-parish-panel h3 { font-size: 28px; }
 .evm-theme.evm-parishes .evm-parish-panel h3 + p { font-size: 15px; }
 .evm-theme .mec-single-event > .mec-single-title { font-size: 32px !important; margin-bottom: 28px; }
 .evm-theme .mec-single-event .mec-event-meta, .evm-theme .mec-single-event .mec-event-social { padding: 20px; }
 .evm-theme .evm-existing-home .vc_col-sm-6 .cms-heading-inner { font-size: 30px !important; }
}
