/* ==========================================================================
   responsive.css
   Makes index.html and publications.html fit phones, tablets and computers.

   It is loaded AFTER index.css / publications.css and replaces their fixed
   pixel widths and heights with sizes that follow the screen. The colours,
   fonts and overall design still come from style.css, index.css and
   publications.css - those three files are unchanged.

   You should not need to edit this file to change text or add a paper.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Both pages: top menu
   -------------------------------------------------------------------------- */
body .home-header,
body .publications-header {
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  margin: 0 auto;
  pointer-events: none;            /* the invisible strip no longer blocks taps */
}
body .home-nav,
body .publications-nav {
  pointer-events: auto;
  -webkit-backdrop-filter: saturate(200%) blur(30px);   /* frosted glass on older iPhones */
}
/* unused pop-up menu left over from the page builder */
body .home-burger-menu,
body .publications-burger-menu,
body .home-mobile-menu,
body .publications-mobile-menu {
  display: none !important;
}


/* --------------------------------------------------------------------------
   2. Home page: header card and large photo
   -------------------------------------------------------------------------- */
body .home-hero {
  width: 100%;
}
body .home-card {
  -webkit-backdrop-filter: saturate(200%) blur(30px);
}
body .home-image1 {
  right: 0;
  width: 1256px;
  max-width: 100%;
}
/* Round headshot. On a computer it overlaps the right edge of the white box
   and the building photo.
     --headshot-size    : diameter of the circle
     --headshot-overlap : how much of the circle sits on the white box */
body .home-card {
  --headshot-size: 300px;
  --headshot-overlap: calc(var(--headshot-size) * 0.35);
  position: relative;
}
body .home-headshot {
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--headshot-size);
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translate(-35%, -50%);
  z-index: 2;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px -6px rgba(20, 20, 20, 0.45);
}
@media (min-width: 992px) {
  /* keep each title on one line; the box widens if needed and the text
     always stops short of the headshot */
  body .home-card {
    min-width: min-content;
    padding-right: calc(var(--headshot-overlap) + 1.5rem);
  }
  body .home-text11 {
    margin-right: 0;
    padding-right: 0;
  }
  body .home-text12 {
    white-space: nowrap;
  }
}


/* --------------------------------------------------------------------------
   3. Home page: biography
   -------------------------------------------------------------------------- */
body .home-container20 {
  width: 100%;
  max-width: 1320px;
  height: auto;
  align-self: center;
  padding: 70px 3rem 6rem;
}
body .home-container21 {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}
body .home-text26 {
  width: auto;
  height: auto;
  text-align: center;
}
body .home-container22 {
  width: 100%;
  height: auto;
  padding: 61px 0 91px;
}
body .home-heading1 {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
  width: 100%;
  max-width: 745px;
  height: auto;
  padding: 0;
}
body .home-quote {
  display: block;
  text-align: center;
}
body .home-text36 {
  display: block;
  text-align: right;
  font-style: italic;
  font-weight: 300;
}
body .home-text37 {
  width: 100%;
  height: auto;
  color: var(--dl-color-secondary-400);
  text-align: justify;
}


/* --------------------------------------------------------------------------
   4. Home page: Research Spotlight (pink section with rotating slides)
   -------------------------------------------------------------------------- */
body .home-testimonials {
  width: 100%;
  height: auto;
  min-height: 1009px;
  justify-content: flex-start;
  padding: 235px 1.5rem 6rem;
}
body .home-image6 {                /* faint wave pattern */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
body .home-top-wave-image {        /* white wave along the top edge */
  left: 0;
  right: 0;
  width: 100%;
}
body .home-container27 {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0 0 82px;
}
body .home-heading2 {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 3rem;
  line-height: 1.3;
  text-align: center;
  color: rgb(251, 251, 253);
}
body .home-container28 {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  padding: 0;
}
body .home-slider {
  width: 500px;
  max-width: 100%;
  height: 300px;
}
body .home-slider-wrapper {
  height: 100%;
}
body .home-slider-slide1,
body .home-slider-slide2,
body .home-slider-slide3 {
  height: 100%;
}
body .home-pasted-image1,
body .home-pasted-image2,
body .home-pasted-image3 {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}
body .home-text50,
body .home-text51,
body .home-text55 {
  width: 100%;
  max-width: 431px;
  height: auto;
  margin: 11px 0 0;
  padding: 0;
  align-self: flex-start;
  font-size: 2rem;
  line-height: 1.625;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);   /* keeps the white title readable over the picture */
}
body .home-text55 {                /* third slide: title sits at the bottom */
  align-self: flex-end;
  margin: 0 0 11px;
}


