/* SPOLEK 0.9.210 – Nadcházející akce a kalendář. Všechny nové styly izolované prefixem sp-hc. */
.sp-hc { padding-top: clamp(20px,3vw,38px); padding-bottom: clamp(22px,3vw,38px); }
.sp-hc *, .sp-hc *::before, .sp-hc *::after { box-sizing: border-box; }
.sp-hc-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,340px); gap:20px; align-items:stretch; }
.sp-hc-events { min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr); }
.sp-hc-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border-bottom:1px solid #e4eae4; margin-bottom:18px; padding:0 2px 11px; }
.sp-hc-heading h2, .sp-hc-cal__title { display:flex; align-items:center; gap:10px; margin:0; font-size:clamp(20px,2vw,26px); color:#14251d; letter-spacing:-.025em; font-weight:800; line-height:1.24; }
.sp-hc-heading h2 svg, .sp-hc-cal__title svg { width:25px; height:25px; flex:none; stroke:#06633d; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-width:2; }
.sp-hc-all { color:#076541; font-weight:750; font-size:14px; text-decoration:none; white-space:nowrap; }
.sp-hc-all:hover { color:#04462f; text-decoration:underline; }
.sp-hc-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:14px; min-height:0; }
.sp-hc-card { min-width:0; background:#fff; border:1px solid #dde6dd; border-radius:15px; overflow:hidden; box-shadow:0 3px 14px rgba(13,45,28,.08); display:flex; flex-direction:column; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.sp-hc-card:first-child { border:2px solid #158346; }
.sp-hc-card:hover { transform:translateY(-3px); box-shadow:0 9px 22px rgba(11,54,31,.13); border-color:#95c4a6; }
.sp-hc-card__cover { aspect-ratio:1.53; position:relative; overflow:hidden; display:block; background:#0f6042; text-decoration:none; color:#fff; }
.sp-hc-card__cover img { display:block; width:100%; height:100%; object-fit:cover; }

.sp-hc-card__title { margin:0 0 5px; color:#153626; font-size:clamp(16px,1.55vw,20px); font-weight:800; line-height:1.18; overflow-wrap:anywhere; }
.sp-hc-card__title a { color:inherit; text-decoration:none; }
.sp-hc-card__title a:hover,.sp-hc-card__title a:focus-visible { color:#087349; text-decoration:underline; }
.sp-hc-card__fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 75% 20%,#73a286 0%,#1a6f4d 37%,#073f31 100%); }
.sp-hc-card__fallback svg { width:62%; stroke:#d9eadb; fill:none; stroke-width:2; stroke-linecap:round; opacity:.42; }
.sp-hc-card__info { padding:15px 14px 18px; display:flex; flex-direction:column; gap:9px; flex:1; }
.sp-hc-card__info p { display:flex; align-items:flex-start; gap:8px; margin:0; color:#26372e; font-size:13px; line-height:1.4; }
.sp-hc-card__info p svg { width:17px; height:17px; flex:0 0 17px; stroke:#315746; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; margin-top:1px; }
.sp-hc-card__info p.sp-hc-card__date { font-size:15px; font-weight:800; color:#192820; margin-top:2px; }
.sp-hc-card__place { overflow-wrap:anywhere; }
.sp-hc-no-events { grid-column:1/-1; min-height:205px; background:#eef5ef; border:1px dashed #aac8b1; border-radius:15px; display:flex; align-items:center; justify-content:center; flex-direction:column; padding:24px; text-align:center; color:#315240; }
.sp-hc-no-events__symbol { font-size:32px; margin-bottom:6px; }
.sp-hc-no-events p { margin:7px 0 8px; }
.sp-hc-no-events a { color:#076541; font-weight:700; }
.sp-hc-cal { min-width:0; border:1px solid #e1e9e3; background:#fff; border-radius:18px; box-shadow:0 4px 18px rgba(22,48,32,.06); padding:17px 17px 15px; }
.sp-hc-cal__title { font-size:19px; margin-bottom:10px; }
.sp-hc-cal__title svg { width:22px; height:22px; }
.sp-hc-cal__nav { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:1px 0 12px; }
.sp-hc-cal__nav strong { text-transform:capitalize; color:#17241b; font-size:15px; white-space:nowrap; text-align:center; }
.sp-hc-cal__arrow { background:transparent; border:0; padding:0; border-radius:8px; color:#096641; min-width:34px; height:34px; font-size:32px; line-height:27px; cursor:pointer; }
.sp-hc-cal__arrow:hover:not(:disabled), .sp-hc-cal__arrow:focus-visible { background:#eaf4ed; }
.sp-hc-cal__arrow:disabled { opacity:.23; cursor:default; }
.sp-hc-cal__weekdays, .sp-hc-cal__days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.sp-hc-cal__weekdays { padding-bottom:8px; border-bottom:1px solid #e4ebe4; margin-bottom:6px; }
.sp-hc-cal__weekdays span { text-align:center; font-weight:800; font-size:12px; color:#444d49; }
.sp-hc-cal__days { align-items:stretch; }
.sp-hc-cal__day { border:1px solid transparent; border-radius:9px; background:transparent; width:100%; min-height:39px; padding:5px 1px 2px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px; cursor:pointer; color:#27352c; font-size:13px; font-weight:700; font-family:inherit; }
.sp-hc-cal__day:hover, .sp-hc-cal__day:focus-visible { border-color:#b1d0b8; background:#f0f7f2; }
.sp-hc-cal__day--outside { color:#9ea9a1; font-weight:500; }
.sp-hc-cal__day--weekend:not(.sp-hc-cal__day--selected) { background:#f4f7f4; }
.sp-hc-cal__day--today:not(.sp-hc-cal__day--selected) { background:#d9edcf; color:#073b2a; font-weight:800; }
.sp-hc-cal__day--selected { color:#fff; background:#08633d; border-color:#08633d; }
.sp-hc-cal__day--selected:hover, .sp-hc-cal__day--selected:focus-visible { background:#075334; }
.sp-hc-cal__marks { display:flex; justify-content:center; gap:3px; height:6px; }
.sp-hc-dot { display:inline-block; width:8px; height:8px; border-radius:50%; flex:none; }
.sp-hc-cal__marks .sp-hc-dot { width:5px; height:5px; }
.sp-hc-dot--event { background:#067246; }
.sp-hc-dot--reserved { background:#f5ab0d; }
.sp-hc-cal__day--selected .sp-hc-dot--event { background:#b9edca; }
.sp-hc-cal__day--selected .sp-hc-dot--reserved { background:#ffda63; }
.sp-hc-cal__legend { margin-top:12px; padding-top:12px; border-top:1px solid #e5ebe6; display:flex; flex-wrap:wrap; gap:8px 13px; font-size:11px; font-weight:650; color:#425348; }
.sp-hc-cal__legend span { display:inline-flex; align-items:center; gap:6px; }
.sp-hc-cal__selection { border-top:1px solid #e3ebe3; margin-top:12px; padding:11px 2px 1px; }
.sp-hc-cal__selection[hidden] { display:none; }
.sp-hc-cal__selection h4 { margin:0 0 8px; color:#143d29; font-size:13px; text-transform:capitalize; }
.sp-hc-cal__selection p { margin:5px 0; font-size:12px; color:#66746b; }
.sp-hc-cal__selection ul { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.sp-hc-cal__selection li { display:flex; align-items:flex-start; gap:8px; line-height:1.32; font-size:12px; }
.sp-hc-cal__selection li .sp-hc-dot { margin-top:4px; }
.sp-hc-cal__selection li a { color:#14583c; text-decoration:none; font-weight:700; overflow-wrap:anywhere; }
.sp-hc-cal__selection li a:hover { text-decoration:underline; }
.sp-hc-cal__selection li small { display:block; margin-top:1px; color:#607065; }
.sp-hc-cal__noscript { font-size:12px; line-height:1.5; }
/* Starý malý panel akcí zůstává v kódu bez zásahu; po vložení nového přehledu se vizuálně nezdvojuje. */
.home-overview .home-panel--events { display:none!important; }
@media (max-width:1200px) {
  .sp-hc-main { grid-template-columns:minmax(0,1fr) 292px; gap:14px; }
  .sp-hc-cards { gap:10px; }
  .sp-hc-card__info { padding:12px 11px 15px; }
  .sp-hc-card__title { font-size:16px; }
}
@media (max-width:990px) {
  .sp-hc-main { grid-template-columns:1fr; gap:19px; }
  .sp-hc-events { display:block; }
  .sp-hc-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .sp-hc-cal { width:100%; }
  .sp-hc-cal__days { max-width:510px; margin-inline:auto; }
  .sp-hc-cal__weekdays { max-width:510px; margin-inline:auto; }
  .sp-hc-cal__nav { max-width:510px; margin-inline:auto; }
}
@media (max-width:620px) {
  .sp-hc { padding-top:19px; padding-bottom:20px; }
  .sp-hc-heading h2 { font-size:20px; }
  .sp-hc-heading h2 svg { width:22px; height:22px; }
  .sp-hc-all { font-size:12px; }
  .sp-hc-cards { grid-template-columns:1fr; gap:14px; }
  .sp-hc-card { width:100%; }
  .sp-hc-card__cover { aspect-ratio:1.85; }
  .sp-hc-card__info { padding:13px 14px 16px; }
  .sp-hc-card__title { font-size:19px; }
  .sp-hc-card__info p { font-size:13px; }
  .sp-hc-card__info p.sp-hc-card__date { font-size:15px; }
  .sp-hc-cal { padding:14px 12px; }
}
@media (prefers-reduced-motion:reduce) { .sp-hc-card { transition:none; } }

/* Equal bottom alignment: the left card grid and the right calendar share the main grid row. */
.sp-hc .sp-hc-main > * { min-width:0; }
.sp-hc .sp-hc-card__cover img { object-position:center; }
