@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&display=swap");

html,
body,
body *,
button,
input,
select,
textarea {
  font-family: "Lato", Arial, Helvetica, sans-serif !important;
}
.contact-page address {
  font-style: normal;
  line-height: 1.7;
}

.paper-links-inline {
  font-size: 13px;
  font-weight: 400;
}

.social-icon.bluesky {
  background: #1185fe;
}

/* Consistent typography for all research entries. */
.research-page .coauthors,
.research-page .meta,
.research-page .funding,
.research-page .project > p,
.reports > li > .item-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  margin: 2px 0;
}

.reports > li > .item-meta {
  display: block;
}

.reports > li > strong {
  color: #222;
  font-size: 14.5px;
  line-height: 1.4;
}

.reports .paper-links-inline {
  display: inline;
  color: inherit;
  margin: 0;
}
.resource-links {
  font-size: 13px;
  font-weight: 400;
}

.brand,
.brand-logos {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  flex-shrink: 0;
}

.brand-logos {
  gap: 5px;
}

.brand-logos a {
  display: inline-flex;
}

.brand-logos img {
  width: 27px;
  height: 27px;
  border-radius: 4px;
  object-fit: cover;
}

.brand-name {
  color: #222;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
/* Match the desktop portrait height to the adjacent introduction text. */
.intro {
  align-items: stretch;
}

.portrait-frame {
  position: relative;
  width: 190px;
  min-height: 0;
  overflow: hidden;
}

.portrait-frame .portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 650px) {
  .portrait-frame {
    width: 170px;
    aspect-ratio: 1280 / 1574;
  }
}
.social-icon.repec {
  background: #2f4f6f;
}

/* Tyler Ransom-style icon and label links. */
.profiles a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.profiles i {
  width: 1.1em;
  color: currentColor;
  font-size: 1.05em;
  text-align: center;
}
/* Preserve the icon libraries against the global Lato font rule. */
.fa,
.fas,
.far {
  font-family: "Font Awesome 6 Free" !important;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
}

.ai {
  font-family: "Academicons" !important;
}
.profiles .profile-icon {
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
}

/* Mobile layout refinements. */
.profiles > a:not(.profile-text) {
  width: 28px;
  height: 28px;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
}

.profiles .profile-icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 650px) {
  body {
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0 10px;
  }

  .brand {
    width: 100%;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    margin-top: 2px;
  }

  nav a {
    padding: 7px 4px;
    font-size: 13.5px;
    text-align: center;
  }

  .home,
  .page {
    padding-top: 26px;
    padding-bottom: 46px;
  }

  .intro {
    gap: 20px;
  }

  .portrait-frame {
    width: min(210px, 68vw);
    margin: 0 auto;
  }

  .intro h1 {
    font-size: 26px !important;
  }

  .profiles {
    gap: 7px;
    margin-top: 15px;
  }

  .profiles > a:not(.profile-text) {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .profiles .profile-icon {
    width: 19px;
    height: 19px;
  }

  .profiles .profile-text {
    min-height: 36px;
    padding: 0 5px;
  }

  .research-page h3,
  .home-research h3,
  .reports > li > strong {
    line-height: 1.5;
  }

  .paper-links-inline,
  .resource-links {
    line-height: 1.75;
  }

  .pdf {
    height: 62vh;
    min-height: 420px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 15px;
  }

  .brand-logos img {
    width: 25px;
    height: 25px;
  }

  nav a {
    font-size: 13px;
  }
}
.fields-label {
  font-weight: 700;
}

.profile-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
}
/* Tight mobile header-to-portrait spacing. */
@media (max-width: 650px) {
  header {
    gap: 5px;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  nav a {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .home {
    padding-top: 14px;
  }

  .intro {
    gap: 14px;
  }

  .portrait-frame {
    width: min(190px, 60vw);
    margin: 0;
  }
}
.affiliation-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.affiliation-link img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.x-thread-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.x-thread-link .fa-x-twitter {
  font-size: 0.9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 420px) {
  .affiliation-link {
    white-space: normal;
  }
}
/* Justified abstract text. */
.research-page details p,
.home-research details p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* Correct mobile header stacking. */
@media (max-width: 650px) {
  header {
    flex-direction: column;
    justify-content: flex-start;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-name {
    white-space: nowrap;
  }
}
/* Balance mobile introduction typography with research entries. */
@media (max-width: 650px) {
  .intro h1 {
    font-size: 23px !important;
    margin-bottom: 10px;
  }

  .intro p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .intro .fields {
    font-size: 13px;
  }
}
/* Affiliation links match surrounding prose. */
.affiliation-link,
.affiliation-link:visited,
.affiliation-link:hover,
.affiliation-link:active {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
}