/* ==========================================================================
   Group D — news.html, news-article.html, team.html
   All sizes in em (design px / 16, or / own font-size px).
   ========================================================================== */

/* ------------------------- Shared bits ------------------------- */

.gd-kicker {
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gd-gold {
  color: var(--color-gold);
}

.gd-section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.gd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75em;
  margin-bottom: 1.875em;
  padding-bottom: 0.375em;
  border-bottom: 1px solid var(--color-rule);
}

.gd-head__title {
  font-size: 1.5625em;
  line-height: 0.88;
  font-weight: 700;
}

.gd-head__link {
  text-decoration: underline;
}

.gd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375em;
}

/* ------------------------- Page hero (News + Team) ------------------------- */

.gd-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 30em;
  margin-top: calc(2em + 3px);
  padding: 0 var(--gutter) 2em;
  color: var(--color-cream);
}

/* soft bottom shade so cream type stays legible on light photos */
.gd-hero .bleed__media::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to bottom, rgba(5, 0, 1, 0), rgba(5, 0, 1, 0.45));
  pointer-events: none;
}

.gd-hero__title {
  max-width: 12.5em;
  font-size: 5em;
  line-height: 0.875;
  color: var(--color-cream);
}

.gd-hero__lead {
  max-width: 35em;
  margin-top: 0.875em;
  font-size: 1em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-cream);
}

/* ------------------------- News: featured ------------------------- */

.gd-featured {
  padding-top: 5.625em;
}

.gd-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.5625em;
}

.gd-feature,
.gd-side,
.gd-card {
  color: var(--color-dark);
  text-decoration: none;
}

.gd-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.gd-feature__img,
.gd-side__img,
.gd-card__img {
  overflow: hidden;
}

.gd-feature__img img,
.gd-side__img img,
.gd-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-osmo);
}

.gd-feature:hover img,
.gd-side:hover img,
.gd-card:hover img {
  transform: scale(1.04);
}

.gd-feature__img {
  height: 35em;
}

.gd-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.1818em;
  padding: 0 0.9091em;
  border: 1px solid var(--color-rule);
  font-size: 0.6875em;
  font-weight: 700;
  text-transform: uppercase;
}

.gd-feature__title {
  font-size: 3em;
  line-height: 0.9583;
}

.gd-feature__more {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.gd-featured__list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.gd-side {
  display: grid;
  grid-template-columns: 8.75em minmax(0, 1fr);
  gap: 0.875em;
  padding-bottom: 1.25em;
  border-bottom: 1px solid var(--color-line);
}

.gd-side__img {
  aspect-ratio: 1;
}

.gd-side__body {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.gd-side__title {
  font-size: 1.5em;
  line-height: 1;
}

/* ------------------------- News: all / cards ------------------------- */

.gd-all {
  padding-top: 7.5em;
  padding-bottom: 10em;
}

.gd-all .gd-head {
  padding-bottom: 0.625em;
}

.gd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3em 0.5625em;
}

.gd-card {
  display: flex;
  flex-direction: column;
  gap: 0.625em;
}

.gd-card[hidden],
.gd-person[hidden] {
  display: none;
}

.gd-card__img {
  aspect-ratio: 16 / 10;
}

.gd-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.gd-card__title {
  font-size: 1.75em;
  line-height: 1;
}

.gd-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375em;
  margin-top: 3.75em;
}

.gd-pages .tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.gd-pages .tab[aria-current="page"] {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-cream);
}

.gd-pages__gap {
  align-self: center;
}

/* ------------------------- News article ------------------------- */

.gd-article__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125em;
  max-width: 68.75em;
  margin: 0 auto;
  padding: calc(2em + 2.5em) var(--gutter) 1.875em;
  text-align: center;
}

.gd-crumbs {
  display: flex;
  gap: 0.6667em;
  color: var(--color-gold);
}

.gd-crumbs a {
  color: var(--color-gold);
  text-decoration: none;
}

.gd-crumbs a:hover {
  color: var(--color-hover);
}

.gd-article__title {
  font-size: 4.5em;
  line-height: 0.9167;
}

.gd-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.3333em;
}

.gd-article__image {
  width: calc(100% - 2 * var(--gutter));
  height: 40em;
  margin: 0 var(--gutter);
  object-fit: cover;
}

.gd-article__grid {
  display: grid;
  grid-template-columns: 12.5em minmax(0, 45em) 12.5em;
  justify-content: center;
  gap: 3.75em;
  padding: 5em var(--gutter) 0;
}

.gd-share {
  position: sticky;
  top: 5em;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
}

.gd-share__copy {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  color: var(--color-dark);
  cursor: pointer;
  transition: color 0.2s ease;
}

.gd-share__copy:hover {
  color: var(--color-hover);
}

.gd-prose p {
  margin: 0 0 1em;
  font-size: 1.125em;
  line-height: 1.5;
  font-weight: 500;
}

