/**
 * @file
 * AAG Award Content — scoped with .aag-layout.
 * Ported from aag-base/components/award-content/award-content.css.
 */

.aag-layout .award-content {
  width: 100%;
  position: relative;
}

.aag-layout .award-content__hero {
  position: relative;
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.aag-layout .award-content__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  opacity: 0.25;
  pointer-events: none;
}

@media (min-width: 600px) {
  .aag-layout .award-content__hero {
    min-height: 34rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .award-content__hero {
    min-height: 38rem;
  }
}

.aag-layout .award-content__hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.aag-layout .award-content__hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
  filter: grayscale(100%);
}

.aag-layout .award-content__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(247, 246, 245, 0.96) 0%,
    rgba(247, 246, 245, 0.9) 34%,
    rgba(247, 246, 245, 0.55) 62%,
    rgba(247, 246, 245, 0.16) 100%
  );
}

.aag-layout .award-content__hero-main {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 5.5rem;
}

/*
 * Ref parity: at desktop the sidebar occupies 330px on the left of the
 * full-bleed hero. Shift hero-main (title copy) and main (content panel)
 * to start right of the sidebar so they are never clipped behind it.
 * Matches aag-base/components/award-content/award-content.css lines 73–85.
 */
@media (min-width: 900px) {
  .aag-layout .award-content__hero-main {
    margin-left: 330px;
    width: calc(100% - 330px);
    padding-bottom: 7rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .award-content__hero-main {
    margin-left: 359px;
    width: calc(100% - 359px);
  }
}

.aag-layout .award-content__container {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .aag-layout .award-content__container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .award-content__container {
    max-width: 950px;
  }
}

@media (min-width: 1200px) {
  .aag-layout .award-content__container {
    max-width: 1000px;
  }
}

@media (min-width: 1800px) {
  .aag-layout .award-content__container {
    max-width: 1100px;
  }
}

.aag-layout .award-content__hero-layout {
  width: 100%;
  max-width: 32rem;
  display: block;
}

.aag-layout .award-content__hero-copy {
  max-width: 24rem;
  padding-bottom: 2rem;
}

.aag-layout .award-content__hero-copy span {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--header-font-family);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--black);
}

.aag-layout .award-content__hero-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.02;
}

@media (min-width: 600px) {
  .aag-layout .award-content__hero-copy h1 {
    font-size: 2rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .award-content__hero-copy h1 {
    font-size: 2.3rem;
  }
}

.aag-layout .award-content__main {
  position: relative;
  z-index: 20;
  width: 100%;
}

@media (min-width: 900px) {
  .aag-layout .award-content__main {
    margin-left: 330px;
    width: calc(100% - 330px);
  }
}

@media (min-width: 1200px) {
  .aag-layout .award-content__main {
    margin-left: 359px;
    width: calc(100% - 359px);
  }
}

.aag-layout .award-content__panel {
  background-color: var(--white);
  margin-top: -4.5rem;
  padding: 1.25rem 1.125rem;
}

@media (min-width: 600px) {
  .aag-layout .award-content__panel {
    margin-top: -6rem;
    padding: 1.6rem 1.7rem;
    max-width: 43.5rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .award-content__panel {
    margin-top: -7rem;
    padding: 1.85rem 2rem;
    max-width: 46.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .award-content__panel {
    max-width: 48rem;
  }
}

.aag-layout .award-content__intro p,
.aag-layout .award-content__body p {
  margin: 0 0 0.9rem 0;
  font-size: 0.84rem;
  line-height: 1.52;
  color: var(--black);
}

.aag-layout .award-content__intro p:last-child,
.aag-layout .award-content__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .aag-layout .award-content__intro p,
  .aag-layout .award-content__body p {
    font-size: 0.86rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .award-content__intro p,
  .aag-layout .award-content__body p {
    font-size: 0.88rem;
  }
}

.aag-layout .award-content__finalists {
  margin-top: 1.55rem;
}

.aag-layout .award-content__finalists h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
}

.aag-layout .award-content__finalists-group--spaced {
  margin-top: 1.4rem;
}

.aag-layout .award-content__finalists h2.award-content__finalists-subheading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 600px) {
  .aag-layout .award-content__finalists h2.award-content__finalists-subheading {
    font-size: 0.8rem;
  }
}

.aag-layout .award-content__finalists-grid {
  margin-top: 0.7rem;
  border-top: 1px dashed var(--gray);
}

.aag-layout .award-content__finalists-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  border-bottom: 1px dashed var(--gray);
  padding: 0.7rem 0;
}

@media (min-width: 600px) {
  .aag-layout .award-content__finalists-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

.aag-layout .award-content-finalist {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.65rem;
  align-items: center;
}

@media (min-width: 600px) {
  .aag-layout .award-content-finalist {
    grid-template-columns: 4.15rem 1fr;
  }
}

.aag-layout .award-content-finalist__image {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  background-color: var(--light-gray);
}

@media (min-width: 600px) {
  .aag-layout .award-content-finalist__image {
    width: 4.15rem;
    height: 4.15rem;
  }
}

.aag-layout .award-content-finalist__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
 * Initials circle — shown in place of a photo thumbnail.
 * The background colour cycles through a warm palette (8 steps) using
 * the `data-palette` attribute set by preprocess (0–7). Matches the
 * beige/taupe treatment in the aag-base ref.
 */
.aag-layout .award-content-finalist__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--header-font-family);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  background-color: #a89080; /* default / palette-0 */
  border-radius: inherit;
  user-select: none;
}

.aag-layout .award-content-finalist__initials[data-palette="0"] { background-color: #a89080; }
.aag-layout .award-content-finalist__initials[data-palette="1"] { background-color: #8a9a8e; }
.aag-layout .award-content-finalist__initials[data-palette="2"] { background-color: #7d8fa0; }
.aag-layout .award-content-finalist__initials[data-palette="3"] { background-color: #b09070; }
.aag-layout .award-content-finalist__initials[data-palette="4"] { background-color: #9a8878; }
.aag-layout .award-content-finalist__initials[data-palette="5"] { background-color: #8a9888; }
.aag-layout .award-content-finalist__initials[data-palette="6"] { background-color: #929080; }
.aag-layout .award-content-finalist__initials[data-palette="7"] { background-color: #b09888; }

.aag-layout .award-content-finalist__details h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

.aag-layout .award-content-finalist__details p {
  margin: 0.22rem 0 0 0;
  font-size: 0.76rem;
  line-height: 1.38;
}

.aag-layout .award-content__body {
  margin-top: 1.4rem;
}
