/* Shared by overview card grids. Keep the theme's typography, gutters and colours. */
.overview-card-grid .teasure-left-box {
  flex-wrap: nowrap;
}

.overview-card-grid .teasure-left-img {
  align-self: center;
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.overview-card-grid .teasure-left-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-card-grid .teasure-left-info {
  align-self: stretch;
  margin-top: 0;
  min-width: 0;
}

.overview-card-grid .teasure-left-grid {
  display: block;
}

.overview-card-grid .teasure-left-grid:has(> ul + ul) {
  display: flex;
}

.overview-card-grid .teasure-left-grid p + p {
  margin-top: .75rem;
}

@media (max-width: 1350.75px) {
  .overview-card-grid .teasure-left-box {
    display: flex;
    flex-direction: column;
  }

  .overview-card-grid .teasure-left-info {
    flex: 1 0 auto;
  }
}

/* Homepage: allow all three panels to grow with their navigation links. */
#page-1 .teasure-inner .row > .col-12 {
  display: flex;
}

#page-1 .teasure-inner .teasure-box {
  width: 100%;
}

#page-1 .teasure-inner .teasure-blog {
  display: flex;
  flex-direction: column;
}

#page-1 .teasure-inner .teasure-blog .teasure-blog-info {
  height: auto;
  flex: 1 0 auto;
}

#page-1 .teasure-inner .home-secondary-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: .25rem .5rem;
  margin-top: .65rem;
  padding-right: 0;
}

#page-1 .teasure-inner .home-secondary-links li {
  margin-bottom: 0;
}

#page-1 .teasure-inner .home-secondary-links a {
  text-transform: none;
}
