/* Župnija Brusnice: homepage cards, based on the original parish homepage. */
.br-home-section {width:100%; max-width:1180px; margin:0 auto 48px; padding:0 16px;}
.br-home-section, .br-home-section * {box-sizing:border-box;}
.br-home-section__heading-row {margin:0 0 20px;}
.br-home-section__eyebrow {display:block; font-size:11px; line-height:1.45; font-weight:750; text-transform:uppercase; letter-spacing:.15em; color:#876139; margin-bottom:7px;}
.br-home-section__eyebrow::before {content:''; display:inline-block; width:22px; height:1px; background:#bf9b55; vertical-align:middle; margin-right:10px;}
.br-home-section__heading {font-family:'Playfair Display', Georgia, serif; font-weight:700; font-size:clamp(25px,2.5vw,32px); line-height:1.2; color:#243747; margin:0!important;}
.br-home-grid {display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:16px!important; align-items:stretch!important;}
.br-home-card {min-width:0; display:flex; flex-direction:column; gap:0; padding:17px 20px 19px; min-height:205px; border:1px solid #e5e5e2; border-top:3px solid #c9aa66; border-radius:12px; background:#fff; box-shadow:0 6px 20px rgba(28,44,57,.045); overflow-wrap:anywhere;}
.br-home-section--events .br-home-card {border-top-color:#8ca5b8;}
.br-home-card__relative {font-size:10px; line-height:1.3; font-weight:800; text-transform:uppercase; letter-spacing:.12em; color:#685134; margin-bottom:7px;}
.br-home-card__date {font-size:13px; line-height:1.4; font-weight:700; text-transform:uppercase; color:#3d647f; margin-bottom:13px;}
.br-home-card__primary {font-family:'Playfair Display',Georgia,serif; font-size:clamp(18px,1.8vw,24px); line-height:1.22; color:#243747; font-weight:700; margin:0 0 10px!important;}
.br-home-card__primary a, .br-home-card__more {color:#274f6f!important; text-decoration:none!important;}
.br-home-card__primary a:hover, .br-home-card__more:hover {text-decoration:underline!important;}
.br-home-card__timeplace {font-size:14px; line-height:1.4; color:#62717d; margin:0 0 8px!important;}
.br-home-card__note {color:#434b51; font-size:15px; line-height:1.48; margin:0!important; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden;}
.br-home-card__more {font-size:12px; margin-top:auto; padding-top:16px; font-weight:650;}
.br-home-empty {margin:0; padding:15px 18px; border:1px solid #e5e5e2; border-radius:10px; color:#54616a; background:#f9fafb;}
@media (max-width:920px) {
  .br-home-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .br-home-card {min-height:185px;}
}
@media (max-width:620px) {
  .br-home-grid {grid-template-columns:minmax(0,1fr)!important; gap:12px!important;}
  .br-home-section {padding:0 12px; margin-bottom:36px;}
  .br-home-card {min-height:0; padding:16px 18px;}
  .br-home-card__note {-webkit-line-clamp:3;}
  .br-home-card__primary {font-size:22px;}
}

/* v0.8.2: several masses on the same calendar day share one card. */
.br-home-card__mass-entry {display:flex; flex-direction:column; flex:1 0 auto;}
.br-home-card__mass-entry + .br-home-card__mass-entry {border-top:1px solid #e5e5e2; padding-top:15px; margin-top:16px;}
.br-home-card__note--empty {color:#64717a; font-style:italic; overflow:visible; display:block;}
.br-home-section--events .br-home-card__more {display:inline-block; align-self:flex-start;}
/* Larger, more readable typography on mobile phones. */
@media (max-width:620px) {
  .br-home-section__eyebrow {font-size:12px;}
  .br-home-section__heading {font-size:30px;}
  .br-home-card {padding:19px 19px 21px;}
  .br-home-card__relative {font-size:13px; letter-spacing:.085em; margin-bottom:9px;}
  .br-home-card__date {font-size:15px; line-height:1.45; margin-bottom:14px;}
  .br-home-card__primary {font-size:25px; line-height:1.28;}
  .br-home-card__timeplace {font-size:17px; line-height:1.5;}
  .br-home-card__note {font-size:17px; line-height:1.56; -webkit-line-clamp:5;}
  .br-home-card__more {font-size:15px; line-height:1.5;}
  .br-home-empty {font-size:16px;}
}

/* v0.8.3: same available column width as the Cover on mobile.
   Older card styles added extra 12 px of horizontal padding inside the section. */
@media (max-width:767px) {
  .br-home-section.br-home-section--masses,
  .br-home-section.br-home-section--events {
    width:100% !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .br-home-section .br-home-grid {
    width:100% !important;
    min-width:0;
    grid-template-columns:minmax(0,1fr) !important;
  }
  .br-home-section .br-home-card,
  .br-home-section .br-home-empty {
    width:100%;
    max-width:100%;
    min-width:0;
  }
}

/* v0.8.6: Masses – day/date 2px smaller, time/place 2px larger than v0.8.5.
   No changes to Events typography. */
.br-home-section--masses .br-home-card__relative,
.br-home-section--masses .br-home-card__date {
  font-size:clamp(16px, calc(1.8vw - 2px), 22px);
}
.br-home-section--masses .br-home-card__relative {
  text-transform:none;
}
.br-home-section--masses .br-home-card__primary {
  font-size:15px;
}
@media (max-width:620px) {
  .br-home-section--masses .br-home-card__relative,
  .br-home-section--masses .br-home-card__date {
    font-size:23px;
  }
  .br-home-section--masses .br-home-card__primary {
    font-size:17px;
  }
}

/* v0.8.5: Events – exact time/location sizes requested. */
.br-home-section--events .br-home-card__timeplace {
  font-size:17px;
}
@media (max-width:620px) {
  .br-home-section--events .br-home-card__timeplace {
    font-size:20px;
  }
}

/* v0.8.7: Events – relative day and date exactly match Masses typography.
   Masses remain unchanged; Events time/location remains 17 / 20 px. */
.br-home-section--events .br-home-card__relative,
.br-home-section--events .br-home-card__date {
  font-size:clamp(16px, calc(1.8vw - 2px), 22px);
}
@media (max-width:620px) {
  .br-home-section--events .br-home-card__relative,
  .br-home-section--events .br-home-card__date {
    font-size:23px;
  }
}

/* v0.8.9: relative days uppercase in both sections.
   Calendar weekdays start with a capital letter; month names remain lowercase. */
.br-home-section--masses .br-home-card__relative,
.br-home-section--events .br-home-card__relative {
  text-transform:uppercase;
}
.br-home-section--masses .br-home-card__date,
.br-home-section--events .br-home-card__date {
  text-transform:none;
}
/* Mass time / location: 15 -> 17px desktop, 17 -> 19px phone. */
.br-home-section--masses .br-home-card__primary {
  font-size:17px;
}
/* Event time / location: 17 -> 19px desktop, 20 -> 22px phone. */
.br-home-section--events .br-home-card__timeplace {
  font-size:19px;
  color:#000;
  font-weight:400;
}
@media (max-width:620px) {
  .br-home-section--masses .br-home-card__primary {
    font-size:19px;
  }
  .br-home-section--events .br-home-card__timeplace {
    font-size:22px;
  }
}

/* v0.8.10: Details links appear only in the Events section. */
.br-home-section--masses .br-home-card__more { display:none !important; }

/* v0.8.11: Matching typography for Masses and Events.
   Day/date already matched across sections; keep them unchanged.
   Event title and event time/place use the same font and font-size
   as the Masses' time/place, without overriding event links.
   Retain the separately requested non-bold black event time/place. */
.br-home-section--events .br-home-card__primary,
.br-home-section--events .br-home-card__timeplace {
  font-family:'Playfair Display',Georgia,serif;
  font-size:17px;
  line-height:1.22;
}
.br-home-section--events .br-home-card__timeplace {
  color:#000;
  font-weight:400;
}
@media (max-width:620px) {
  .br-home-section--events .br-home-card__primary,
  .br-home-section--events .br-home-card__timeplace {
    font-size:19px;
  }
}


/* v0.8.12 – Events only: swap existing font sizes for the day/date and
   event title. Keep fonts, time/place, Masses, links and all other styles. */
.br-home-section--events .br-home-card__relative,
.br-home-section--events .br-home-card__date {
  font-size:17px;
}
.br-home-section--events .br-home-card__primary {
  font-size:clamp(16px, calc(1.8vw - 2px), 22px);
}
@media (max-width:620px) {
  .br-home-section--events .br-home-card__relative,
  .br-home-section--events .br-home-card__date {
    font-size:19px;
  }
  .br-home-section--events .br-home-card__primary {
    font-size:23px;
  }
}