/* --------------------------------------------------------------------------
   5. Home page: Tepper Insights (media coverage)
   -------------------------------------------------------------------------- */
body .home-contaier {
  width: 100%;
  height: auto;
}
body .home-pasted-image4 {         /* featured picture keeps its true proportions */
  flex: 0 0 67%;
  width: 67%;
  min-width: 0;
  height: auto;
}
body .home-container32 {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
body .home-container34 {
  height: auto;
}
body .home-container35 {
  min-width: 0;
}

/* "Talk and Meet!" card with the Tepper entrance photo */
body .home-container40 {
  flex: 0 0 auto;
  overflow: hidden;
  background-image: none;
  background-color: var(--dl-color-secondary-600);
}
body .home-container41 {           /* dark tint over the photo so the white text stays readable */
  background: rgba(0, 0, 0, 0.5);
}
body .home-talk-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .home-pasted-image5 {
  max-width: 100%;
}


/* --------------------------------------------------------------------------
   6. Publications page
   -------------------------------------------------------------------------- */
body .publications-container1 {
  min-height: 100vh;
}
.pubs-main {
  width: 100%;
  max-width: 1320px;
  padding: 194px 3rem 4rem;
}
body .publications-text2 {         /* "Research Interests:" */
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 3rem;
  line-height: 1.625;
}
.pubs-interests {
  margin: 0 0 1.625rem;
  color: #111112;
}
.pubs-heading {                    /* "Publications:" and "Research Paper(s) in Progress:" */
  margin: 0 0 1.625rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.625;
}
.pubs-item {                       /* one paper */
  margin: 0 0 1.625rem;
  overflow-wrap: break-word;
}
.pubs-item a {
  text-decoration: underline;
}
@media (min-width: 1601px) {
  .pubs-main {
    padding-top: 168px;
  }
}


/* --------------------------------------------------------------------------
   7. Small computers and tablets in landscape (1200px and narrower)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .pubs-main {
    padding-top: 115px;
  }
}


/* --------------------------------------------------------------------------
   8. Tablets (991px and narrower)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body .home-container20 {
    padding: 70px 2rem 5rem;
  }
  body .home-testimonials {
    min-height: 0;
    padding: 11rem 1.5rem 7rem;
  }
  body .home-container27 {
    margin-bottom: 4rem;
  }
  body .home-pasted-image4 {
    flex-basis: 52%;
    width: 52%;
  }
  body .home-container32 {
    margin-left: 2rem;
  }
  body .home-container35 {
    flex: 1 1 0;
    width: auto;
    margin-right: 2rem;
  }
  body .home-container40 {
    padding: 4.5rem 3.5rem 2rem;
  }
  .pubs-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}


/* --------------------------------------------------------------------------
   9. Phones and small tablets (767px and narrower)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* header card sits just under the menu instead of floating mid-screen */
  body .home-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  body .home-container13 {
    min-height: 0;
    padding: 4rem 0 1rem;
  }
  body .home-card {
    width: 100%;
  }

  /* biography */
  body .home-container20 {
    padding: 2.5rem 1.25rem 4rem;
  }
  body .home-text26 {
    font-size: 1.875rem;
  }
  body .home-container22 {
    padding: 2rem 0 2.5rem;
  }
  body .home-heading1 {
    row-gap: 0.75rem;
    font-size: 1.05rem;
  }
  body .home-text37 {
    text-align: left;
  }

  /* research spotlight */
  body .home-testimonials {
    padding: 7.5rem 1.25rem 5rem;
  }
  body .home-container27 {
    margin-bottom: 2.5rem;
  }
  body .home-heading2 {
    font-size: 2.25rem;
  }
  body .home-slider {
    height: min(300px, 58vw);
  }
  body .home-text50,
  body .home-text51,
  body .home-text55 {
    max-width: none;
    padding: 0 0.75rem;
    font-size: clamp(1.15rem, 5.4vw, 2rem);
    line-height: 1.45;
  }

  /* tepper insights */
  body .home-contaier {
    padding: 4rem 1.25rem;
  }
  body .home-container29 {
    width: 100%;
  }
  body .home-pasted-image4 {
    flex: 0 0 auto;
    width: 100%;
  }
  body .home-container32 {
    flex: 0 0 auto;
    width: 100%;
    margin: 1.5rem 0 0;
    align-items: flex-start;
  }
  body .home-container33,
  body .home-container36,
  body .home-container37,
  body .home-container38,
  body .home-container39 {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  body .home-container35 {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 2.5rem;
    align-items: flex-start;
  }
  body .home-container40 {
    width: 100%;
    max-width: 420px;
    padding: 4rem 2rem 2rem;
  }

  /* publications */
  .pubs-main {
    padding: 108px 1.25rem 3rem;
  }
  body .publications-text2 {
    font-size: 2.25rem;
    line-height: 1.3;
  }
}


/* --------------------------------------------------------------------------
   10. Narrow phones (500px and narrower)
   -------------------------------------------------------------------------- */
@media (max-width: 500px) {
  body .home-container20 {
    width: 100%;
    height: auto;
    padding: 2rem 1.25rem 3.5rem;
  }
  body .home-text26 {
    width: auto;
    height: auto;
  }
  body .home-heading2 {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  body .home-container27,
  body .home-container28 {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0;
  }
  body .home-contaier {
    height: auto;
  }
  body .home-container34 {
    height: auto;
  }
  body .home-pasted-image4 {
    width: 100%;
    height: auto;
  }
}


/* --------------------------------------------------------------------------
   11. Top menu with three links (both pages and the Media page)
   -------------------------------------------------------------------------- */
body .home-nav,
body .publications-nav {
  width: auto;
  max-width: calc(100% - 1.5rem);
}
body .home-container11,
body .publications-container2,
body .home-menu1,
body .publications-menu1 {
  width: auto;
  height: auto;
}
body .home-link10,
body .home-navlink1,
body .publications-navlink1,
body .publications-link {
  white-space: nowrap;
}
@media (max-width: 420px) {
  body .home-link10,
  body .home-navlink1,
  body .publications-navlink1,
  body .publications-link {
    margin-left: 0.6rem;
    margin-right: 0.6rem;
  }
}


/* --------------------------------------------------------------------------
   12. Media page (media.html) and the "All media coverage" button
   -------------------------------------------------------------------------- */
.media-intro {
  max-width: 46rem;
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--dl-color-secondary-500);
}
.media-intro a,
.media-contact a {
  text-decoration: underline;
}
.media-label {                       /* small capital headings */
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dl-color-secondary-200);
}

