/* ZEMČÁK Reality – blog. Jedna aktívna sada pravidiel. */
body.path-blog main {
  background: #fff !important;
}

.zr-blog-page {
  --zr-orange: #f9a11b;
  --zr-navy: #101827;
  --zr-muted: #667085;
  --zr-line: rgba(16, 24, 39, .12);
  --zr-soft: #f6f7f9;
  padding: 0 0 clamp(3.5rem, 6vw, 5.5rem);
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  font-family: var(--zr-font-sans);
}

.zr-blog-page *,
.zr-blog-page *::before,
.zr-blog-page *::after {
  box-sizing: border-box;
}

.zr-blog-container {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.zr-blog-intro {
  max-width: 58rem;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 3vw, 2.8rem);
}

.zr-blog-intro h1 {
  margin: 0 0 1rem;
  color: var(--zr-navy);
  font-family: var(--zr-font-display);
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.zr-blog-intro > p {
  max-width: 50rem;
  margin: 0;
  color: var(--zr-muted);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.7;
}

.zr-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: clamp(1.3rem, 3vw, 2.4rem);
  align-items: start;
}

.zr-blog-main .view-content {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.3rem !important;
}

.zr-blog-main .views-row {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.zr-blog-card {
  display: grid;
  grid-template-columns: minmax(15rem, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--zr-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .8rem 2rem rgba(16, 24, 39, .075);
}

.zr-blog-card__media {
  min-height: 17rem;
  display: block;
  overflow: hidden;
  background: #e9eef5;
}

.zr-blog-card__media > *,
.zr-blog-card__media .field,
.zr-blog-card__media .field__item {
  width: 100%;
  height: 100%;
}

.zr-blog-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
}

.zr-blog-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.zr-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-bottom: .75rem;
  color: var(--zr-muted);
  font-size: .84rem;
}

.zr-blog-card__meta .field,
.zr-blog-card__meta .field__items {
  display: flex;
  gap: .35rem;
  margin: 0;
}

.zr-blog-card__title {
  margin: 0 0 .7rem !important;
  font-size: clamp(1.3rem, 2vw, 1.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -.018em !important;
}

.zr-blog-card__title a {
  color: var(--zr-navy) !important;
  text-decoration: none !important;
}

.zr-blog-card__excerpt {
  margin: 0 0 1.2rem;
  color: var(--zr-muted);
  line-height: 1.65;
}

.zr-blog-card__link {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: .75rem 1.05rem;
  border-radius: .7rem;
  background: var(--zr-orange);
  color: #111827 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.zr-blog-sidebar {
  position: sticky;
  top: 6rem;
  min-width: 0;
  max-width: 100%;
}

/*
 * Globálny .container má na desktope pevnú šírku. V bočnom paneli blogu by
 * preto názvy článkov počítali riadok podľa šírky stránky a panel by ich orezal.
 */
body.path-blog .zr-blog-sidebar .region-sidebar,
body.path-blog .zr-blog-sidebar .region-sidebar > .container {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.path-blog .zr-blog-sidebar > *,
body.path-blog .zr-blog-sidebar .block {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 0 0 1rem !important;
  padding: 1.15rem !important;
  border: 1px solid var(--zr-line) !important;
  border-radius: 1rem !important;
  background: #fff !important;
  box-shadow: 0 .6rem 1.6rem rgba(16, 24, 39, .055) !important;
}

.zr-blog-sidebar h2,
.zr-blog-sidebar h3 {
  margin: 0 0 .75rem !important;
  color: var(--zr-navy) !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
}

.zr-blog-sidebar ul {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.path-blog .zr-blog-sidebar li {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  padding: .55rem 0 !important;
  border-bottom: 1px solid rgba(16, 24, 39, .08);
}

.zr-blog-sidebar li:last-child {
  border-bottom: 0;
}

body.path-blog .zr-blog-sidebar .views-field,
body.path-blog .zr-blog-sidebar .field-content,
body.path-blog .zr-blog-sidebar a {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

body.path-blog .zr-blog-sidebar a {
  color: #1d2939 !important;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  -webkit-line-clamp: unset !important;
}

@media (max-width: 61.98rem) {
  .zr-blog-layout {
    grid-template-columns: 1fr;
  }

  .zr-blog-sidebar {
    position: static;
  }
}

@media (max-width: 43.98rem) {
  .zr-blog-container {
    width: min(100% - 1.25rem, 100%);
  }

  .zr-blog-card {
    grid-template-columns: 1fr;
  }

  .zr-blog-card__media {
    min-height: 14rem;
  }
}