.gd-prose .gd-prose__lead {
  margin-bottom: 0.8182em;
  font-size: 1.375em;
  line-height: 1.3636;
}

.gd-prose h2 {
  margin: 1.2222em 0 0.3889em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.25em;
  line-height: 1.0556;
}

.gd-prose figure {
  margin: 2.25em 0;
}

.gd-prose figure img {
  width: 100%;
  height: auto;
}

.gd-prose figcaption {
  margin-top: 0.6667em;
}

.gd-prose blockquote {
  margin: 1.0588em 0;
  padding-left: 0.5882em;
  border-left: 2px solid var(--color-dark);
  font-size: 2.125em;
  line-height: 1.0588;
}

.gd-more {
  padding-top: 8.75em;
  padding-bottom: 10em;
}

/* ------------------------- Team ------------------------- */

.gd-team {
  padding-top: 3.75em;
  padding-bottom: 10em;
}

.gd-team__tabs {
  margin-bottom: 2.5em;
}

.gd-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.5em 0.5625em;
}

.gd-person {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.gd-person__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: var(--color-leaf);
  border: 1px solid var(--color-line);
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
}

.gd-person__name {
  margin-top: 0.3077em;
  font-size: 0.8125em;
  font-weight: 700;
  text-transform: uppercase;
}

.gd-person__role {
  font-size: 1.25em;
  line-height: 1;
}

.gd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25em;
  margin-top: 6.25em;
  padding: 1.75em;
  border: 1px solid var(--color-line);
}

.gd-cta__title {
  margin-bottom: 0.1667em;
  font-size: 2.25em;
  line-height: 1;
}

.gd-cta__text {
  font-size: 0.9375em;
  font-weight: 500;
}

.btn-dark.gd-cta__btn {
  min-height: 3.6667em;
  min-width: 16.6667em;
  font-size: 0.75em;
  text-transform: uppercase;
}

/* ------------------------- Tablet ------------------------- */

@media screen and (max-width: 991px) {
  .gd-hero {
    height: 26em;
  }

  .gd-hero__title {
    font-size: 4em;
  }

  .gd-featured__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5em;
  }

  .gd-feature__img {
    height: 28em;
  }

  .gd-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-article__title {
    font-size: 3.5em;
  }

  .gd-article__image {
    height: 28em;
  }

  .gd-article__grid {
    grid-template-columns: minmax(0, 45em);
    gap: 2em;
    padding-top: 3em;
  }

  .gd-share {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.3333em;
  }

  .gd-article__spacer {
    display: none;
  }

  .gd-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------- Mobile ------------------------- */

@media screen and (max-width: 767px) {
  .gd-section {
    padding-left: 0.5625em;
    padding-right: 0.5625em;
  }

  .gd-hero {
    height: 22em;
    margin-top: calc(2.3125em + 3px);
    padding: 0 0.5625em 1.5em;
  }

  .gd-hero__title {
    font-size: 2.75em;
    line-height: 0.9091;
  }

  .gd-hero__lead {
    font-size: 0.9375em;
  }

  .gd-head {
    margin-bottom: 1.5em;
  }

  .gd-all .gd-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gd-featured {
    padding-top: 3.5em;
  }

  .gd-feature__img {
    height: 20em;
  }

  .gd-feature__title {
    font-size: 2em;
    line-height: 1;
  }

  .gd-side {
    grid-template-columns: 6.5em minmax(0, 1fr);
  }

  .gd-side__title {
    font-size: 1.25em;
  }

  .gd-all {
    padding-top: 5em;
    padding-bottom: 7em;
  }

  .gd-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.25em;
  }

  .gd-card__title {
    font-size: 1.5em;
  }

  .gd-article__head {
    padding: calc(2.3125em + 2em) 0.5625em 1.5em;
    gap: 1em;
  }

  .gd-article__title {
    font-size: 2.75em;
    line-height: 0.9091;
  }

  .gd-article__image {
    width: calc(100% - 1.125em);
    height: 20em;
    margin: 0 0.5625em;
  }

  .gd-article__grid {
    padding: 2.5em 0.5625em 0;
  }

  .gd-prose p {
    font-size: 1em;
  }

  .gd-prose .gd-prose__lead {
    font-size: 1.25em;
    line-height: 1.3;
  }

  .gd-prose h2 {
    font-size: 1.875em;
  }

  .gd-prose blockquote {
    font-size: 1.625em;
  }

  .gd-more {
    padding-top: 6em;
    padding-bottom: 7em;
  }

  .gd-team {
    padding-top: 2.5em;
    padding-bottom: 7em;
  }

  .gd-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2em;
  }

  .gd-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 4em;
    padding: 1.25em;
  }

  .gd-cta__title {
    font-size: 1.875em;
  }

  .btn-dark.gd-cta__btn {
    min-width: 0;
  }
}
