/*
Theme Name: Meath Royal Elegance
Theme URI: https://diecezjameath.pl/
Author: Meath Project
Description: Elegancki motyw dla Polskiego Duszpasterstwa w Diecezji Meath.
Version: 0.8.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: meath-royal-elegance
*/
:root{--navy:#0B1D36;--gold:#C6A15B;--paper:#fff;--mist:#F2F4F8;--ink:#1d2a3a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:inherit}a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.container{max-width:1180px;margin:auto;padding:0 24px}.topline{background:var(--navy);color:#e9edf2;font-size:12px;letter-spacing:.1em;text-transform:uppercase}.topline .container{padding-top:9px;padding-bottom:9px}.site-header{background:white;box-shadow:0 3px 24px #0b1d3610;position:relative;z-index:2}.header-inner{min-height:95px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;gap:15px;align-items:center;text-decoration:none}.brand-mark{width:49px;height:49px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font:30px Georgia,serif}.brand-name{font:700 19px/1.25 Georgia,serif;color:var(--navy)}.brand-sub{font-size:11px;letter-spacing:.12em;color:#687587;text-transform:uppercase}.nav-list{display:flex;gap:25px;list-style:none;padding:0;margin:0;align-items:center}.nav-list a{text-decoration:none;color:var(--navy);font-size:14px;font-weight:600}.nav-list a:hover{color:#9c7838}.hero{background:radial-gradient(ellipse at 85% 15%,#263f5d 0,transparent 42%),linear-gradient(120deg,#08172a,#102b4a);color:#fff;position:relative;overflow:hidden}.hero:after{content:'✝';position:absolute;right:9%;top:5%;font:clamp(200px,30vw,440px)/1 Georgia,serif;color:#ffffff08;pointer-events:none}.hero-inner{position:relative;z-index:1;padding:110px 24px 116px;max-width:1180px;margin:auto}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:.25em;text-transform:uppercase;font-weight:700}.hero h1{font:normal clamp(43px,6.4vw,80px)/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.035em;max-width:830px;margin:20px 0 22px}.hero h1 em{color:#e1bd7b;font-weight:normal}.hero p{max-width:590px;color:#e1e7ed;font-size:18px}.hero-actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:32px}.btn{display:inline-block;padding:13px 23px;border:1px solid var(--gold);text-decoration:none;font-size:13px;letter-spacing:.06em;font-weight:700}.btn-gold{background:var(--gold);color:var(--navy)}.btn-outline{color:white}.section{padding:82px 0}.section-muted{background:var(--mist)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.section h2{font:normal clamp(30px,4vw,46px)/1.15 Georgia,serif;color:var(--navy);margin:8px 0 0}.section-lead{color:#617084;max-width:650px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.feature{padding:32px;background:white;border:1px solid #e4e8ee;box-shadow:0 12px 30px #0b1d3608}.feature .symbol{font:33px Georgia,serif;color:var(--gold)}.feature h3{font:normal 25px Georgia,serif;color:var(--navy);margin:17px 0 8px}.feature p{color:#637183;margin:0}.feature a{display:inline-block;margin-top:22px;color:#8b692f;font-weight:700;text-decoration:none}.notice{border-left:3px solid var(--gold);background:#fff;padding:23px 27px;color:#465568}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}.gold-rule{height:2px;background:var(--gold);width:54px;margin:20px 0}.site-footer{background:var(--navy);color:#cbd5e0;padding:52px 0 25px}.footer-grid{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}.site-footer h3{color:white;font:normal 25px Georgia,serif;margin:0 0 10px}.site-footer a{color:#e3c58e}.copyright{border-top:1px solid #ffffff24;margin-top:36px;padding-top:20px;font-size:12px}.content-main{padding:70px 0;min-height:55vh}.content-main h1{font:normal 48px Georgia,serif;color:var(--navy)}.entry-content{max-width:850px}.entry-content img{max-width:100%;height:auto}.menu-toggle{display:none;background:transparent;border:1px solid #d8dee6;color:var(--navy);padding:8px 12px;font-weight:700}@media(max-width:850px){.menu-toggle{display:block}.header-inner{min-height:77px;flex-wrap:wrap}.site-nav{display:none;width:100%;padding-bottom:20px}.site-nav.is-open{display:block}.nav-list{flex-direction:column;align-items:start;gap:14px}.grid{grid-template-columns:1fr}.two-col{grid-template-columns:1fr;gap:20px}.hero-inner{padding:76px 24px 86px}.section{padding:55px 0}.section-head{display:block}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* v0.2.1: photographic hero, preserve cross at left and content at right */
.hero-photo{min-height:600px;background-color:var(--navy);background-image:linear-gradient(90deg,rgba(11,29,54,.08) 0%,rgba(11,29,54,.16) 31%,rgba(11,29,54,.72) 53%,rgba(11,29,54,.96) 100%),var(--meath-hero-image, url('assets/hero-cross.webp'));background-position:center center;background-size:cover;display:flex;align-items:center}
.hero-photo:after{display:none}
.hero-photo .hero-inner{width:100%;max-width:1228px;display:flex;justify-content:flex-end;padding-top:110px;padding-bottom:120px}
.hero-photo .hero-copy{width:min(55%,660px);padding:10px 0 10px 24px}
.hero-photo h1{font-size:clamp(39px,4.5vw,66px);max-width:660px;text-wrap:balance;text-shadow:0 2px 18px rgba(0,0,0,.15)}
.hero-photo p{max-width:540px;color:#f0f3f7}
.hero-photo-credit{position:absolute;bottom:12px;left:22px;color:#fff;font-size:11px;opacity:.8;text-shadow:0 1px 5px #000}
.btn:hover{filter:brightness(1.12)}
@media(max-width:850px){.hero-photo{min-height:660px;background-image:linear-gradient(180deg,rgba(11,29,54,.08) 0%,rgba(11,29,54,.35) 32%,rgba(11,29,54,.92) 64%,#0B1D36 100%),var(--meath-hero-image, url('assets/hero-cross.webp'));background-position:32% top;background-size:auto 100%}.hero-photo .hero-inner{align-items:flex-end;justify-content:flex-start;min-height:660px;padding:250px 24px 80px}.hero-photo .hero-copy{width:100%;padding:0}.hero-photo h1{font-size:clamp(37px,8vw,56px)}.hero-photo-credit{left:24px;bottom:9px}}
@media(max-width:480px){.hero-photo{background-position:29% top}.hero-photo .hero-inner{padding-top:235px}.hero-photo h1{font-size:clamp(34px,9vw,45px)}.hero-photo p{font-size:16px}.hero-photo .hero-actions{gap:10px}.hero-photo .btn{padding:11px 15px}}

/* v0.2.1: mobile-first refinement; desktop composition remains unchanged */
@media (max-width:850px){
  .header-inner{min-height:76px;flex-wrap:nowrap;gap:12px;padding-top:12px;padding-bottom:12px}
  .brand{min-width:0;flex:1;gap:10px}
  .brand-mark{flex:none;width:40px;height:40px;font-size:25px}
  .brand-name{display:block;font-size:clamp(15px,3.8vw,18px);line-height:1.18}
  .brand-sub{display:block;font-size:9px;line-height:1.3;letter-spacing:.08em;margin-top:3px}
  .brand br{display:none}
  .menu-toggle{display:flex;align-items:center;justify-content:center;flex:none;min-height:42px;padding:8px 12px;border-color:var(--gold);border-radius:3px;cursor:pointer}
  .site-nav{position:absolute;left:0;right:0;top:100%;background:#fff;box-shadow:0 12px 18px #0b1d3622;padding:0 24px 16px;width:auto}
  .site-nav:not(.is-open){display:none}
  .site-nav.is-open{display:block}
  .nav-list{gap:0}
  .nav-list li{width:100%;border-bottom:1px solid #e9edf2}
  .nav-list a{display:block;padding:12px 0;font-size:15px}
  .hero-photo{min-height:0;background-image:linear-gradient(180deg,rgba(11,29,54,.12) 0%,rgba(11,29,54,.36) 24%,rgba(11,29,54,.94) 55%,#0B1D36 100%),var(--meath-hero-image, url('assets/hero-cross.webp'));background-position:center top;background-size:cover}
  .hero-photo .hero-inner{min-height:0;display:block;padding:225px 24px 56px}
  .hero-photo .hero-copy{width:100%;max-width:600px;padding:0}
  .hero-photo h1{font-size:clamp(34px,6.8vw,48px);line-height:1.12;margin:13px 0 17px;letter-spacing:-.025em;text-wrap:pretty}
  .hero-photo p{font-size:16px;line-height:1.65;margin:0}
  .hero-photo .hero-actions{margin-top:24px}
  .hero-photo .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .hero-photo-credit{left:24px;bottom:10px;font-size:10px}
}
@media(max-width:480px){
  .topline{font-size:10px;letter-spacing:.055em}
  .topline .container{padding-top:6px;padding-bottom:6px}
  .header-inner{padding-left:16px;padding-right:16px}
  .brand-name{font-size:15px}
  .brand-sub{font-size:9px}
  .menu-toggle{font-size:12px;padding:8px 10px}
  .hero-photo{background-image:linear-gradient(180deg,rgba(11,29,54,.12) 0%,rgba(11,29,54,.34) 20%,rgba(11,29,54,.94) 46%,#0B1D36 100%),var(--meath-hero-image, url('assets/hero-cross.webp'));background-position:40% top;background-size:cover}
  .hero-photo .hero-inner{padding:175px 20px 56px}
  .hero-photo h1{font-size:clamp(30px,8.1vw,38px);line-height:1.14;overflow-wrap:normal}
  .hero-photo p{font-size:15px;line-height:1.6}
  .hero-photo .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .hero-photo .btn{padding:11px 8px;font-size:12px;letter-spacing:0;text-align:center}
  .hero-photo-credit{left:20px;bottom:9px}
}
@media(max-width:340px){.hero-photo .hero-actions{grid-template-columns:1fr}.brand-mark{width:35px;height:35px}.brand-name{font-size:14px}.hero-photo h1{font-size:29px}}

/* v0.4.0: integrate the Meath Core calendar without changing its data model */
.meath-home-mass-calendar{margin:0 0 30px;max-width:100%;overflow-wrap:anywhere}
.meath-home-mass-calendar :is(table){width:100%;max-width:100%;border-collapse:collapse}
.meath-home-mass-calendar :is(th,td){padding:12px;border-bottom:1px solid #dfe5ed;text-align:left}
.meath-home-mass-calendar :is(a){color:#74531f;text-underline-offset:3px}
@media(max-width:600px){.meath-home-mass-calendar{overflow-x:auto}.meath-home-mass-calendar :is(th,td){padding:9px;font-size:14px}}


/* v0.4.1: Mobile presentation of Meath Core Mass calendar.
   The original semantic table stays intact for accessibility and desktop use. */
@media (max-width: 600px) {
  .meath-home-mass-calendar { overflow-x: visible; overflow-wrap: normal; }
  .meath-home-mass-calendar table,
  .meath-home-mass-calendar tbody,
  .meath-home-mass-calendar tr,
  .meath-home-mass-calendar td { display: block; width: 100%; }
  .meath-home-mass-calendar thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .meath-home-mass-calendar tbody { display: grid; gap: 14px; }
  .meath-home-mass-calendar tbody tr {
    background: #fff;
    border: 1px solid #dfe5ed;
    border-left: 3px solid #C6A15B;
    border-radius: 12px;
    padding: 15px 17px;
    box-shadow: 0 4px 16px rgba(11,29,54,.055);
    min-width: 0;
  }
  .meath-home-mass-calendar tbody td {
    border: 0;
    padding: 3px 0;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .meath-home-mass-calendar tbody td:first-child {
    font-weight: 700;
    color: #0B1D36;
    font-size: 16px;
    overflow-wrap: normal;
    white-space: normal;
  }
  .meath-home-mass-calendar tbody td:nth-child(2) {
    font-weight: 700;
    font-size: 19px;
    color: #0B1D36;
    font-variant-numeric: tabular-nums;
  }
  .meath-home-mass-calendar tbody td:nth-child(2)::before {
    content: 'Godzina: ';
    font-size: 13px;
    font-weight: 400;
    color: #536176;
  }
  .meath-home-mass-calendar tbody td:nth-child(3)::before {
    content: 'Msza: ';
    font-weight: 600;
    color: #536176;
  }
  .meath-home-mass-calendar tbody td:nth-child(4)::before {
    content: 'Kościół: ';
    font-weight: 600;
    color: #536176;
  }
}

/* v0.5.1: Progressive, accessible Mass schedule presentation. */
.meath-mass-enhanced>table[hidden]{display:none!important}
.meath-mass-experience{background:#fff;border:1px solid #dfe5ed;border-radius:16px;padding:clamp(16px,3vw,28px);box-shadow:0 12px 30px #0b1d3609;margin-bottom:26px}
.meath-mass-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.meath-mass-tabs{display:inline-flex;gap:4px;padding:4px;background:#f2f4f8;border-radius:10px}
.meath-mass-tabs button{border:0;border-radius:8px;padding:10px 18px;background:transparent;color:#33465d;font:600 14px system-ui;cursor:pointer;min-height:44px}
.meath-mass-tabs button[aria-pressed=true]{background:#0b1d36;color:white}
.meath-mass-filter{display:flex;flex-direction:column;gap:4px;min-width:min(100%,220px)}
.meath-mass-filter-label{font-size:12px;font-weight:700;color:#41536a}
.meath-mass-select{border:1px solid #bac6d3;background:white;border-radius:8px;padding:10px;color:#0b1d36;font:inherit;max-width:100%;min-height:44px}
.meath-mass-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.meath-mass-card{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #e0e6ed;border-left:3px solid #c6a15b;border-radius:12px;background:#fff;min-width:0}
.meath-mass-date{width:66px;min-width:66px;min-height:74px;background:#f2f4f8;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.25;color:#0b1d36}
.meath-mass-date strong{font:700 27px Georgia,serif}.meath-mass-date span{font-size:11px;letter-spacing:.1em;font-weight:700;color:#786039}
.meath-mass-details{flex:1;min-width:0}.meath-mass-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#3d4d61;font-size:14px}
.meath-mass-time{color:#0b1d36;font-size:19px;font-variant-numeric:tabular-nums}
.meath-mass-title{color:#0b1d36;font-weight:600;font-size:15px;line-height:1.4;margin-top:6px}
.meath-mass-church{font-size:13px;color:#586b80;margin-top:4px;line-height:1.5}
.meath-mass-month-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.meath-mass-month-head h3{font:normal clamp(20px,3vw,27px) Georgia,serif;color:#0b1d36;margin:0}
.meath-mass-month-arrow{width:44px;height:44px;border:1px solid #d8e0e9;border-radius:9px;background:white;color:#0b1d36;font-size:26px;cursor:pointer}
.meath-mass-month-arrow:disabled{opacity:.35;cursor:not-allowed}
.meath-mass-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:750px;margin:0 auto 22px}
.meath-mass-weekday{text-align:center;color:#586b80;font-size:12px;font-weight:700;padding:8px 0}
.meath-mass-day{position:relative;min-width:0;min-height:50px;border:1px solid #e5e9ef;border-radius:8px;background:#fff;color:#0b1d36;font:600 14px system-ui;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.meath-mass-day.has-mass{background:#faf4e8;border-color:#c6a15b}.meath-mass-day.is-selected{outline:2px solid #0b1d36;outline-offset:1px}
.meath-mass-dot{width:6px;height:6px;border-radius:50%;background:#9a742d}.meath-mass-day:hover{background:#f2f4f8}
.meath-mass-day-detail{border-top:1px solid #e3e8ee;padding-top:20px;display:grid;gap:12px}
.meath-mass-day-detail h4{margin:0 0 4px;font-size:17px;color:#0b1d36}
.meath-mass-empty{margin:0;color:#52647a}.meath-mass-range{font-size:12px;line-height:1.6;color:#52647a;margin:18px 0 0}
@media(max-width:800px){.meath-mass-list{grid-template-columns:1fr}}
@media(max-width:480px){.meath-mass-experience{padding:14px}.meath-mass-toolbar{align-items:stretch}.meath-mass-tabs{width:100%}.meath-mass-tabs button{flex:1}.meath-mass-filter{width:100%}.meath-mass-card{padding:13px;gap:12px}.meath-mass-date{width:56px;min-width:56px;min-height:65px}.meath-mass-date strong{font-size:24px}.meath-mass-card-top{font-size:13px}.meath-mass-time{font-size:18px}.meath-mass-month-grid{gap:3px}.meath-mass-day{min-height:40px;font-size:12px}.meath-mass-weekday{font-size:11px}}

/* v0.5.2: The shortcode table can be nested in a wrapper. Hide it on all
   breakpoints only after JS has built the enhanced calendar successfully.
   The original table remains in the DOM as a no-JavaScript fallback. */
.meath-home-mass-calendar.meath-mass-enhanced table { display: none !important; }

.meath-mass-retry{padding:9px 16px;border:1px solid var(--gold);background:var(--paper);color:var(--navy);cursor:pointer;font-weight:600}

/* v0.5.7: WordPress custom logo, responsive, no duplicate brand text */
.brand:has(.meath-header-logo){flex:0 1 350px;min-width:0;max-width:350px}
.meath-header-logo{display:block;width:100%;max-width:350px;height:auto;max-height:76px;object-fit:contain;object-position:left center}
@media(max-width:1100px){.brand:has(.meath-header-logo){flex-basis:270px;max-width:270px}.meath-header-logo{max-width:270px;max-height:68px}.header-inner{gap:16px}.nav-list{gap:15px}}
@media(max-width:850px){.brand:has(.meath-header-logo){flex:1 1 auto;max-width:300px}.meath-header-logo{max-width:100%;max-height:64px}}
@media(max-width:480px){.brand:has(.meath-header-logo){max-width:calc(100% - 90px)}.meath-header-logo{max-height:54px}}

.meath-church-photo,.meath-church-placeholder{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin:0 0 18px;height:auto}.meath-church-placeholder{display:grid;place-items:center;background:#F2F4F8;color:#C6A15B;font-size:3rem}.meath-church-schedule summary{cursor:pointer;color:#0B1D36;font-weight:600;padding:10px 0}.meath-church-schedule summary:focus-visible{outline:2px solid #C6A15B}.meath-church-card{min-width:0;overflow-wrap:anywhere}

.meath-language-switch{display:flex;gap:6px;flex:none;align-items:center}.meath-language-switch a{font-size:12px;font-weight:700;text-decoration:none;padding:4px;color:#0B1D36}.meath-language-switch a[aria-current=true]{border-bottom:2px solid #C6A15B}@media(min-width:851px) and (max-width:1100px){.header-inner{gap:8px}.nav-list{gap:10px}}

.meath-feature-link{display:block;text-decoration:none;position:relative;transition:border-color .18s,transform .18s}.meath-feature-link:hover,.meath-feature-link:focus-visible{border-color:var(--gold);transform:translateY(-2px)}.meath-feature-arrow{display:block;text-align:right;color:#8b692f;font-size:1.4rem}.meath-community-photo{width:100%;height:auto;max-height:260px;object-fit:contain;background:var(--mist);border-radius:8px;margin-bottom:1rem}.meath-community-more{display:inline-block;margin-top:1rem;color:var(--navy);font-weight:700}.meath-publication-photo{max-width:100%;height:auto}.meath-community details summary{cursor:pointer;font-weight:700}@media(prefers-reduced-motion:reduce){.meath-feature-link{transition:none}.meath-feature-link:hover{transform:none}}

/* 0.6.4: compact homepage publications and readable article layout. */
.meath-home-publications .meath-community-section{margin:1.5rem 0}
.meath-home-publications .meath-community-section h2{font-size:clamp(23px,3vw,30px);margin:0 0 12px}
.meath-home-publications .meath-community-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.meath-home-publications .meath-community-card{position:relative;padding:16px;min-width:0;border-radius:10px;transition:border-color .15s}
.meath-home-publications .meath-community-card:hover,.meath-home-publications .meath-community-card:focus-within{border-color:var(--gold)}
.meath-home-publications .meath-community-photo{float:right;width:76px;height:76px;object-fit:contain;margin:0 0 8px 12px;background:transparent}
.meath-home-publications .meath-community-label{display:block;margin-bottom:8px}
.meath-home-publications .meath-community-card h3{font:normal 21px/1.25 Georgia,serif;margin:0 0 8px}
.meath-home-publications .meath-community-content,.meath-home-publications .meath-community-meta{font-size:14px;line-height:1.5}
.meath-home-publications .meath-community-more{font-size:13px;margin-top:10px}
.meath-home-publications .meath-community-more::after{content:'';position:absolute;inset:0;border-radius:10px}
.meath-all-publications{color:var(--navy)}
.meath-single-article{margin:auto;max-width:780px;overflow-wrap:anywhere}
.meath-single-article h1{font-size:clamp(30px,5vw,46px);line-height:1.15;margin:18px 0}
.meath-single-date{color:#586577;font-size:14px;margin:0 0 22px}
.meath-single-article .meath-publication-photo{display:block;width:auto;max-width:100%;height:auto;max-height:760px;object-fit:contain;margin:0 auto 24px}
.meath-single-body{font-size:17px;line-height:1.75}
.meath-back{display:inline-block;font-size:14px;color:var(--navy);font-weight:600;margin-bottom:12px}
@media(min-width:851px){.brand:has(.meath-header-logo){min-width:140px}.site-nav{min-width:0}.nav-list{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:850px){.meath-home-publications .meath-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.meath-single{padding:35px 0}}
@media(max-width:560px){.meath-home-publications .meath-community-grid{grid-template-columns:1fr}.meath-single-body{font-size:16px}}

/* v0.6.4: consistent publication cards across home, listing and archive. */
.meath-community-page{max-width:none}
.meath-community .meath-community-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.meath-community .meath-community-card{position:relative;display:flow-root;padding:16px;min-width:0;border-radius:10px}
.meath-community .meath-community-card:hover,.meath-community .meath-community-card:focus-within{border-color:var(--gold)}
.meath-community .meath-community-photo{float:right;width:76px;height:76px;object-fit:contain;object-position:center;margin:0 0 8px 12px;background:transparent}
.meath-community .meath-community-label{display:block;margin-bottom:8px}
.meath-community .meath-community-card h3{font:normal 21px/1.25 Georgia,serif;margin:0 0 8px}
.meath-community .meath-community-content,.meath-community .meath-community-meta{font-size:14px;line-height:1.5}
.meath-community .meath-community-more{font-size:13px;margin-top:10px}
.meath-community .meath-community-more::after{content:'';position:absolute;inset:0;border-radius:10px}
.meath-community .meath-community-more:focus-visible::after{outline:3px solid var(--gold);outline-offset:3px}
.meath-community .meath-community-section h2{font:normal clamp(23px,3vw,30px)/1.2 Georgia,serif;margin:0 0 12px;color:var(--navy)}
.meath-community .meath-community-featured{border-color:var(--gold)}
.meath-back-bottom{border-top:1px solid #e4e7ed;margin-top:30px;padding-top:20px}
.site-header .brand .meath-header-logo{display:block;visibility:visible;opacity:1;min-width:0}
@media(min-width:851px){.site-header .brand:has(.meath-header-logo){flex:0 0 clamp(150px,20vw,270px);max-width:270px}.site-header .site-nav{flex:1 1 auto;min-width:0}}
@media(max-width:850px){.meath-community .meath-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.meath-community .meath-community-grid{grid-template-columns:1fr}}

/* v0.7.0: independent gradient and photo sizing; optional mobile photo. */
.hero-photo{background-image:linear-gradient(rgba(11,29,54,var(--meath-hero-shade,0)),rgba(11,29,54,var(--meath-hero-shade,0))),linear-gradient(90deg,rgba(11,29,54,.08) 0%,rgba(11,29,54,.16) 31%,rgba(11,29,54,.72) 53%,rgba(11,29,54,.96) 100%),var(--meath-hero-image,url('assets/hero-cross.webp'));background-size:100% 100%,100% 100%,var(--meath-hero-fit,cover);background-position:center,center,var(--meath-hero-x,50%) var(--meath-hero-y,50%);background-repeat:no-repeat}
@media(max-width:850px){.hero-photo{background-image:linear-gradient(rgba(11,29,54,var(--meath-hero-shade,0)),rgba(11,29,54,var(--meath-hero-shade,0))),linear-gradient(180deg,rgba(11,29,54,.12) 0%,rgba(11,29,54,.36) 24%,rgba(11,29,54,.94) 55%,#0B1D36 100%),var(--meath-hero-mobile-image,var(--meath-hero-image,url('assets/hero-cross.webp')));}}
.meath-home-publications .meath-community-photo{object-fit:contain;object-position:center}

/* 0.7.0: independent publication sections */
.meath-community .meath-community-section{margin:0 0 24px;padding:32px 24px;background:#fff;border-top:1px solid #e4e7ed;scroll-margin-top:40px}
.meath-community .meath-section-nadchodzace-wydarzenia{background:var(--mist)}
.meath-community .meath-community-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}
.meath-community .meath-community-section h2{margin:0 0 24px;font-size:clamp(25px,3vw,36px)}
.meath-community .meath-community-section h2:after{content:'';display:block;width:48px;height:2px;background:var(--gold);margin-top:14px}
.meath-community .meath-community-card{padding:22px;background:white}
.meath-community .meath-community-photo{width:110px;height:90px;object-fit:contain}
.meath-community .meath-section-aktualnosci .meath-community-photo{float:none;width:100%;height:180px;margin:0 0 14px;object-fit:contain}
.meath-community .meath-section-more{display:table;margin:20px 0 0 auto;font-weight:700;color:var(--navy)}
.meath-publication-nav{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 36px}
.meath-publication-nav a{border:1px solid var(--gold);padding:10px 16px;text-decoration:none;font-weight:600}
.meath-event-day{float:left;background:var(--navy);color:white;padding:8px 14px;margin:0 14px 8px 0;text-align:center;font:26px Georgia,serif;border-radius:6px}
.meath-event-day small{display:block;font:12px system-ui;color:#e3c58e}
.meath-event-details{background:var(--mist);border-left:3px solid var(--gold);padding:18px 24px;margin:24px 0;display:grid;gap:8px}
.meath-event-details strong{display:inline-block;min-width:85px;color:var(--navy)}
@media(max-width:560px){.meath-community .meath-community-section{padding:24px 12px}.meath-community .meath-community-card{padding:16px}.meath-community .meath-community-photo{width:84px;height:76px}}

/* v0.7.2: streamlined homepage, distinct publication groups. */
#msze.section{padding-bottom:40px}
#wydarzenia.section{padding-top:44px}
.meath-home-publications .meath-community-section{margin:0 0 32px;padding:28px 24px;border-radius:12px}
.meath-home-publications .meath-community-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.meath-home-publications .meath-section-nadchodzace-wydarzenia{background:var(--mist)}
@media(max-width:850px){.meath-home-publications .meath-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#msze.section{padding-bottom:24px}#wydarzenia.section{padding-top:30px}.meath-home-publications .meath-community-section{padding:20px 12px}.meath-home-publications .meath-community-grid{grid-template-columns:1fr}}

/* v0.7.3: adaptive homepage publication grids and section links. */
.meath-home-publications .meath-community-section{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:16px;row-gap:16px;margin-bottom:20px;padding:24px}
.meath-home-publications .meath-community-section > h2{grid-column:1;grid-row:1;margin:0}
.meath-home-publications .meath-community-section > .meath-section-more{grid-column:2;grid-row:1;margin:0;align-self:center;font-size:14px}
.meath-home-publications .meath-community-section > .meath-community-grid{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.meath-home-publications .meath-community-grid:has(> .meath-community-card:only-child){grid-template-columns:minmax(0,1fr)}
.meath-home-publications .meath-community-grid:has(> .meath-community-card:only-child) .meath-community-photo{float:right;width:25%;height:140px;margin:0 0 8px 18px;object-fit:contain}
@media(max-width:850px){.meath-home-publications .meath-community-section > .meath-community-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}}
@media(max-width:560px){.meath-home-publications .meath-community-section{padding:18px 12px;grid-template-columns:minmax(0,1fr);row-gap:12px}.meath-home-publications .meath-community-section > .meath-section-more{grid-column:1;grid-row:2;justify-self:start}.meath-home-publications .meath-community-section > .meath-community-grid{grid-row:3;grid-template-columns:1fr}.meath-home-publications .meath-community-grid:has(> .meath-community-card:only-child) .meath-community-photo{width:84px;height:76px;margin-left:12px}.meath-home-publications .meath-section-aktualnosci .meath-community-grid:has(> .meath-community-card:only-child) .meath-community-photo{float:none;width:100%;height:180px;margin:0 0 14px}}

/* v0.7.4: full-width mobile publication thumbnails and readable titles. */
@media (max-width: 560px) {
  :is(.meath-community, .meath-home-publications) .meath-community-card {
    padding: 14px;
    min-width: 0;
  }
  :is(.meath-community, .meath-home-publications) .meath-community-card .meath-community-photo,
  .meath-home-publications .meath-community-grid:has(> .meath-community-card:only-child) .meath-community-card .meath-community-photo,
  .meath-home-publications .meath-section-aktualnosci .meath-community-grid:has(> .meath-community-card:only-child) .meath-community-card .meath-community-photo {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    margin: 0 0 12px;
  }
  :is(.meath-community, .meath-home-publications) .meath-community-card h3 {
    clear: both;
    width: 100%;
    font-size: 20px;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* v0.7.5: natural hero heading spacing on all screen sizes. */
.hero-photo h1{letter-spacing:normal;line-height:1.16}

/* 0.8.0: refined production footer */
.meath-footer{background:#0B1D36;color:#fff;border-top:3px solid #C6A15B;padding:52px 0 24px}
.meath-footer .footer-grid{display:grid;grid-template-columns:1.2fr .95fr 1.15fr .9fr;gap:32px;align-items:start}
.meath-footer .footer-grid>*{min-width:0}
.meath-footer h3{font:600 17px/1.45 system-ui,sans-serif;color:#C6A15B;margin:0 0 20px}
.meath-footer .footer-grid>:not(.footer-identity)>h3:after{content:'';display:block;width:30px;height:2px;background:#C6A15B;margin-top:12px}
.meath-footer .footer-identity h3{font:normal 23px/1.3 Georgia,serif;color:white;margin:0 0 12px}
.meath-footer .meath-footer-logo{display:block;width:96px;height:96px;object-fit:contain;background:white;border:2px solid #C6A15B;border-radius:50%;padding:5px;margin:0 0 18px}
.meath-footer p,.meath-footer li{font-size:15px;line-height:1.65;color:white;margin:0;overflow-wrap:anywhere}
.meath-footer .footer-links,.meath-footer .nav-list{display:flex;flex-direction:column;align-items:stretch;gap:10px;list-style:none;padding:0;margin:0}
.meath-footer a,.meath-footer .nav-list a{color:white;font-size:15px;font-weight:400;text-decoration:none;overflow-wrap:anywhere}
.meath-footer a:hover,.meath-footer a:focus-visible{color:#C6A15B;text-decoration:underline}
.meath-footer .footer-contact li{display:flex;align-items:flex-start;gap:10px}
.meath-footer .footer-icon{width:19px;height:19px;flex:0 0 19px;margin-top:3px;color:#C6A15B}
.meath-footer .footer-social{display:inline-flex;align-items:center;gap:9px}
.meath-footer .footer-social svg{color:#C6A15B}
.meath-footer .copyright{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid #C6A15B66;margin-top:36px;padding-top:20px;color:white;font-size:13px}
.meath-footer .footer-credit a{color:#C6A15B;font-size:17px;font-weight:700;letter-spacing:.02em;margin-left:4px}
@media(max-width:1000px){.meath-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}}
@media(max-width:560px){.meath-footer{padding:36px 0 24px}.meath-footer .footer-grid{grid-template-columns:1fr;gap:28px}.meath-footer .footer-grid>*+*{border-top:1px solid #ffffff20;padding-top:24px}.meath-footer .copyright{flex-direction:column;align-items:flex-start}.meath-footer .footer-links a,.meath-footer .nav-list a{display:inline-block;padding:3px 0}}
