@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght,XOPQ,XTRA,YOPQ,YTDE,YTFI,YTLC,YTUC@8..144,100..1000,96,468,79,-203,738,514,712&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css');

/* 
Brand Colors
Quinnipiac Navy: #0C2340 rgba(13, 34, 64, 1)
York Hill Sky Blue: #418FDE rgba(65, 141, 222, 1)
Bobcat Gold: #FFB819 rgba(253, 181, 222, 1)
*/

/* MAIN PAGE */
body {
  font-family: 'Roboto Flex', sans-serif;
  color: rgba(13, 13, 13, .9);
}

a {
  cursor: pointer ;
   color: #418FDE;
}

.banner {
  font-family: 'Manrope', sans-serif;
  width: 100vw;
  height: auto;
  margin: 2vh 0;
  display: flex;
  flex-direction: column;
  justify-items: center;
  text-align: center;
  color: #0C2340;
}

.content {
  margin: 0 auto;
  max-width: 728px;
}

#authorPage, #aboutPage {
  max-width: 728px;
}

#landingPage {
  max-width: 1008px;
  margin: 0 auto;
}

.heroImg {
  width: 8%;
  height: 8%;
}

.siteName {
  text-align: center;
}

.navRibbon {
  display: flex;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(13, 34, 64, 0.2);
}

.ribbonItem {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #418FDE;
  font-weight: 500;
  position: relative;
  transition: 
    color 0.25s ease,
    transform 0.2s ease;
}

.ribbonItem:hover, .ribbonItem.active {
  color: #0C2340;
  transform: none;
}

/* Create active tab animation */
.ribbonItem::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #0C2340;
  transform: scaleX(0);
  transition: transform 0.25s ease-in-out;
  transform-origin: center;
}

.ribbonItem:hover::after {
  transform: scaleX(1);
}

.ribbonItem.active::after {
  transform: scaleX(1);
}

.navRibbon:has(.ribbonItem:hover:not(.active)) .ribbonItem.active::after {
  transform: scaleX(0);
}

.navRibbon:has(.ribbonItem:hover:not(.active)) 
.ribbonItem.active {
  color: #418FDE;
  opacity: 0.85;
}

/* GRID */
#mainGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2vw;
}

.slat {
  display: block;
  text-decoration: none;
  color: #0C2340;
  margin-bottom: 2vh;
}

.slat:hover {
  color: #418FDE;
}

.thumbnailImg{
  width: 100%;
  height: auto;
  display: block;
}

.slatTitle {
  margin: 10%;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.slatSubhed {
  margin: 5%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; 
  margin-bottom: 1vh;
}

.slat > .byline {
  color: #adadad;
  font-weight: 400;
  text-align: center;
}


/* AUTHOR PAGE */
.authorSection {
  margin-bottom: 1vh;
}

.socialLinksRightRail {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center; 
}

.socialLogos {
  margin-left: .85rem;
  opacity: .85;
}

.socialLogos img {
  width: 1.1em;
  height: 1.1em;
}

h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-top: 1.5rem;
}

.subhed {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(0, 0, 0, .4);
  line-height: 1.6875rem; 
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.2rem;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  line-height: 2rem;
  text-rendering: optimizeSpeed;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  margin-bottom: 1.875rem;
}

.pubDetails {
  display: flex;
  flex-direction: row;
  margin-bottom: 1.5rem;
}

.byline, .dateline {
  text-transform: uppercase;
  margin: 0;
  font-size: .85rem;
  line-height: 1.5rem;
}

.byline {
  font-weight: 800;
}

.footer {
  padding: 2vh;
  border-top: 1px solid rgba(13, 34, 64, 0.2);
  text-align: center;
  color: #adadad
}

.footer a {
  color: #adadad;
}

.captions {
  font-size: .875rem;
} 

#datawrapper-chart-WAPaq, #datawrapper-chart-M50ti {
  min-width: 47%!important ;
}


iframe {
  margin: 2rem 0;
}

.authorSection > .byline {
  font-weight: 500;
  color: #0C2340;
}

/* MOBILE STYLING */

@media (max-width: 400px) {
  .banner {
    height: auto;
  }

  .content {
    margin: 0 15px;
  }

  p {
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
  }

  .slat {
    border-bottom: 1px solid #cacaca;
    padding: 2vh 0;
  }

  #datawrapper-chart-WAPaq, #datawrapper-chart-M50ti {
  min-width: 100%!important ;

}

}