/* outlet names */
.media-outlets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0 0 3.5rem;
  padding: 0;
  list-style: none;
}
.media-outlets li {
  padding: 0.4rem 0.95rem;
  border-radius: 1.875rem;
  background: var(--dl-color-gray-white);
  box-shadow: 0 2px 6px -1px hsla(0, 0%, 8%, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dl-color-secondary-600);
  white-space: nowrap;
}

/* three highlighted quotes */
.media-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 4rem;
}
.media-quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--dl-radius-radius-radius1);
  background: var(--dl-color-gray-white);
  box-shadow: 0 8px 26px -4px hsla(0, 0%, 8%, 0.15), 0 8px 9px -5px hsla(0, 0%, 8%, 0.06);
}
.media-quote blockquote {
  flex: 1 1 auto;
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dl-color-secondary-600);
}
.media-quote figcaption {
  font-size: 0.875rem;
  line-height: 1.5;
}
.media-quote figcaption strong {
  display: block;
  background-image: none;
  background-color: #c41230;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.media-quote figcaption a {
  text-decoration: underline;
}

/* topic buttons */
.media-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin: 0 0 0.75rem;
}
.media-filter {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--dl-color-secondary-200);
  border-radius: 1.875rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dl-color-secondary-400);
  cursor: pointer;
  transition: all 0.15s ease-in;
}
.media-filter:hover {
  color: var(--dl-color-secondary-600);
  border-color: var(--dl-color-secondary-600);
}
.media-filter:focus-visible {
  outline: 2px solid #c41230;
  outline-offset: 2px;
}
.media-filter[aria-pressed="true"] {
  border-color: transparent;
  background: #c41230;
  box-shadow: 0 4px 7px -1px rgb(0 0 0 / 11%), 0 2px 4px -1px rgb(0 0 0 / 7%);
  color: var(--dl-color-gray-white);
}
.media-count {
  min-height: 1.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}

