/*
 * Homepage Sticky News.
 * The sidebar remains a normal grid column.
 * The actual sticky panel stays visible while the homepage content scrolls.
 */

.homepage-content__sidebar {
  align-self: stretch;
  min-width: 0;
  width: 100%;
}

/* Sticky panel */
.homepage-content__sidebar .sticky-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 112px;

  display: flex;
  flex-direction: column;

  height: clamp(460px, calc(100vh - 140px), 720px);
  min-height: 0;

  overflow: hidden;

  border-top: 5px solid var(--maroon);
  background: #fff;
  box-shadow: 0 2px 14px rgba(35, 20, 16, 0.08);
}

/* Panel heading */
.homepage-content__sidebar .sticky-panel__heading {
  flex: 0 0 auto;
  padding: 15px 18px 13px;
  background: #f0e9e4;
  border-bottom: 2px solid var(--gold);
}

.homepage-content__sidebar .sticky-panel__heading .section-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--maroon);
  font:
    700 0.62rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.homepage-content__sidebar .sticky-panel h2 {
  margin: 0;
  color: var(--maroon);
  font:
    400 1.08rem/1.1 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* News items */
.homepage-content__sidebar .sticky-panel__items {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0 15px;
}

.homepage-content__sidebar .sticky-news {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-height: 0;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.homepage-content__sidebar .sticky-news img {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.homepage-content__sidebar .sticky-news > span {
  display: block;
  min-width: 0;
}

.homepage-content__sidebar .sticky-news .insight-meta {
  display: block;
  margin: 0 0 6px;
  color: var(--maroon);
  font:
    700 0.56rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.homepage-content__sidebar .sticky-news strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.homepage-content__sidebar .sticky-news:hover strong {
  color: var(--maroon);
}

.homepage-content__sidebar .sticky-news:hover img {
  transform: scale(1.03);
}

/* More link */
.homepage-content__sidebar .sticky-panel__more {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 14px 15px 16px;
  color: var(--maroon);
  font:
    700 0.63rem/1 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homepage-content__sidebar .sticky-panel__more span {
  font:
    400 1rem/1 Georgia,
    "Times New Roman",
    serif;
  transition: transform 0.22s ease;
}

.homepage-content__sidebar .sticky-panel__more:hover {
  color: var(--green);
}

.homepage-content__sidebar .sticky-panel__more:hover span {
  transform: translateX(4px);
}

/* Desktop */
@media (min-width: 961px) {
  .homepage-content__sidebar {
    position: static;
    align-self: stretch;
  }

  .homepage-content__sidebar .sticky-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 112px;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .homepage-content__sidebar {
    position: static;
    align-self: start;
  }

  .homepage-content__sidebar .sticky-panel {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .homepage-content__sidebar .sticky-news {
    padding: 8px 0;
  }

  .homepage-content__sidebar .sticky-news img {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .homepage-content__sidebar {
    align-self: auto;
    position: static;
  }

  .homepage-content__sidebar .sticky-panel {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .homepage-content__sidebar .sticky-panel__items {
    display: block;
    flex: none;
    padding: 0;
  }

  .homepage-content__sidebar .sticky-news {
    min-height: 0;
    padding: 15px 0;
  }

  .homepage-content__sidebar .sticky-news img {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .homepage-content__sidebar .sticky-panel__more {
    margin-top: 15px;
    padding-left: 0;
    padding-right: 0;
  }
}
.homepage-content__sidebar .sticky-panel__more {
  color: #fff;
  background: var(--maroon);
}

.homepage-content__sidebar .sticky-panel__more:hover {
  color: #fff;
  background: var(--green);
}