/*
 * Job 2441: Latest even grid, offer tag, single offer, tenant offers.
 * Loaded after style.css. Classes here are only output for admins until
 * QC_OFFERS_LIVE is switched on, so this file changes nothing for the public.
 */

/* * * * Offer tag * * * */

.offer-tag {
  display: inline-block;
  background-color: rgba(224, 122, 62, 1);
  color: #fff;
  font-family: Graphik-Bold;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 10px 6px 10px;
  border-radius: 2px;
}


/* * * * Latest: even grid * * * */

#blog main.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 40px;
  align-items: start;
}

#blog main.latest-grid a.card {
  display: block;
  width: auto;
  color: rgba(17, 9, 0, 1);
}

#blog main.latest-grid article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
}

#blog main.latest-grid .card_image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center center;
  margin-bottom: 25px;
}

#blog main.latest-grid .card_image .offer-tag {
  position: absolute;
  top: 15px;
  left: 15px;
}

#blog main.latest-grid .card_deets {
  width: 100%;
}

#blog main.latest-grid .card_meta {
  font-family: Graphik-SemiBold;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: rgba(224, 122, 62, 1);
}

#blog main.latest-grid .card_deets h3 {
  font-family: Graphik-SemiBold;
  font-size: 21px;
  line-height: 1.25;
  width: 100%;
  margin-bottom: 15px;
}

#blog main.latest-grid .card_deets p {
  font-size: 16px;
}

#blog main.latest-grid .read-more {
  margin-top: 20px;
}

#blog main.latest-grid a.card:hover h3 {
  text-decoration: underline;
}

@media screen and (max-width: 992px) {
  #blog main.latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 30px;
  }

  #blog main.latest-grid a.card {
    width: auto;
  }
}

@media screen and (max-width: 750px) {
  #blog main.latest-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 45px;
  }

  #blog main.latest-grid .card_image {
    height: auto;
    min-height: 0;
  }

  #blog main.latest-grid .card_deets h3 {
    font-size: 20px;
  }
}


/* * * * Single offer * * * */

.single-post .introduction .offer-tag {
  margin-bottom: 20px;
}

.offer-single .offer-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 40px 0;
}

.offer-single .event-deets a {
  color: inherit;
  text-decoration: underline;
}

.offer-single .offer-link a.btn {
  display: inline-block;
  background-color: #342C1E;
  border-color: #342C1E;
  margin: 10px 0 40px 0;
}

.offer-single .offer-link a.btn:hover {
  background-color: rgba(224, 122, 62, 1);
  border-color: rgba(224, 122, 62, 1);
}


/* * * * Tenant page: current offers * * * */

.tenant-offers {
  margin: 40px 0 30px 0;
  padding-top: 30px;
  border-top: solid 1px rgba(17, 9, 0, 1);
}

.tenant-offers .title {
  font-family: Graphik-Bold;
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.tenant-offers a.tenant-offer {
  display: flex;
  align-items: center;
  gap: 25px;
  color: rgba(17, 9, 0, 1);
  margin-bottom: 25px;
}

.tenant-offer_image {
  flex: 0 0 40%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center center;
}

.tenant-offer_deets {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tenant-offer_title {
  font-family: Graphik-SemiBold;
  font-size: 19px;
  line-height: 1.25;
}

.tenant-offer_dates {
  font-size: 15px;
}

.tenant-offers .read-more {
  margin-top: 4px;
}

.tenant-offers a.tenant-offer:hover .tenant-offer_title {
  text-decoration: underline;
}

@media screen and (max-width: 450px) {
  .tenant-offers a.tenant-offer {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .tenant-offer_image {
    flex: none;
    width: 100%;
  }
}
