/* Styly pro obsah načítaný ze Sanity (aktuality + akce + kalendář). */
#sanity-aktuality article {
  margin: 0 0 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}
#sanity-aktuality .entry-meta {
  font-size: 0.8em;
  color: #767676;
  margin-bottom: 0.3em;
}
#sanity-aktuality .entry-title {
  margin: 0 0 0.5em;
}
#sanity-aktuality .post-thumbnail {
  margin: 0 0 1em;
}
#sanity-aktuality .post-thumbnail img {
  max-width: 100%;
  height: auto;
}
.sanity-links a {
  font-weight: 600;
}

/* Stránkování aktualit */
.sanity-pager {
  margin: 1em 0 2em;
}
.sanity-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  align-items: center;
}
.sanity-pager .page-numbers {
  display: inline-block;
  padding: 0.35em 0.7em;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  line-height: 1;
}
.sanity-pager .page-numbers.current {
  background: #222;
  color: #fff;
  border-color: #222;
}
.sanity-pager .page-numbers.dots {
  border: 0;
  padding: 0.35em 0.2em;
}

/* Akce – seznam (sidebar) */
ul.sanity-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.sanity-events li.sanity-event {
  margin: 0 0 1em;
  padding: 0 0 1em;
  border-bottom: 1px solid #eee;
}
ul.sanity-events li.sanity-event:last-child {
  border-bottom: 0;
}
.sanity-event-date {
  display: block;
  font-size: 0.85em;
  color: #767676;
}
.widget ul.sanity-events li.sanity-event {
  font-size: 0.9em;
}

/* Měsíční kalendář */
.sanity-calendar {
  max-width: 640px;
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75em;
}
.cal-title {
  font-weight: 700;
  font-size: 1.2em;
  text-transform: capitalize;
}
.cal-nav {
  background: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.2em;
  line-height: 1;
  padding: 0.2em 0.7em;
  cursor: pointer;
}
.cal-nav:hover {
  background: #e6e6e6;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekdays {
  margin-bottom: 4px;
}
.cal-wd {
  text-align: center;
  font-size: 0.8em;
  font-weight: 700;
  color: #767676;
  padding: 0.3em 0;
}
.cal-cell {
  position: relative;
  min-height: 2.6em;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.25em;
  background: #fafafa;
}
.cal-cell.cal-empty {
  border: 0;
  background: transparent;
}
.cal-num {
  font-size: 0.85em;
  color: #444;
}
.cal-cell.is-today {
  border-color: #999;
}
.cal-cell.is-today .cal-num {
  font-weight: 700;
}
.cal-cell.has-event {
  background: #fff4e5;
  border-color: #f0b866;
  cursor: pointer;
}
.cal-cell.has-event:hover {
  background: #ffe9cc;
}
.cal-cell.is-selected {
  outline: 2px solid #e0912f;
  outline-offset: -1px;
}
.cal-dot {
  position: absolute;
  bottom: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0912f;
}
.cal-details {
  margin-top: 1em;
  padding-top: 0.75em;
  border-top: 1px solid #eee;
}
.cal-details.cal-hint {
  color: #767676;
  font-size: 0.9em;
}
.cal-detail-item {
  margin-bottom: 1em;
}