/* the list, grouped by year */
.media-year {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--dl-color-secondary-100);
}
.media-year[hidden],
.media-item[hidden] {
  display: none;
}
.media-year h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dl-color-secondary-600);
}
.media-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.media-item {
  padding: 0 0 1.25rem;
}
.media-item:last-child {
  padding-bottom: 0;
}
.media-meta {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.media-outlet {
  font-weight: 700;
  color: var(--dl-color-secondary-600);
}
.media-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dl-color-secondary-500);
  overflow-wrap: break-word;
  transition: color 0.15s ease-in;
}
.media-title:hover {
  color: #c41230;
  text-decoration: underline;
}
.media-title-nolink:hover {          /* stories without a link yet */
  color: var(--dl-color-secondary-500);
  text-decoration: none;
}
.media-contact strong {
  color: var(--dl-color-secondary-600);
}
.media-contact + .media-contact {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 0;
}
.media-kind {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 1.875rem;
  background: rgba(196, 18, 48, 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c41230;
  vertical-align: middle;
  white-space: nowrap;
}
.media-contact {
  margin: 1rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dl-color-secondary-100);
}

/* button on the home page that leads to the Media page */
.home-media-more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3.5rem;
}
.home-media-more a {
  padding: 0.75rem 1.75rem;
  border-radius: 1.875rem;
  background: #c41230;
  box-shadow: 0 4px 7px -1px rgb(0 0 0 / 11%), 0 2px 4px -1px rgb(0 0 0 / 7%);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025rem;
  text-transform: uppercase;
  color: var(--dl-color-gray-white);
  transition: all 0.15s ease-in;
}
.home-media-more a:hover {
  transform: scale(1.02);
}

@media (max-width: 991px) {
  .media-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 767px) {
  .media-intro {
    font-size: 1rem;
  }
  .media-outlets {
    margin-bottom: 2.5rem;
  }
  .media-highlights {
    margin-bottom: 3rem;
  }
  .media-year {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.75rem;
    padding: 1.5rem 0;
  }
  .media-year h2 {
    font-size: 1.5rem;
  }
  .media-kind {
    margin-left: 0;
    margin-top: 0.3rem;
  }
  .home-media-more {
    margin-top: 0.5rem;
  }
}


/* --------------------------------------------------------------------------
   13. Round headshot on tablets and phones (991px and narrower)
   The headshot sits on the top edge of the header card instead.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body .home-card {
    --headshot-size: 240px;                              /* tablets */
    margin-top: calc(3rem + var(--headshot-size) / 2);
    padding-top: 0;
    align-items: center;
  }
  body .home-headshot {
    position: static;
    transform: none;
    flex: 0 0 auto;
    margin: calc(var(--headshot-size) / -2) 0 1.5rem;
    border-width: 5px;
    box-shadow: 0 8px 20px -6px rgba(20, 20, 20, 0.35);
  }
  body .home-text11 {
    text-align: center;
    margin-right: 0;
    padding-right: 0;
  }
}
@media (max-width: 767px) {
  body .home-card {
    --headshot-size: 136px;                              /* phones */
  }
}


/* --------------------------------------------------------------------------
   14. Brand typefaces
   CMU's two brand typefaces are Open Sans and Source Serif. Text, menus and
   buttons stay in Open Sans; the main headings use Source Serif.
   To go back to all Open Sans, delete this block.
   -------------------------------------------------------------------------- */
body h1,
body h2,
body h1.HeadingOne,
body h2.home-text58,
body h1 .HeadingOne,
body h2 .HeadingTwo {
  font-family: "Source Serif 4", "Source Serif Pro", Times, serif;
  letter-spacing: 0;
}
