/**
 * IPMS Seattle external modeling-links directory
 *
 * All Links-section presentation belongs here so the PHP templates remain
 * readable and future visual changes can be made in one place.
 */

.links-hero,
.link-category-hero {
  padding: clamp(4rem, 7vw, 7rem) max(4.5vw, calc((100vw - 81.875rem) / 2));
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 7vw;
  align-items: end;
  background: #092443;
  color: #fff;
}

.links-hero h1,
.link-category-hero h1 {
  max-width: 60rem;
  margin: 1rem 0 0;
  font: 500 clamp(4rem, 8vw, 7rem) / .82 "Oswald", sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.links-hero h1 em {
  color: #f2b84b;
  font-style: normal;
}

.links-hero > div:last-child > p,
.link-category-hero > p {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: #d3ddea;
  line-height: 1.8;
}

.links-featured,
.links-directory,
.external-link-directory {
  padding: clamp(4rem, 7vw, 7rem) max(4.5vw, calc((100vw - 81.875rem) / 2));
}

.links-featured {
  background: #f5f1e8;
}

.links-section-heading {
  display: grid;
  grid-template-columns: .35fr 1fr .7fr;
  gap: 4vw;
  align-items: start;
  margin-bottom: 3rem;
}

.section-kicker {
  margin: 0;
  color: #e54b38;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.links-section-heading h2,
.external-link-directory-heading h2,
.links-maintenance-note h2 {
  margin: 0;
  font: 500 clamp(2.8rem, 5vw, 5rem) / .9 "Oswald", sans-serif;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.links-section-heading > p:last-child {
  margin: 0;
  color: #626d7b;
  line-height: 1.75;
}

.featured-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cbc7bd;
  border-left: 1px solid #cbc7bd;
}

.featured-link-grid > a {
  min-height: 18rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #cbc7bd;
  border-bottom: 1px solid #cbc7bd;
  background: #fff;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.featured-link-grid > a:hover,
.featured-link-grid > a:focus-visible {
  background: #101b33;
  color: #fff;
  outline: none;
  transform: translateY(-3px);
}

.featured-link-grid > a > span,
.external-link-grid > a > span {
  color: #e54b38;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.featured-link-grid h3,
.external-link-grid h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.featured-link-grid p {
  margin: 0;
  color: #667180;
  font-size: .78rem;
  line-height: 1.65;
}

.featured-link-grid > a:hover p,
.featured-link-grid > a:focus-visible p {
  color: #d3ddea;
}

.featured-link-grid strong,
.external-link-grid strong {
  margin-top: auto;
  padding-top: 1.5rem;
  color: #092443;
  font-size: .7rem;
  text-transform: uppercase;
}

.featured-link-grid > a:hover strong,
.featured-link-grid > a:focus-visible strong {
  color: #f2b84b;
}

.link-category-group {
  display: grid;
  grid-template-columns: minmax(12rem, .32fr) 1fr;
  border-top: 1px solid #d1d4d8;
}

.link-category-group > header {
  padding: 2rem 2rem 2rem 0;
}

.link-category-group > header span {
  display: block;
  margin-bottom: 1rem;
  color: #e54b38;
  font-size: .7rem;
  font-weight: 800;
}

.link-category-group > header h3 {
  margin: 0;
  font: 500 clamp(1.8rem, 3vw, 3rem) / 1 "Oswald", sans-serif;
  text-transform: uppercase;
}

.link-category-group > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-category-group > div > a {
  min-height: 12rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #d1d4d8;
  border-bottom: 1px solid #d1d4d8;
  transition: background-color .2s ease, color .2s ease;
}

.link-category-group > div > a:hover,
.link-category-group > div > a:focus-visible {
  background: #f2b84b;
  color: #101b33;
  outline: none;
}

.link-category-group h4 {
  margin: 0;
  font-size: 1rem;
}

.link-category-group p {
  margin: .75rem 0;
  color: #697482;
  font-size: .75rem;
  line-height: 1.55;
}

.link-category-group > div > a > span {
  margin-top: auto;
  color: #e54b38;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.links-maintenance-note {
  padding: clamp(3rem, 5vw, 5rem) max(4.5vw, calc((100vw - 81.875rem) / 2));
  display: grid;
  grid-template-columns: .7fr 1fr auto;
  gap: 5vw;
  align-items: center;
  background: #f2b84b;
  color: #101b33;
}

.links-maintenance-note p {
  line-height: 1.7;
}

.links-maintenance-note > p > span {
  display: block;
}

.links-maintenance-note > p > span + span {
  margin-top: 1rem;
}

.links-maintenance-note .button {
  white-space: nowrap;
}

.compact-note {
  margin-top: 0;
}

.external-link-directory {
  background: #f5f1e8;
}

.external-link-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.link-filter {
  width: min(100%, 26rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.link-filter span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.link-filter input {
  width: 100%;
  min-height: 3.4rem;
  padding: .8rem 1rem;
  border: 2px solid #101b33;
  background: #fff;
  color: #101b33;
  font: inherit;
}

.link-filter input:focus {
  border-color: #e54b38;
  outline: 3px solid rgba(229, 75, 56, .2);
}

.external-link-note {
  max-width: 54rem;
  margin: 0 0 2rem;
  color: #626d7b;
  line-height: 1.7;
}

.external-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #cbc7bd;
  border-left: 1px solid #cbc7bd;
}

.external-link-grid > a {
  min-height: 11rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #cbc7bd;
  border-bottom: 1px solid #cbc7bd;
  background: #fff;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.external-link-grid > a:hover,
.external-link-grid > a:focus-visible {
  background: #101b33;
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.external-link-grid > a:hover strong,
.external-link-grid > a:focus-visible strong {
  color: #f2b84b;
}

.external-link-grid > a[hidden] {
  display: none;
}

.link-filter-empty {
  padding: 3rem;
  border: 1px solid #cbc7bd;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.links-empty-state {
  padding: clamp(3rem, 6vw, 6rem);
  background: #101b33;
  color: #fff;
  text-align: center;
}

.links-empty-state h2 {
  margin: 0 0 1rem;
  font: 500 clamp(2rem, 4vw, 4rem) "Oswald", sans-serif;
  text-transform: uppercase;
}

.links-empty-state p {
  max-width: 50rem;
  margin: 0 auto;
  color: #d3ddea;
  line-height: 1.7;
}

.links-empty-state code {
  color: #f2b84b;
}

@media (max-width: 62.5rem) {
  .featured-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-category-group > div,
  .external-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 50rem) {
  .links-hero,
  .link-category-hero,
  .links-section-heading,
  .links-maintenance-note {
    grid-template-columns: 1fr;
  }

  .link-category-group {
    grid-template-columns: 1fr;
  }

  .link-category-group > header {
    padding-right: 0;
  }

  .external-link-directory-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 37.5rem) {
  .links-hero,
  .link-category-hero,
  .links-featured,
  .links-directory,
  .external-link-directory,
  .links-maintenance-note {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .links-hero h1,
  .link-category-hero h1 {
    font-size: 3.8rem;
  }

  .featured-link-grid,
  .link-category-group > div,
  .external-link-grid {
    grid-template-columns: 1fr;
  }
}
