/*
 *
 * Styles for MIT JWAFS D8 theme
 *
 * Imports baseline.css
 * Print styles via media query at bottom of this file
 *
 * rjw 2/2019
 *
 * STANDARD COLORS:
 *  #000000   text (black)
 *  #5a4a42   page titles and some headings (brown)
 *  #1d5c7d   standard links (dark blue)
 *  #12a8e0   rules, mouseovers (vivid blue)
 *  #bce9fa   mouseover on black (very soft blue)
 *  #12a8e0   gradient blue end (vivid blue)
 *  #53b991   gradient green end (moderate cyan - lime green)
 *  #62f34d   gradient mouseover (bright green)
 *  #eae5df   nav highlights, mobile menu (light grayish orange)
 *  #f2faff   background for thumb links (very pale blue)
 *  #f2faff   blue paragraph background (very pale blue)(translucent on white: rgba(0,157,255,0.051))
 *  #e5eef1   blue-gray paragraph background (light grayish cyan)(translucent on white: rgba(0,88,118,0.102))
 *  #eae5df   gray paragraph background (light grayish orange)(translucent on white: rgba(88,48,0,0.125))
 *  #ffffff   white paragraph background (white)(translucent on white: rgba(255,255,255,0.4))
 *
 * Max inner width (without padding): 1040px (= 268+772)
 * Note that some content and backgrounds extend full width of browser
 *
 * MAJOR BREAKPOINTS:
 *  default:    narrow layout
 *              - 20px margins
 *              - mobile menu
 *              - no left sidebar
 *              - header all stacked
 *  >= 441px:   mobile layout
 *              - header mixed h/v
 *  >= 769px:   intermediate layout
 *              - 30px margins
 *              - desktop navigation
 *              - left sidebar
 *  >= 1141px:  desktop layout
 *              - ????
 *
 */


 /* reset */
 @import url('baseline.css');
 /* fonts */
 @import url('https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i|Libre+Franklin:400,400i,700,700i');
.font-family-examples {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-family: 'Lato', Arial, sans-serif;
}


/*** GENERAL ***/

html {
  font-size: 62.5%;      /* rem base, 62.5% = 10 */
  overflow-y: scroll;    /* OPTIONAL - force vertical scrollbar */
  word-wrap: break-word; /* allow long words/urls to break */
}
body {
  background-color: #ffffff;
}

/* default font */
body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #000000;
  /* allow long words/urls to break */
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  /*-ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;*//* as of 9/2019, browsers don't do a great job at hyphenation */
}
/* fallback for raw text in table cells anywhere on page */
td, th {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #000000;
}
/* default links */
a {
  color: #1d5c7d;
  text-decoration: none;
}
a:hover {
  color: #1d5c7d;
  text-decoration: underline;
}
a:focus, input:focus, button:focus {
  outline: 2px dotted #9999ff;  /* blue */
}
a:active {
  outline: none;
}

/* backgrounds that extend to edges of browser; created by javascript */
.bleed-background {
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  /* left and width set by JS */
  /* background color set below for each item using this class */
}



/*** SKIP LINK ***/

a.skiplink {
  /* visually hidden */
  position: absolute;
  z-index: 99999;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}
a.skiplink:active,
a.skiplink:focus {
  clip: auto;
  overflow: visible;
  height: auto;
  width: auto;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  padding: 10px;
  border: 2px solid #000000;
  background-color: #ffffff;
  font-size: 2.0rem;
  color: #000000;
  text-decoration: underline;
}



/*** OUTER PAGE CONTAINER ***/

.layout-container {
  width: 100%;
  margin: 0 auto;
  background-color: transparent;
}



/*** BANDS - DEFAULT ***/

.band {
  width: 100%;
  padding: 0 20px;
}
.band-inner {
  max-width: 1040px;
  margin: 0 auto;
}
@media (min-width: 769px) { /* intermediate */
  .band {
    padding: 0 30px; /* original */
    padding: 0 40px;
  }
}



/*** REGIONS/BLOCKS - DEFAULT ***/

.region {
  display: block;
  position: relative;
  z-index: 1;
}
.region::after { /* longer clearself because overflow hidden will cut off popup menus */
  content: "";
  display: table;
  clear: both;
}
.block {
  display: block;
}



/*** ALERT BAND ***/

.band-alert {
  padding: 0;
}
.band-alert .band-inner {
  max-width: none;
}



/* ALERT REGION - ALERT BLOCK */

.block-alert {
  border: 2px solid #ffcc00;
  padding: 24px;
  background-color: #ffffaa;
}
.block-alert h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.4rem;
  color: #000000;
  text-align: center;
  margin-bottom: 8px;
}
.block-alert p {
  font-size: 1.4rem;
  line-height: 2.1rem;
  color: #000000;
  text-align: center;
  margin-bottom: 0;
}
.block-alert a,
.block-alert a:hover {
  color: #000000;
  text-decoration: underline;
}



/*** MOBILE NAVIGATION BAND ***/

.band-mobilenav {
  background-color: #000000;
  padding: 0;
}
@media (min-width: 769px) { /* intermediate */
  .band-mobilenav {
    display: none;
  }
}



/* MOBILE NAV - MENUBAR */

#divmenubar {
  background-color: #eae5df;
  height: auto;
  overflow: hidden;
}
#divmobiletoggle {
  float: left;
  padding-left: 12px;
  line-height: 0;
}
#mobiletogglelink {  /* this is now a button */
  display: block;
  width: auto;
  min-height: 38px;
  padding: 15px 9px 12px 45px;
  background-image: url('../images/menu/menuicon_000000_35x25.png');
  background-position: 0 50%;
  background-repeat: no-repeat;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
  color: #000000;
  text-align: left;
  text-transform: uppercase;
  background-color: transparent;
  border: none;
  margin: 0;
}
#mobiletogglelink {
  padding: 18px 9px 16px 45px;
  font-size: 2.1rem;
}
#mobiletogglelink:hover,
#mobiletogglelink.active {
  color: #1d5c7d;
  background-image: url('../images/menu/menuicon_1d5c7d_35x25.png');
  text-decoration: none;
}
#divmenubar p.mitlogo {
  float: right;
  margin: 3px 12px 0 0;
  width: 70px;
  line-height: 0;
}
#divmenubar p.mitlogo a {
  display: block;
  padding: 8px 4px 8px 4px;
}
#divmenubar p.mitlogo svg {
  width: 100%;
  height: auto;
}



/* MOBILE NAV - MENU */

/* outer container (note that toggle is elsewhere) */
#divmobilemenu {
  display: block;
  width: 100%;
  background-color: #eae5df;
}

/* inner container (slides open/closed when toggle clicked) */
#divmobileinner {
  display: none;
}

/* individual menus */
#divmobilelinks li.open > ul {
  display: block;
}
#divmobilelinks li.closed > ul {
  display: none;
}

/* individual items - fonts and borders */
#divmobilelinks li {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 2.4rem;
  color: #000000;
  /*text-transform: uppercase;*/
  border-top: 1px solid #12a8e0;
  margin: 0;
}
#divmobilelinks li li {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 2.2rem;
  text-transform: none;
  border-top: 1px solid #999999;
}
#divmobilelinks li li li {
  font-size: 1.4rem;
  line-height: 1.8rem;
  border-top: 1px solid #999999;
}
#divmobilelinks li li li li {
  border-top: 1px solid #999999;
}
/* links - padding and indentation */
#divmobilelinks li a {
  display: block;
  position: relative;
  z-index: 1;
  padding: 1.5rem 44px 1.4rem 20px;
}
#divmobilelinks li li a {
  padding: 1.1rem 44px 1.1rem 35px;
}
#divmobilelinks li li li a {
  padding: 0.9rem 44px 0.9rem 50px;
}
#divmobilelinks li li li li a {
  padding: 0.7rem 44px 0.7rem 65px;
}
#divmobilelinks li li li li li a {
  padding: 0.7rem 44px 0.7rem 80px;
}
#divmobilelinks li li li li li li a {
  padding: 0.7rem 44px 0.7rem 95px;
}
/* links - text styles */
#divmobilelinks li a {
  color: #000000;
  text-decoration: none;
}
#divmobilelinks li a.is-active,
#divmobilelinks li a.is-active-trail {
  color: #1d5c7d;
  font-weight: 700;
  text-decoration: none;
}
#divmobilelinks li.is-active-trail {
  background-color: #f5f2f0;
}
#divmobilelinks li a:hover {
  color: #1d5c7d;
}

/* opener/closer buttons */
#divmobilelinks li.closed > a > span.opener {
  display: block;
}
#divmobilelinks li.open > a > span.opener {
  display: none;
}
#divmobilelinks li.closed > a > span.closer {
  display: none;
}
#divmobilelinks li.open > a > span.closer {
  display: block;
}
/* opener/closer button styles */
#divmobilelinks li a span.opener,
#divmobilelinks li a span.closer {
  display: block;
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 1.5rem 0 1.4rem 0;
  min-width: 44px;
  background-color: transparent;
  font-family: Arial, sans-serif;
  font-size: 2.4rem;   /* slightly larger than link text */
  font-weight: normal;
  line-height: 2.4rem; /* but same line height */
  color: #000000;
  text-align: center;
}
#divmobilelinks li li a span.opener,
#divmobilelinks li li a span.closer {
  padding: 1.1rem 0 1.1rem 0;
  font-size: 2.2rem;
  line-height: 2.2rem;
}
#divmobilelinks li li li a span.opener,
#divmobilelinks li li li a span.closer {
  padding: 0.9rem 0 0.9rem 0;
  font-size: 2.0rem;
  line-height: 2.0rem;
}
#divmobilelinks li a:hover span.opener,
#divmobilelinks li a:hover span.closer {
  color: #000000;
}
#divmobilelinks li a span.opener:hover,
#divmobilelinks li a span.closer:hover {
  color: #1d5c7d;
}
/* opener/closer button borders - match to list item horizontal borders */
#divmobilelinks li a span.opener {
  border-left: 1px solid #12a8e0;
}
#divmobilelinks li a span.closer {
  border-left: 1px solid #999999;
}
#divmobilelinks li li a span.opener {
  border-left: 1px solid #999999;
}
#divmobilelinks li li a span.closer {
  border-left: 1px solid #999999;
}
#divmobilelinks li li li a span.opener {
  border-left: 1px solid #999999;
}
#divmobilelinks li li li a span.closer {
  border-left: 1px solid #999999;
}
/* hide separators */
#divmobilelinks li.separator {
  display: none;
}

/* active item round bullets */
#divmobilelinks li a::before {
  content: "";
  display: none;
  position: absolute;
  z-index: 1;
  left: 6px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background-color: #1d5c7d;
  border-radius: 50%;
}
#divmobilelinks li li a::before {
  left: 22px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
}
#divmobilelinks li li li a::before {
  left: 36px;
}
#divmobilelinks li li li li a::before {
  left: 52px;
}
/* active links only */
#divmobilelinks li a.is-active::before {
  display: block;
}

/* mobile menu search */

#divmobilesearch {
  border-top: 1px solid #12a8e0;
  border-bottom: 1px solid #12a8e0;
  padding: 1.4rem 12px 1.4rem 20px;
  background-color: #e5e5e5;
}
#divmobilesearch .block-sitesearch {
  width: 100%;
}
#divmobilesearch .block-sitesearch .block-title {
  display: none;
}
#divmobilesearch .block-sitesearch .form-item {
    margin: 0; /* override drupal style */
}

/* layout */
#divmobilesearch .block-sitesearch form {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
}
#divmobilesearch .block-sitesearch .form-item-keys {
  flex: 1 1 auto;        /* grow if possible */
  margin-right: 16px;
}
#divmobilesearch .block-sitesearch .form-actions {
  flex: 0 0 auto;        /* don't grow or shrink, auto width */
  display: flex;         /* center vertically inside element */
  align-items: center;
  margin: 0; /* override drupal style */
}

/* style */
#divmobilesearch .block-sitesearch .form-item-keys input {
  display: block;  /* because of chrome bug */
  margin: 0;
  padding: 7px 0 7px 0;
  border: none;
  width: 100%;
  background-color: transparent;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: #000000;
}
/* query placeholder style */
/* THE FOLLOWING NEED TO BE SEPARATE - they fail if lumped together */
#divmobilesearch .block-sitesearch .form-item-keys input:-ms-input-placeholder {       /* IE */
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: #999999;
  opacity: 1.0; /* override browser default style */
}
#divmobilesearch .block-sitesearch .form-item-keys input::-webkit-input-placeholder {  /* Webkit and Edge */
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: #999999;
  opacity: 1.0; /* override browser default style */
}
#divmobilesearch .block-sitesearch .form-item-keys input::-moz-placeholder {           /* Firefox 19+ */
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: #999999;
  opacity: 1.0; /* override browser default style */
}
#divmobilesearch .block-sitesearch .form-actions input {
  display: block;  /* because of chrome bug */
  border: none;
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  overflow: hidden;
  text-indent: -9999px;
  color: #ffffff;
  font-size: 1.0rem;
  line-height: 0;
  background-image: url('../images/search/magnifier_000000_32x32.png');
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-color: transparent;
  cursor: pointer;
}
#divmobilesearch .block-sitesearch .form-actions input:hover {
  background-image: url('../images/search/magnifier_000000_32x32.png');
}



/*** HEADER BAND ***/

.band-header {
  display: block;
  position: relative;
  z-index: 10;
  padding-top: 30px;
  padding-bottom: 15px;
}

/* HEADER REGION */

.region-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "donate mit"
    "jwafs  jwafs";
  gap: 40px 10px;
  padding-bottom: 30px;
}
.region-header::after {
  display: none;
}
@media (min-width: 769px) { /* mobile menu gone, we need search */
  .region-header {
    grid-template-columns: max-content max-content 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "donate search mit"
      "jwafs  jwafs  jwafs";
  gap: 40px 10px;
  padding-bottom: 20px;
  }
}
@media (min-width: 961px) { /* desktop layout */
  .region-header {
    grid-template-columns: 1fr max-content max-content;
    grid-template-rows: auto auto;
    grid-template-areas:
      "jwafs mit search"
      "jwafs mit donate";
    gap: 10px;
    padding-bottom: 20px;
  }
}


/* HEADER REGION - JWAFS LOGO BLOCK */

.region-header .block-jwafslogo {
  grid-area: jwafs;
  display: block;
  clear: both;
  float: none;
  /*width: 516px;*//* these result in horizontal overflow on mobile, in Chrome only */
  /*max-width: 100%;*/
  width: 100%;
  max-width: 516px;
  justify-self: center;
  align-self: center;
}
.region-header .block-jwafslogo .block-content p {
  line-height: 0;
  margin: 0;
}
.region-header .block-jwafslogo .block-content a {
  display: block;
}
.region-header .block-jwafslogo .block-content :is(img, svg) {
  width: 100%;
  height: auto;
}
@media (min-width: 961px) {
  .region-header .block-jwafslogo {
    justify-self: start;
  }
}
/* 10th anniversary logo */
.region-header .block-jwafslogo-10th {
  max-width: 560px;
}



/* HEADER REGION - MIT LOGO BLOCK */

.region-header .block-mitlogo {
  grid-area: mit;
  display: block;
  clear: both;
  float: none;
  width: 68px;
  max-width: 100%;
  justify-self: end;
  align-self: center;
}
.region-header .block-mitlogo .block-content p {
  line-height: 0;
  margin: 0;
}
.region-header .block-mitlogo .block-content a {
  display: block;
}
.region-header .block-mitlogo .block-content :is(img, svg) {
  width: 100%;
  height: auto;
}
@media (min-width: 961px) {
  .region-header .block-mitlogo {
    margin-right: 22px; /* width of M minus 10px grid gap */
    align-self: end;
    padding-bottom: 32px;  /* baseline align with jwafs logo */
  }
}



/* HEADER REGION - DONATE BLOCK */

.region-header .block-donate {
  grid-area: donate;
  display: block;
  clear: both;
  float: none;
  width: clamp(171px, 100%, 17.1rem); /* 171px is width of search */
  min-width: 171px; /* grid seems to need this */
  justify-self: start;
  align-self: center;
}
.region-header .block-donate p {
  font-size: 1.6rem;
  line-height: 1;
  margin: 0;
}
.region-header .block-donate a {
  display: block;
  background-color: #1d5c7d;
  padding: 10px 12px;
  color: #eaeaea;
  text-decoration: none;
  text-align: center;
}
.region-header .block-donate :is(a:focus-visible, a:hover) {
  background-color: #12a8e0;
  color: #ffffff;
  text-decoration: none;
}
@media (min-width: 961px) {
  .region-header .block-donate {
    align-self: start;
  }
}



/* HEADER REGION - SEARCH BLOCK */

.region-header .block-sitesearch {
  grid-area: search;
  display: none;
}
@media (min-width: 769px) { /* intermediate */
  .region-header .block-sitesearch {
    display: block;
    background-color: #e5e5e5;
    justify-self: start;
    align-self: stretch;
  }
  .region-header .block-sitesearch .form-item {
    margin: 0; /* override drupal style */
  }

  /* layout */
  .region-header .block-sitesearch form {
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: center;       /* center vertically */
  }
  .region-header .block-sitesearch .form-item-keys {
    flex: 1 1 auto;        /* grow if possible */
    padding-left: 10px;
  }
  .region-header .block-sitesearch .form-actions {
    flex: 0 0 auto;        /* don't grow or shrink, auto width */
    display: flex;         /* center vertically inside element */
    align-items: center;
    margin: 0; /* override drupal style */
  }

  /* style */
  .region-header .block-sitesearch .form-item-keys input {
    display: block;  /* because of chrome bug */
    margin: 0;
    padding: 7px 0 7px 0;
    border: none;
    width: 131px;  /* had to hard-wire this to get it to behave */
    background-color: transparent;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: #000000;
  }
  /* query placeholder style */
  /* THE FOLLOWING NEED TO BE SEPARATE - they fail if lumped together */
  .region-header .block-sitesearch .form-item-keys input:-ms-input-placeholder {       /* IE */
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: #999999;
    opacity: 1.0; /* override browser default style */
  }
  .region-header .block-sitesearch .form-item-keys input::-webkit-input-placeholder {  /* Webkit and Edge */
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: #999999;
    opacity: 1.0; /* override browser default style */
  }
  .region-header .block-sitesearch .form-item-keys input::-moz-placeholder {           /* Firefox 19+ */
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: #999999;
    opacity: 1.0; /* override browser default style */
  }
  .region-header .block-sitesearch .form-actions input {
    display: block;  /* because of chrome bug */
    border: none;
    margin: 0;
    padding: 0;
    width: 30px;
    height: 34px;
    overflow: hidden;
    text-indent: -9999px;
    color: #000000;
    font-size: 1.0rem;
    line-height: 0;
    background-image: url('../images/search/magnifier_000000_20x20.png');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: transparent;
    cursor: pointer;
  }
  .region-header .block-sitesearch .form-actions input:hover {
    background-image: url('../images/search/magnifier_000000_20x20.png');
  }
}
@media (min-width: 961px) {
  .region-header .block-sitesearch {
    align-self: end;
  }
}



/*** PRIMARY NAV BAND ***/

.band-primarynav {
  display: none;
}
@media (min-width: 769px) { /* intermediate */
  .band-primarynav {
    display: block;
    position: relative;
    z-index: 99;  /* high because of dropdown menus */
    padding-bottom: 35px;
  }
  .region-primarynav .block-menu-primary .block-content > ul {
    display: flex;
    align-items: flex-start;
    /*margin-left: -14px;*/
    font-family: 'Libre Franklin', Arial, sans-serif;
  }
  .region-primarynav .block-menu-primary .block-content > ul ul {
    display: none;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li {
    position: relative;
    flex: 0 1 auto;              /* can shrink */
    min-width: min-content;
    word-wrap: normal;
    word-break: normal;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 2.2rem;
  }

  /* separators */
  .region-primarynav .block-menu-primary .block-content > ul > li {
    margin-right: 3px;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li:first-child {
    margin-left: 3px;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li::after {
    content: "";
    position: absolute;
    left: 100%;
    width: 3px;
    top: 0;
    bottom: 0;
    background: #12a8e0;
    background: linear-gradient(180deg, #12a8e0 0%, #53b991 100%);
  }
  .region-primarynav .block-menu-primary .block-content > ul > li:first-child::before {
    content: "";
    position: absolute;
    left: -3px;
    width: 3px;
    top: 0;
    bottom: 0;
    background: #12a8e0;
    background: linear-gradient(180deg, #12a8e0 0%, #53b991 100%);
  }

  /* links */
  .region-primarynav .block-menu-primary .block-content > ul > li > a {
    display: block;
    padding: 14px 16px 14px 16px;
    color: #000000;
    text-decoration: none;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li.is-active-trail > a,
  .region-primarynav .block-menu-primary .block-content > ul > li:hover > a,
  .region-primarynav .block-menu-primary .block-content > ul > li > a:focus,
  .region-primarynav .block-menu-primary .block-content > ul > li:focus-within > a {
    background-color: #eae5df;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li > a.is-active,
  .region-primarynav .block-menu-primary .block-content > ul > li > a.is-active-trail {
    font-weight: 700;
  }

  /* dropdown menus */
  .region-primarynav .block-menu-primary .block-content > ul > li:focus-within > ul,
  .region-primarynav .block-menu-primary .block-content > ul > li:hover > ul {
    display: flex;
    flex-flow: column nowrap;
    position: absolute;
    left: 0;
    top: 100%;
    width: auto;
    min-width: 100%;
    height: auto;
    padding: 6px 0 26px 16px;
    background-color: #eae5df;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li:last-child:focus-within > ul,
  .region-primarynav .block-menu-primary .block-content > ul > li:last-child:hover > ul {
    left: auto;
    right: 0;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li > ul > li {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.0rem;
    white-space: nowrap;
    border-bottom: 1px solid #12a8e0;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li > ul > li > a {
    display: block;
    padding: 8px 16px 8px 0;
    color: #000000;
    text-decoration: none;
  }
  .region-primarynav .block-menu-primary .block-content > ul > li > ul > li > a:focus,
  .region-primarynav .block-menu-primary .block-content > ul > li > ul > li > a:hover {
    color: #000000;
    text-decoration: underline;
  }
}
@media (min-width: 901px) { /* chosen by experimentation */
  .region-primarynav .block-menu-primary .block-content > ul > li:last-child:focus-within > ul,
  .region-primarynav .block-menu-primary .block-content > ul > li:last-child:hover > ul {
    left: 0;
    right: auto;
  }
}



/*** BANNER IMAGE BAND ***/

/* size band like an image */
.band-bannerimage {
  position: relative;
  z-index: 1;
  padding: 0 0 20.984455% 0;  /* 162/772 */
  background-image: url('../images/header/bannerimage_bkg_2000x162.png');
  background-position: center top;
  background-repeat: repeat-x;
}
.band-bannerimage::before { /* shadow above band */
  content: "";
  position: absolute;
  top: -28px;
  height: 28px;
  left: 0;
  right: 0;
  background-image: url('../images/header/bannerimage_shadow_2000x28.png');
  background-position: center bottom;
  background-repeat: no-repeat;
}
.band-bannerimage .band-inner {
  max-width: none;
}

/* no blue bar for now */
.band-bannerimage .bluebar {
  display: none;
}
/* if present, image hides background */
.band-bannerimage .block-type-bannerimg div.image {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  padding: 20.984455% 0 0 0;  /* 162/772 */
  background-position: left top;
  background-repeat: no-repeat;
  background-size: cover;
}
/* hide second and subsequent banner image blocks */
.block-type-bannerimg + .block-type-bannerimg {
  display: none;
}

@media (min-width: 769px) { /* intermediate */
  .band-bannerimage {
    height: 186px;
    padding: 0;
  }
  .band-bannerimage .bluebar {
    display: block;
    position: absolute;
    z-index: 1;
    top: 152px;
    left: calc(40px + calc(calc(100% - 80px) * 0.2576923)); /* left padding plus current width of left sidebar */
    right: 0;
    height: 34px;
    background-color: #12a8e0;
  }
  .band-bannerimage .block-type-bannerimg div.image {
    left: calc(40px + calc(calc(100% - 80px) * 0.2576923));
    right: 30px;
    top: 12px;
    width: auto;
    height: 162px;
    padding: 0;
  }
}

@media (min-width: 1141px) { /* full width */
  .band-bannerimage .bluebar {
    left: calc(calc(50% - 560px) + 40px + 268px);
  }
  .band-bannerimage .block-type-bannerimg div.image {
    left: calc(calc(50% - 560px) + 40px + 268px);
    right: auto;
    width: 772px; /* maximum size of image */
  }
}



/*** CONTENT BAND ***/

/* layout of content and sidebar on most pages */

.band-content {
  position: relative;
  z-index: 95;        /* for popups that may overlap footer */
}
.band-content > .band-inner {
  padding: 24px 0 32px 0;
}
.band-content  >.band-inner::after {  /* clearself */
  content: "";
  display: table;
  clear: both;
}
.layout-content .node-content > *:last-child {
  margin-bottom: 0;   /* try to reduce extra space at end of page */
}
.layout-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.layout-left {
  position: relative;
  z-index: 2;
  display: none;
}

@media (min-width: 441px) { /* mobile */
  /* background watermark */
  .band-content {
    position: relative;
  }
  .band-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 68px;
    left: calc(50% - 187px);
    bottom: 0;
    right: 0;
    background: url('../images/pagebkg/page_background.png');
    background-position: 0 0;
    background-repeat: no-repeat;
    opacity: 0.04;
  }
}
@media (min-width: 769px) { /* intermediate */
  .band-content > .band-inner {
    padding: 32px 0 64px 0;
  }
  .band-content > .band-inner::after {
    content: "";
    display: table;
    clear: both;
  }
  /* note: using floats rather than flex or grid because of slick slider bug */
  .layout-content {
    display: block;
    float: right;
    margin: 0 0 0 -100%;
    width: 74.23077%;
  }
  .layout-left {
    display: block;
    float: left;
    margin: 0 -100% 0 0;
    width: 25.76923%;  /* 268/1040 */
  }
}
@media (min-width: 1141px) { /* full width */
  .layout-content {
    width: 772px;
  }
  .layout-left {
    width: 268px;
  }
}
/* 10/5/21 tried grid - slider grows out of control */
@media (min-width: 99769px) { /* intermediate */
  .band-content > .band-inner {
    padding: 32px 0 64px 0;
    display: grid;
    grid-template-columns: 268fr 772fr;
    grid-template-rows: auto;
    grid-template-areas: "sidebar main";
  }
  .layout-content {
    grid-area: main;
    width: 100%;
  }
  .layout-left {
    display: block;
    grid-area: sidebar;
    width: 100%;
  }
}


/* CONTENT REGION */

.region-content {
}
/* default styles for content region are below */



/* LEFT SIDEBAR REGION */

.region-left {
  padding-right: 36px;
}



/* LEFT REGION - SECTION TITLE BLOCK */

.block-sectiontitle h2 {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin-top: 0.2rem;  /* top alignment */
}
.block-sectiontitle a {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid #12a8e0;
  color: #000000;
  text-decoration: none;
}
.block-sectiontitle a:focus,
.block-sectiontitle a:hover {
  color: #1d5c7d;
  text-decoration: none;
}



/* LEFT REGION - SECONDARY NAVIGATION */

.block-menu-secondary .block-content ul {
  display: block;
}
.block-menu-secondary .block-content li {
  display: block;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6rem;
  color: #000000;
  border-top: 1px solid #12a8e0;
}
.block-menu-secondary .block-content > ul > li:first-child {
  border-top: none;
}
.block-menu-secondary .block-content > ul > li:last-child {
  border-bottom: 1px solid #12a8e0;
}
.block-menu-secondary .block-content li li {
  border-top: 1px solid #bfbfbf;
}
.block-menu-secondary .block-content li li li {
  border-top: 1px solid #e0e0e0;
}
.block-menu-secondary .block-content a {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  min-height: 4.8rem;
  padding: 0.8rem 0 0.8rem 0;
  color: #000000;
  text-decoration: none;
}
.block-menu-secondary .block-content a:focus,
.block-menu-secondary .block-content a:hover {
  color: #1d5c7d;
  text-decoration: none;
}
.block-menu-secondary .block-content a.is-active {
  font-weight: 700;
}
.block-menu-secondary .block-content li li a {
  padding-left: 16px;
}
.block-menu-secondary .block-content li li li a {
  padding-left: 32px;
}



/*** FOOTER BAND 1 ***/

.band-footer1 {
  border-top: 1px solid #b2b2b2;
  padding-top: 32px;
}
.band-footer1 .band-inner {
  display: flex;
  flex-flow: column nowrap;
}
.region-footer2 {
 padding-top: 24px;
}
.region-footer3 {
  padding-top: 24px;
}
@media (min-width: 769px) { /* intermediate */
  .band-footer1 .band-inner {
    flex-flow: row nowrap;
    align-items: center;
  }
  .region-footer1 {
    flex: 0 1 auto;
  }
  .region-footer2 {
    flex: 0 1 auto;
    margin-left: 36px;
    margin-right: 54px;
    padding-top: 0;
  }
  .region-footer3 {
    flex: 0 0 auto;
    margin-left: auto;
    padding-top: 0;
  }
}



/* FOOTER LEFT 1 REGION - JWAFS LOGO BLOCK */

.region-footer1 .block-logos .block-content {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}
.region-footer1 .block-logos .block-content p {
  font-size: 10px;
  line-height: 0;
  width: 146px;
}
.region-footer1 .block-logos .block-content a {
  display: block;
}
.region-footer1 .block-logos .block-content img {
  width: 100%;
  height: auto;
}

@media (min-width: 769px) {
  .region-footer1 .block-logos .block-content {
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
  }
}



/* FOOTER LEFT 2 REGION - ADDRESS BLOCK */

.region-footer2 .block-address .block-content p {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #000000;
  text-align: center;
}
.region-footer2 .block-address .block-content p a {
  color: #000000;
}
@media (min-width: 769px) { /* intermediate */
  .region-footer2 .block-address .block-content p {
    text-align: left;
  }
}



/* FOOTER RIGHT REGION */

.region-footer3 {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}
@media (min-width: 769px) { /* intermediate */
  .region-footer3 {
    align-items: stretch;
  }
}



/* FOOTER RIGHT REGION - NEWSLETTER BLOCK */

.region-footer3 .block-newsletter {
  flex: 0 0 auto;
  width: 100%;
  max-width: 256px;
}
.region-footer3 .block-newsletter p {
  font-size: 1.4rem;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}
.region-footer3 .block-newsletter a {
  display: block;
  background-color: #1d5c7d;
  padding: 10px 12px;
  color: #eaeaea;
  text-decoration: none;
  text-align: center;
}
.region-footer3 .block-newsletter a:active,
.region-footer3 .block-newsletter a:hover {
  background-color: #12a8e0;
  color: #ffffff;
  text-decoration: none;
}
@media (min-width: 769px) { /* intermediate */
  .region-footer3 .block-newsletter {
    max-width: none;
  }
}



/* FOOTER RIGHT REGION - SOCIAL BLOCK */

/* contains the contact link in addition to the social icons */

.region-footer3 .block-social {
    margin: 12px auto 0 auto;
}
@media (min-width: 769px) { /* intermediate */
  .region-footer3 .block-social {
    margin: 12px 0 0 0;
  }
}

.region-footer3 .block-social .block-content {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.region-footer3 .block-social .block-content p.contact {
  font-size: 1.4rem;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}
.region-footer3 .block-social .block-content p.contact a {
}
.region-footer3 .block-social .block-content ul.social-icons {
  margin: 12px auto 0 auto;
}
@media (min-width: 769px) { /* intermediate */
  .region-footer3 .block-social .block-content {
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
  }
  .region-footer3 .block-social .block-content p.contact {
    margin-right: 16px;
  }
  .region-footer3 .block-social .block-content ul.social-icons {
    margin: 0 0 0 auto;
  }
}

/* social icons */

ul.social-icons {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  list-style: none;
}
ul.social-icons li {
  display: block;
  margin-left: 4px;
}
ul.social-icons li:first-child {
  margin-left: 0;
}
ul.social-icons a {
  display: block;
  width: 31px;
  height: 31px;
}
ul.social-icons a img {
  width: 100%;
}
ul.social-icons a:hover svg circle,
ul.social-icons li.youtube a:hover svg polygon { /* the triangle */
  fill: #12a8e0 !important;
}



/* FOOTER RIGHT REGION - ACCESSIBILITY BLOCK */

.region-footer3 .block-accessibility {
  margin: 18px auto 0 auto;
}
.region-footer3 .block-accessibility .block-content p {
  text-align: center;
  margin: 0;
}



/*** FOOTER BAND 2 ***/

.band-footer2 {
  padding-top: 48px;
  padding-bottom: 32px;
}



/*** FOOTER BAND 2 - TAG LINE BLOCK ***/

.region-footer4 .block-tagline .block-content p {
  font-size: 10px;
  line-height: 0;
  text-align: center;
  margin: 0;
}
@media (min-width: 769px) { /* intermediate */
  .region-footer4 .block-tagline .block-content p {
    text-align: left;
  }
}




/***********************
 ***********************
 *** CONTENT STYLES ****
 ***********************
 ***********************/

/* links */
.region-content a {
  color: #1d5c7d;
  text-decoration: underline;
}
.region-content a:focus,
.region-content a:hover {
  color: #1d5c7d;  /* designer */
  text-decoration: underline;
  color: #12a8e0;  /* 1/2022 */
  text-decoration: underline;
}

/* headings */
.region-content h1 {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 4.0rem;
  color: #5a4a42;
  margin-bottom: 1.8rem;
}
.region-content h1.pagetitle {
  color: #5a4a42;
  margin-top: -4px;
}
.region-content h1.pagetitle a { /* news, events, workshops */
  color: #5a4a42;
  text-decoration: none;
}
.region-content h1.pagetitle a:focus,
.region-content h1.pagetitle a:hover {
  color: #5a4a42;
  text-decoration: underline;
}

.region-content h2 {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 4.0rem;
  color: #5a4a42;
  margin-bottom: 1.8rem;
}
.region-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
}
.region-content h2 + h3 {
  margin-top: 2.2rem;
}
.region-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
}
.region-content h2 + h4 {
  margin-top: 2.2rem;
}
.region-content h5 {
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
}
.region-content h6 {
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
}
.region-content h1 strong,
.region-content h1 b,
.region-content h2 strong,
.region-content h2 b,
.region-content h3 strong,
.region-content h3 b,
.region-content h4 strong,
.region-content h4 b,
.region-content h5 strong,
.region-content h5 b {
  font-weight: 400;
}


/* body text */
.region-content p {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 0 0 2.2rem 0;
}

/* subtitle/intro */
.region-content p.subtitle {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 0;
}
/* box around title and subtitle */
.region-content .pagetitlebox {
  padding-bottom: 32px;
  border-bottom: 1px solid #929292;
  margin-bottom: 32px;
}

/* paragraph before list - no space between */
.region-content p.prelist,
.region-content p.prelist {
  margin-bottom: 0;
}

/* lists */
.region-content ul {
  margin-left: 3.6rem;
  margin-bottom: 2.2rem;
  list-style-type: disc;
}
.region-content ol {
  margin-left: 3.6rem;
  margin-bottom: 2.2rem;
  list-style-type: decimal;
}
.region-content ul ul {
  list-style-type: circle;
}
.region-content ol ol {
  list-style-type: lower-alpha;
}
.region-content ol ol ol {
  list-style-type: lower-roman;
}
.region-content ul ul,
.region-content ul ol,
.region-content ol ol,
.region-content ol ul {
  margin-bottom: 0;
}
.region-content li {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #000000;
}
/* list with items separated like paragraphs */
.region-content ul.paragraphic-list,
.region-content ol.paragraphic-list {
  margin-bottom: 0;
}
.region-content ul.paragraphic-list li,
.region-content ol.paragraphic-list li {
  margin-bottom: 2.2rem;
}
.region-content h2 + .paragraphic-list,
.region-content h3 + .paragraphic-list,
.region-content h4 + .paragraphic-list,
.region-content h5 + .paragraphic-list,
.region-content h6 + .paragraphic-list {
  margin-top: 2.2rem;
}

/* button list */
.region-content ul.button-list {
  margin: 0 0 2.2rem 0;
  list-style-type: none;
  overflow: hidden;  /* clearself */
}
.region-content ul.button-list li {
  float: left;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: #000000;
  margin: 0 16px 0 0;
}
.region-content ul.button-list a {
  display: block;
  padding: 10px 12px;
  background-color: #1d5c7d;
  color: #ffffff;
  text-decoration: none;
}
.region-content ul.button-list a:focus,
.region-content ul.button-list a:hover {
  background-color: #12a8e0;
  color: #ffffff;
  text-decoration: none;
}

/* blockquote */
.region-content blockquote {
  margin-left: 3.6rem;
  margin-right: 0;
}

/* horizontal rules */
.region-content hr {
  display: block;
  height: 1px;
  border: none;
  color: #929292;
  background-color: #929292;
  margin: 2.2rem 0 2.2rem 0;
  padding: 0;
}


/* tables */
.region-content table {
  margin: 0 0 2.2rem 0;
  padding: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  width: auto;
}
.region-content table thead,
.region-content table tbody {
  border: none;
  background-color: transparent;
}
.region-content th,
.region-content td {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
  padding: 4px;
  border: none;
  background-color: transparent;
}

/* text table */
.region-content table.text-table {
}
.region-content h2 + table.text-table,
.region-content h3 + table.text-table,
.region-content h4 + table.text-table,
.region-content h5 + table.text-table,
.region-content h6 + table.text-table {
  margin-top: 2.2rem;
}
.region-content table.text-table tr td {
  padding: 0 14px 14px 0;
  text-align: left;
  vertical-align: top;
}
.region-content table.text-table tr th {
  padding: 0 14px 14px 0;
  font-weight: bold;
  text-align: left;
  vertical-align: middle;
}
.region-content table.text-table tr td > :last-child,
.region-content table.text-table tr th > :last-child {
  margin-bottom: 0;
}

/* simple lined table */
.region-content table.line-table {
}
.region-content h2 + table.line-table,
.region-content h3 + table.line-table,
.region-content h4 + table.line-table,
.region-content h5 + table.line-table,
.region-content h6 + table.line-table {
  margin-top: 2.2rem;
}
.region-content table.line-table tr td {
  padding: 12px;
  border: 1px solid #929292;
  text-align: left;
  vertical-align: top;
}
.region-content table.line-table tr th {
  padding: 12px;
  font-weight: bold;
  text-align: left;
  vertical-align: middle;
}
.region-content table.line-table tr td > :last-child,
.region-content table.line-table tr th > :last-child {
  margin-bottom: 0;
}

/* miscellaneous */

/* inline smaller/larger */
.region-content span.smaller {
  font-size: 85.71428%;   /* 12/14 */
}
.region-content span.larger {
  font-size: 121.42857%;  /* 17/14 */
}
.region-content span.smaller span.smaller,
.region-content span.smaller span.larger,
.region-content span.larger span.larger,
.region-content span.larger span.smaller {
  font-size: 100%;
}

/* inline red text */
.region-content span.red {
  color: #cc0000;
}

/* videos */
.region-content .videowrapper {
  width: 100%;
  line-height: 0;
}
.region-content .videowrapper iframe {
  margin: 0;
  max-width: 100%;
}



/*************************
 *************************
 *** PARAGRAPH STYLES ****
 *************************
 *************************/

/*** CONTAINER STYLES ***/

/* background-blue, background-gray, background-white, background-solid, bleed-right, bleed-both */
/* padding-24, padding-top-24, padding-bottom-24, margin-24, margin-top-24, margin-bottom-24 */
/* padding-32, padding-top-32, padding-bottom-32, margin-32, margin-top-32, margin-bottom-32 */
/* padding-64, padding-top-64, padding-bottom-64, margin-64, margin-top-64, margin-bottom-64 */

/* padding and margin */

.bodypar.padding-24,
.bodypar.padding-top-24 {
  padding-top: 24px;
}
.bodypar.padding-24,
.bodypar.padding-bottom-24 {
  padding-bottom: 24px;
}
.bodypar.padding-32,
.bodypar.padding-top-32 {
  padding-top: 32px;
}
.bodypar.padding-32,
.bodypar.padding-bottom-32 {
  padding-bottom: 32px;
}
.bodypar.padding-64,
.bodypar.padding-top-64 {
  padding-top: 64px;
}
.bodypar.padding-64,
.bodypar.padding-bottom-64 {
  padding-bottom: 64px;
}
.bodypar.margin-24,
.bodypar.margin-top-24 {
  margin-top: 24px;
}
.bodypar.margin-24,
.bodypar.margin-bottom-24 {
  margin-bottom: 24px;
}
.bodypar.margin-32,
.bodypar.margin-top-32 {
  margin-top: 32px;
}
.bodypar.margin-32,
.bodypar.margin-bottom-32 {
  margin-bottom: 32px;
}
.bodypar.margin-64,
.bodypar.margin-top-64 {
  margin-top: 64px;
}
.bodypar.margin-64,
.bodypar.margin-bottom-64 {
  margin-bottom: 64px;
}

/* background colors */

.bodypar.background-blue .bleed-background,
.bodypar.background-blue {
  background: rgba(0,157,255,0.051);
}
.bodypar.background-bluegray .bleed-background,
.bodypar.background-bluegray {
  background: rgba(0,88,118,0.102);
}
.bodypar.background-gray .bleed-background,
.bodypar.background-gray {
  background: rgba(88,48,0,0.125);
}
.bodypar.background-white .bleed-background,
.bodypar.background-white {
  background: rgba(255,255,255,0.4);
}
.bodypar.background-blue.background-solid .bleed-background,
.bodypar.background-blue.background-solid {
  background: #f2faff;
}
.bodypar.background-bluegray.background-solid .bleed-background,
.bodypar.background-bluegray.background-solid {
  background: #e5eef1;
}
.bodypar.background-gray.background-solid .bleed-background,
.bodypar.background-gray.background-solid {
  background: #eae5df;
}
.bodypar.background-white.background-solid .bleed-background,
.bodypar.background-white.background-solid {
  background: #ffffff;
}

/* secret style for project page */

.bodypar.border-bottom-gray .bleed-background,
.bodypar.border-bottom-gray {
  border-bottom: 1px solid #aca4a0;
}

/* bleed */

.bodypar.bleed-right,
.bodypar.bleed-full,
.bodypar.bleed-both {
  position: relative;
  background: transparent; /* remove background color if bleed background to be applied */
  border-bottom: none;
}



/*** BODY IMAGE and VIDEO ***/

/* these paragraphs can float and stretch */

/* WIDTHS depend on width style and on flex style */

/* flex-all means that box width will be percentage at all display widths */
.bodypar--flex-all.bodypar--width-25 {
  width: 25%;
}
.bodypar--flex-all.bodypar--width-33 {
  width: 33.33333%;
}
.bodypar--flex-all.bodypar--width-40 {
  width: 40%;
}
.bodypar--flex-all.bodypar--width-50 {
  width: 50%;
}
.bodypar--flex-all.bodypar--width-60 {
  width: 60%;
}
.bodypar--flex-all.bodypar--width-67 {
  width: 66.66666%;
}
.bodypar--flex-all.bodypar--width-75 {
  width: 75%;
}
.bodypar--flex-all.bodypar--width-100 {
  width: 100%;
}

/* flex-rigid means boxes try to maintain max pixel size and only shrink when column is too narrow */
/* flex-wide acts the same way at narrow screen widths */
.bodypar--flex-wide.bodypar--width-25,
.bodypar--flex-rigid.bodypar--width-25 {
  width: 193px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-33,
.bodypar--flex-rigid.bodypar--width-33 {
  width: 255px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-40,
.bodypar--flex-rigid.bodypar--width-40 {
  width: 309px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-50,
.bodypar--flex-rigid.bodypar--width-50 {
  width: 386px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-60,
.bodypar--flex-rigid.bodypar--width-60 {
  width: 463px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-67,
.bodypar--flex-rigid.bodypar--width-67 {
  width: 517px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-75,
.bodypar--flex-rigid.bodypar--width-75 {
  width: 579px;
  max-width: 100%;
}
.bodypar--flex-wide.bodypar--width-100,
.bodypar--flex-rigid.bodypar--width-100 {
  width: 772px;
  max-width: 100%;
}

/* flex-wide acts like flex-all at wider screen widths, but with minimum width *//* Q: why minimum width? */
@media (min-width: 769px) { /* intermediate */
  .bodypar--flex-wide.bodypar--width-25 {
    width: 25%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-33 {
    width: 33.33333%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-40 {
    width: 40%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-50 {
    width: 50%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-60 {
    width: 60%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-67 {
    width: 66.66666%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-75 {
    width: 75%;
    min-width: 193px;
  }
  .bodypar--flex-wide.bodypar--width-100 {
    width: 100%;
    min-width: 193px;
  }
}

/* FLOAT or CENTER depending on alignment style */

/* occupy full column width */
.bodypar--alignment-leftwide,
.bodypar--alignment-rightwide,
.bodypar--alignment-center {
  clear: both;
  width: 100%;
  margin: 2.2rem auto 2.2rem auto;
}
/* float left */
.bodypar--alignment-left {
  clear: left;
  float: left;
  margin: 0.4rem 20px 0.3rem 0;
}
/* float right */
.bodypar--alignment-right {
  clear: right;
  float: right;
  margin: 0.4rem 0 0.3rem 20px;
}

@media (min-width: 769px) { /* intermediate */
  /* float left */
  .bodypar--alignment-leftwide,
  .bodypar--alignment-left {
    clear: left;
    float: left;
    margin: 0.4rem 30px 0.3rem 0;
  }
  /* float right */
  .bodypar--alignment-rightwide,
  .bodypar--alignment-right {
    clear: right;
    float: right;
    margin: 0.4rem 0 0.3rem 30px;
  }
}

/* caption for both image and video */

.paragraph-bodyimage .text,
.paragraph-bodyvideo .text {
  background-color: #000000;
  padding: 14px 12px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #ffffff;
  margin-bottom: 0;
}
.paragraph-bodyimage .text a,
.paragraph-bodyvideo .text a {
  color: #ffffff;
  text-decoration: underline;
}
.paragraph-bodyimage .text a:focus,
.paragraph-bodyimage .text a:hover,
.paragraph-bodyvideo .text a:focus,
.paragraph-bodyvideo .text a:hover {
  color: #bce9fa;
  text-decoration: underline;
}

/* image only */

.paragraph-bodyimage .image {
  line-height: 0;
  text-align: center;
}
.paragraph-bodyimage .image img {
  width: auto;
  max-width: 100%;
}



/*** THUMBNAIL LINK PARAGRAPH ***/

.paragraph-thumblink {
  clear: both;
  margin: 32px 0;
}
.paragraph-thumblink a {
  display: flex;
  flex-flow: row nowrap;
  min-height: 120px;
  background-color: #f2faff;
  text-decoration: none;
}
.paragraph-thumblink a:focus,
.paragraph-thumblink a:hover {
  box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.6);
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1); /* reduce interaction with background image */
  text-decoration: none;
}
.paragraph-thumblink .image {
  display: none;
  position: relative;
  flex: 0 0 120px;
  align-self: flex-start; /* stick to top */
  line-height: 0;
}
.paragraph-thumblink .image::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
.paragraph-thumblink a:focus .image::before,
.paragraph-thumblink a:hover .image::before {
  background: #62f34d;
}
.paragraph-thumblink .text {
  flex: 1 1 auto;
  align-self: center; /* center vertically */
  padding: 12px 18px;
}
.paragraph-thumblink .text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.6rem;
  color: #1d5c7d;
  margin: 0;
}
.paragraph-thumblink a:focus .text h3,
.paragraph-thumblink a:hover .text h3 {
  text-decoration: underline;
}
.paragraph-thumblink .text p {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
}
.paragraph-thumblink .text p.subtitle {
  font-weight: 700;
}

@media (min-width: 441px) { /* mobile */
  .paragraph-thumblink .image {
    display: block;
  }
}



/*** QUOTE PARAGRAPH ***/

.paragraph-quote {
  clear: both;
  display: flex;
  flex-flow: row no-wrap;
  justify-content: flex-start;
  position: relative;
  width: auto;
  padding-top: 7px;
}
.paragraph-quote::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}

.paragraph-quote .text {
  flex: 1 1 auto;
  padding: 18px 24px 32px 24px;
}
.paragraph-quote .text p.quote {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 0;
}
.quote--textsize-large .text p.quote {
  font-size: 2.8rem;
  line-height: 3.2rem;
}
.quote--textsize-medium .text p.quote {
  font-size: 2.4rem;
  line-height: 3.0rem;
}
.quote--textsize-small .text p.quote {
  font-size: 2.0rem;
  line-height: 2.8rem;
}
.paragraph-quote .text p.attribution {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 2.4rem 0 0 0;
}
.paragraph-quote .image {
  flex: 0 0 124px;
  line-height: 0;
}
.paragraph-quote .image img {
  width: 100%;
}



/*** ACCORDION ITEM PARAGRAPH ***/

.paragraph-accordionitem {
  clear: both;
  margin: 32px 0;
  padding-bottom: 32px;
  border-bottom: 1px solid #929292;
}
.paragraph-accordionitem h3.opener {
  margin: 0;
}
.paragraph-accordionitem h3.opener button {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: inherit;
  text-align: inherit;
  color: inherit;
  padding: 0 4.0rem 0 0;
  border: none;
  margin: 0;
  background-color: transparent;
}
.paragraph-accordionitem h3.opener .title {
  display: block;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 0;
}
.paragraph-accordionitem h3.opener .subtitle {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #000000;
  margin: 0.4rem 0 0 0;
}

.paragraph-accordionitem h3.opener button::before {
  content: '\25bc';
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #1d5c7d;
  position: absolute;
  right: 0;
  top: 1.6rem;
  transform: translatey(-50%);
}
.paragraph-accordionitem h3.opener button[aria-expanded="true"]::before {
  content: '\25b2';
}

.paragraph-accordionitem .openable {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.3s opacity linear;
}
.paragraph-accordionitem .openable[aria-hidden="false"] {
  max-height: none;
  padding: 2.2rem 4.0rem 0 0;
  opacity: 1;
}
/* note: the following preferable animations don't work:
   - display:none to display:block (kills all other transitions)
   - height:0 to height:auto (and we don't know what the height will be)
   - max-height:0 to max-height:none (ditto)
   so instead, we animate opacity
*/
.paragraph-accordionitem .openable > *:last-child {
  margin-bottom: 0;
}



/*** BODY VIEW PARAGRAPH ***/

.paragraph-view {
  clear: both;
}
.paragraph-view h2.viewtitle {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: #5a4a42;
  margin-bottom: 1.8rem;
}
.paragraph-view p.viewbutton {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: #000000;
  text-align: center;
  margin: 32px 0 0 0;
}
.paragraph-view p.viewbutton a {
  display: inline-block;
  padding: 10px 12px;
  background-color: #1d5c7d;
  color: #ffffff;
  text-decoration: none;
}
.paragraph-view p.viewbutton a:focus,
.paragraph-view p.viewbutton a:hover {
  background-color: #12a8e0;
  color: #ffffff;
  text-decoration: none;
}



/*** GALLERY PARAGRAPH ***/

/* at low widths, static version is shown */
.paragraph-gallery-static {
  clear: both;
}
.paragraph-gallery-dynamic {
  clear: both;
  display: none;
}

@media (min-width: 441px) { /* mobile */
  /* turn off the static gallery */
  .paragraph-gallery-static {
    display: none;
  }
  /* dynamic gallery - contains slides and thumbnail navigation */
  .paragraph-gallery-dynamic {
    display: flex;
    flex-flow: column nowrap;
  }
  /* container for slides */
  .paragraph-gallery-dynamic .slides {
    order: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    padding-top: calc(66.66667% + 50px);   /* 2/3 plus space for caption */
    background-color: #000000;
    margin: 0;
    overflow: hidden;
  }
  .paragraph-gallery-dynamic.gallery-ratio-7-4 .slides {
    padding-top: calc(57.142857% + 50px);   /* 4/7 plus space for caption */
  }
  /* individual slides */
  .paragraph-gallery-dynamic .slides .slide {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding-bottom: 50px;
    line-height: 0; /* remove space under image */
  }
  .paragraph-gallery-dynamic .slides .slide[aria-hidden="true"] {
    display: none;
  }
  .paragraph-gallery-dynamic .slides .slide .video,
  .paragraph-gallery-dynamic .slides .slide .image {
    flex: 0 0 100%;
  }
  .paragraph-gallery-dynamic .slides .slide .text {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 50px;
    padding: 14px 12px;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.2rem;
    color: #ffffff;
    background-color: rgba(0,0,0,0.8);
    margin-bottom: 0;
  }
  .paragraph-gallery-dynamic .slides .slide .text a {
    color: #ffffff;
    text-decoration: underline;
  }
  .paragraph-gallery-dynamic .slides .slide .text a:focus,
  .paragraph-gallery-dynamic .slides .slide .text a:hover {
    color: #bce9fa;
    text-decoration: underline;
  }

  /* thumbnail navigation */
  .paragraph-gallery-dynamic .thumbs {
    order: 2;
    width: 100%;
    padding: 6px 0px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 6px;
  }
  .paragraph-gallery-dynamic .thumbs button {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 0;  /* because only content is an image */
    text-transform: inherit;
    text-align: inherit;
    color: inherit;
    padding: 0;
    border: none;
    margin: 0;
    background-color: transparent;
  }
  .paragraph-gallery-dynamic .thumbs button img {
    width: 100%;
  }
  .paragraph-gallery-dynamic .thumbs button.video-slide::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: 50%;
    width: 100%;
    height: 60%;
    background-image: url('../images/misc/video_play_overlay_240x240.png');
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translatey(-50%);
  }
}
@media (min-width: 769px) { /* intermediate */
  /* more space between thumbnails */
  .paragraph-gallery-dynamic .thumbs {
    padding: 13px 0px;
    grid-gap: 13px;
  }
}



/*** TEXT + THUMBNAIL ITEM GROUP PARAGRAPH ***/

.paragraph-thumbitemgroup {
  clear: both;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2.2rem;
  margin-bottom: 2.2rem;  /* like paragraph */
}
.paragraph-thumbitem {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
}
.paragraph-thumbitem .image {
  flex: 0 1 25%;
  line-height: 0;
}
.paragraph-thumbitem .image img {
  margin-top: 0.4rem;
}
.paragraph-thumbitem .text {
  flex: 1 1 100%;
}
div.paragraph-thumbitem div.text > *:last-child {
  margin-bottom: 0;
}
/* left and right alignment */
.thumbitemgroup--alignment-left .paragraph-thumbitem .image {
  order: 1;
}
.thumbitemgroup--alignment-left .paragraph-thumbitem .text {
  order: 2;
  margin-left: 8px;
}
.thumbitemgroup--alignment-right .paragraph-thumbitem .image {
  order: 2;
}
.thumbitemgroup--alignment-right .paragraph-thumbitem .text {
  order: 1;
  margin-right: 8px;
}
/* image width */
.thumbitemgroup--width-small .paragraph-thumbitem .image {
  max-width: 120px;
}
.thumbitemgroup--width-medium .paragraph-thumbitem .image {
  max-width: 150px;
}
.thumbitemgroup--width-large .paragraph-thumbitem .image {
  max-width: 188px;
}
@media (min-width: 441px) { /* mobile */
  .thumbitemgroup--alignment-left .paragraph-thumbitem .text {
    margin-left: 18px;
  }
  .thumbitemgroup--alignment-right .paragraph-thumbitem .text {
    margin-right: 18px;
  }
}



/*** SPINOUT PARAGRAPH ***/

/* see project page styles */



/*** OUR WORK PARAGRAPH ***/

/* entered through text paragraph onto Our Work page */

.paragraph-ourwork {
  clear: both;
}
.paragraph-ourwork .introduction h2 {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: #5a4a42;
  margin: 0;
  margin-top: -0.5rem; /* tweak to even spacing */
}
.paragraph-ourwork .introduction p {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 2.2rem 0 0 0;
}
/* containers */
.paragraph-ourwork .impact-areas,
.paragraph-ourwork .research-themes {
  display: block;
  position: relative;
  margin-top: 32px;
  padding-top: 24px;
}
.paragraph-ourwork .impact-areas::before,
.paragraph-ourwork .research-themes::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
/* headings */
.paragraph-ourwork .impact-areas h3,
.paragraph-ourwork .research-themes h3 {
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
  color: #5a4a42;
  text-align: center;
  margin: -0.5rem 0 24px 0; /* negative margin is tweak to improve spacing */
}
/* text */
.paragraph-ourwork .impact-areas li,
.paragraph-ourwork .research-themes li {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
}
/* impact area buttons */
.paragraph-ourwork .impact-areas ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paragraph-ourwork .impact-areas li {
  display: block;
  max-width: 236px;
  margin: 24px auto 0 auto;
  text-align: center;
}
.paragraph-ourwork .impact-areas li:first-child {
  margin-top: 0;
}
.paragraph-ourwork .impact-areas li a {
  display: block;
  position: relative;
  width: 100%;
  padding: 120px 6px 14px 6px;
  min-height: 174px;
  background: #1d5c7d;
  background: linear-gradient(90deg, #11385e 0%, #1d5c7d 100%);
  color: #ffffff;
  text-decoration: none;
}
.paragraph-ourwork .impact-areas li a::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 24px;
  height: 78px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.paragraph-ourwork .impact-areas li.water a::before {
  background-image: url('../images/misc/impact_icon_water.svg');
}
.paragraph-ourwork .impact-areas li.food a::before {
  background-image: url('../images/misc/impact_icon_food.svg');
}
.paragraph-ourwork .impact-areas li.climate a::before {
  background-image: url('../images/misc/impact_icon_climate.svg');
}
.paragraph-ourwork .impact-areas li a:focus,
.paragraph-ourwork .impact-areas li a:hover {
  color: #1d5c7d;
  background: #ffffff;
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
  text-decoration: none;
}

/* research theme buttons */
.paragraph-ourwork .research-themes ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paragraph-ourwork .research-themes li {
  display: block;
  margin: 24px 0 0 0;
  background-color: #ffffff;
}
.paragraph-ourwork .research-themes ul.left li:first-child {
  margin-top: 0;
}
.paragraph-ourwork .research-themes li a {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;  /* horizontally center text */
  align-items: center;  /* vertically center text */
  border: 1px solid #d3cccc;
  padding: 0.6rem 54px 0.6rem 8px;
  min-height: 7.2rem;
  color: #1d5c7d;
  text-align: center; /* also needed to center multi-line wrapped text */
  text-decoration: none;
}
.paragraph-ourwork .research-themes li a::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: 0;
  width: 47px;
  background-color: #1d5c7d;
}
.paragraph-ourwork .research-themes li a::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 16px;
  top: calc(50% - 9px);
  width: 12px;
  height: 18px;
  padding: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid white;
  border-right: none;
}
.paragraph-ourwork .research-themes li a:focus,
.paragraph-ourwork .research-themes li a:hover {
  color: #ffffff;
  background-color: #1d5c7d;
  border-color: #1d5c7d;
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
  text-decoration: none;
}
@media (min-width: 581px) { /* wider mobile (custom breakpoint) */
  /* impact area buttons in row */
  .paragraph-ourwork .impact-areas ul {
    display: flex;
    flex-flow: row nowrap;
  }
  .paragraph-ourwork .impact-areas li {
    margin-top: 0;
    flex: 1 1 236px;
    display: flex;
    flex-flow: row nowrap;  /* causes a to fill height */
  }
  .paragraph-ourwork .impact-areas li:nth-child(n+2) {
    margin-left: 4.14507%;
  }
  /* research theme buttons in two columns */
  .paragraph-ourwork .research-themes .buttons {
    display: flex;
    flex-flow: row nowrap;
  }
  .paragraph-ourwork .research-themes ul {
    flex: 0 0 47.92746%;  /* 370/772 */
  }
  .paragraph-ourwork .research-themes ul.right {
    margin-left: auto;
  }
  .paragraph-ourwork .research-themes ul.right li:first-child {
    margin-top: 0;
  }
}
@media (min-width: 1141px) { /* wide */
  .paragraph-ourwork .impact-areas li:nth-child(n+2) {
    margin-left: 32px;
  }
}




/*******************
 *******************
 *** VIEW STYLES ***
 *******************
 *******************/

/*** COMMON ***/

/* simple text list used for project list on person and publication pages, etc. */

.region-content ul.viewstitlelist {
  margin: 0 0 2.2rem 0;
  list-style: none;
}
.region-content ul.viewstitlelist li {
  margin-bottom: 1.0rem;
}
.region-content ul.viewstitlelist li:last-child {
  margin-bottom: 0;
}



/*** PERSON LIST ***/

.view-personlist {
  margin-top: 32px;
}

/* exposed form */

.personlist-filters {
  width: 100%;
}
/* labels visually hidden */
.personlist-filters label {
  position: absolute;
  left: -99999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* name text input */
.personlist-filters .form-item-name {
  width: 100%;
  max-width: 300px;
  min-height: 3.6rem;
  padding: 5px 15px;
  border: 1px solid #767676;
  margin: 0;
  display: flex;
  flex-flow: row nowrap
  align-items: center;
}
.personlist-filters .form-item-name input {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  padding: 0;
  border: none;
  width: 100%;
}

/* submit button */
.personlist-filters .form-actions {
  width: 100%;
  max-width: 300px;
  min-height: 3.6rem;
  margin: 0.8rem 0 0 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
}
.personlist-filters .form-actions input {
  width: 100%;
  padding: 0.9rem 15px;
  background-color: #1d5c7d;
  border: none;
  min-height: 3.6rem;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-align: center;
}
.personlist-filters .form-actions input:focus,
.personlist-filters .form-actions input:hover {
  background-color: #12a8e0;
}

/* clear button (implemented by javascript) */
.personlist-filters .form-clear {
  width: 100%;
  max-width: 300px;
  min-height: 3.6rem;
  margin: 0.8rem 0 0 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
}
.personlist-filters .form-clear button {
  width: 100%;
  padding: 0.9rem 15px;
  background-color: #767676;
  border: none;
  min-height: 3.6rem;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-align: center;
}
.personlist-filters .form-clear button:focus,
.personlist-filters .form-clear button:hover {
  background-color: #12a8e0;
}

@media (min-width: 441px) { /* intermediate */
  .personlist-filters {
    display: flex;
    flex-flow: row nowrap;
  }
  .personlist-filters .form-item-name {
    flex: 0 1 auto;
    max-width: 178px;
  }
  .personlist-filters .form-clear,
  .personlist-filters .form-actions {
    flex: 0 1 auto;
    max-width: 100px;
    margin: 0 0 0 8px;
  }
}

/* view header */

.view-personlist .view-filters + .view-header {
  margin-top: 32px;
}
.view-personlist .view-header {
  display: flex;
  flex-flow: column nowrap;
}
.view-personlist .view-header h2.resulttitle {
  font-size: 2.8rem;
  line-height: 1;
  color: #5a4a42;
  margin: 0;
}
.view-personlist .view-header p.resultcount {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #767676;
  margin: 0.8rem 0 0 0;
}
@media (min-width: 441px) { /* intermediate */
  .view-personlist .view-filters + .view-header {
    margin-top: 64px;
  }
  .view-personlist .view-header {
    flex-flow: row nowrap;
    align-items: baseline;
  }
  .view-personlist .view-header p.resultcount {
    margin: 0 0 0 auto;
  }
}

/* view content */

.view-personlist .view-content {
  margin-top: 32px;
}
/* single flex column at low width */
.view-personlist .view-content > div {  /* the inner div is .views-infinite-scroll-content-wrapper */
  display: flex;
  flex-flow: column nowrap;
}
.view-personlist .item {
  position: relative;
}
.view-personlist .item + .item {
  margin-top: 16px;
}
.view-personlist .item > a {
  position: relative;
  width: 100%;
  padding: 32px 16px;
  background-color: #ffffff;
  border: 1px solid #c6c6c6;
  display: flex;
  flex-flow: column nowrap;
  text-decoration: none;
}
.view-personlist .item > a::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
.view-personlist .item > a:focus,
.view-personlist .item > a:hover {
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
  text-decoration: none;
}
.view-personlist .item > a:focus::before,
.view-personlist .item > a:hover::before {
  background: #62f34d;
}
.view-personlist .item .image {
  position: relative;
  width: 100%;
  max-width: 129px;
  line-height: 0;
  margin: 0 auto;
}
.view-personlist .item .image img {  /* round photo */
  width: 100%;
  border-radius: 50%;
}
.view-personlist .item .image-empty span { /* if no photo, gray circle */
  display: block;
  width: 100%;
  padding-top: 100%;
  background-color: #787878;
  border-radius: 50%;
}
/* text */
.view-personlist .item h3.name {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #1d5c7d;
  text-align: center;
  margin: 0.8rem 0 0 0;
}
.view-personlist .item > a:focus h3.name,
.view-personlist .item > a:hover h3.name {
  text-decoration: underline;
}
.view-personlist .item p.department {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  text-align: center;
  margin: 0.8rem 0 0 0;
}
/* admin stuff */
.view-personlist .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-personlist .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}
/* grid at higher widths */
@media (min-width: 441px) { /* intermediate */
  .view-personlist .view-content > div {  /* the inner div is .views-infinite-scroll-content-wrapper */
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-content: start;
    align-items: stretch;
  }
  .view-personlist .item {
    max-width: 200px;
    min-height: 278px;
    display: flex;    /* this causes the inner a to stretch to full height of grid cell */
  }
  .view-personlist .item + .item {
    margin-top: 0;
  }
}
/* this gets rid of the pseudo-element created by .clearfix that causes an extra grid cell */
.views-infinite-scroll-content-wrapper::after {
  display: none;
}

/* no results content */

.view-personlist .view-empty {
  margin-top: 32px;
}
.view-personlist .view-empty p {
  margin: 0;
}

/* pager (infinite scroll button) */

.view-personlist ul.pager {
  display: flex;
  flex-flow: row nowrap;
  margin: 32px 0 0 0;
  justify-content: center;
}
.view-personlist ul.pager li {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  padding: 0; /* override drual style */
}
.view-personlist ul.pager li a {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 0.9rem 15px;
  background-color: #1d5c7d;
  border: none;
  margin: 0 auto;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}
.view-personlist ul.pager li a:focus,
.view-personlist ul.pager li a:hover {
  background-color: #12a8e0;
}



/*** PROJECT PIS ***/

/* embedded in Project pages */

/* common styles for either one or more (all) pis */
.view-projectpis .item {
  position: relative;
}
.view-projectpis .item > a {
  position: relative;
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  text-decoration: none;
}
.view-projectpis .item > a:focus,
.view-projectpis .item > a:hover {
  text-decoration: none;
}
.view-projectpis .item .image {
  position: relative;
  width: 100%;
  max-width: 129px;
  line-height: 0;
}
.view-projectpis .item .image img {  /* round photo */
  width: 100%;
  border-radius: 50%;
}
.view-projectpis .item .image-empty span { /* if no photo, gray circle */
  display: block;
  width: 100%;
  padding-top: 100%;
  background-color: #787878;
  border-radius: 50%;
}
/* text */
.view-projectpis .item .text {
  margin-top: 0.8rem;
}
.view-projectpis .item h3.name {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #1d5c7d;
  margin: 0;
}
.view-projectpis .item > a:focus h3.name,
.view-projectpis .item > a:hover h3.name {
  text-decoration: underline;
}
.view-projectpis .item ul.titles {
  margin: 0;
  padding: 0;
  list-style: none;
}
.view-projectpis .item ul.titles li {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0.8rem 0 0 0;
}
@media (min-width: 401px) and (max-width: 640px) { /* mobile (custom breakpoints) */
  .view-projectpis .item > a {
    flex-flow: row nowrap;
  }
  .view-projectpis .item .image {
    flex: 0 0 auto;
  }
  .view-projectpis .item .text {
    margin: 20px 0 0 20px;
    flex: 1 1 auto;
  }
}
/* admin stuff */
.view-projectpis .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-projectpis .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}

/* styles for multiple PIs */

.view-projectpis-all {
  display: flex;
  flex-flow: column nowrap;
}
.view-projectpis-all .item {
  display: flex;
  flex-flow: column nowrap;
}
.view-projectpis-all .item + .item {
  margin-top: 32px;
}
/* grid at higher widths */
@media (min-width: 641px) { /* intermediate (custom breakpoint) */
  .view-projectpis-all {
    display: grid;
    grid-gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    justify-content: start;
    align-items: stretch;
  }
  .view-projectpis-all .item {
    display: flex;    /* this causes the inner a to stretch to full height of grid cell */
  }
  .view-projectpis-all .item + .item {
    margin-top: 0;
  }
}

/* styles for single PI */

.view-projectpis-one {
  display: block;
}
.view-projectpis-one .item {
  display: flex;
  flex-flow: column nowrap;
}
.view-projectpis-one .item .pibio {
  margin-top: 24px;
}
.view-projectpis-one .item .pibio > *:last-child {
  margin-bottom: 0;
}
/* grid inside item at higher widths */
@media (min-width: 641px) { /* intermediate (custom breakpoint) */
  .view-projectpis-one .item {
    display: grid;
    grid-gap: 32px;
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  .view-projectpis-one .item .pibio {
    margin-top: 0;
  }
  .view-projectpis-one .item .pibio {
    padding-top: calc(129px + 0.8rem);
  }
}
@media (min-width: 769px) { /* intermediate */
  .view-projectpis-one .item {
    grid-gap: 48px;
  }
}



/*** PUBLICATION LIST ***/

.view-publist {
  margin-top: 32px;
}

/* view header */

.view-publist .view-filters + .view-header {
  margin-top: 32px;
}
.view-publist .view-header {
  display: flex;
  flex-flow: column nowrap;
}
.view-publist .view-header h2.resulttitle {
  font-size: 2.8rem; /* this is slightly smaller than default */
  line-height: 1;
  color: #5a4a42;
  margin: 0;
}
.view-publist .view-header p.resultcount {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #767676;
  margin: 0.8rem 0 0 0;
}
@media (min-width: 441px) { /* intermediate */
  .view-publist .view-filters + .view-header {
    margin-top: 64px;
  }
  .view-publist .view-header {
    flex-flow: row nowrap;
    align-items: baseline;
  }
  .view-publist .view-header p.resultcount {
    margin: 0 0 0 auto;
  }
}

/* row groups */

.view-publist .row-group {
  margin-top: 32px;
}
.view-publist h3.row-group-title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #000000;
  margin: 0;
}

/* view content */

/* single flex column */
.view-publist .row-group-content {
  margin-top: 32px;
  display: flex;
  flex-flow: column nowrap;
}
.view-publist .item {
  position: relative;
}
.view-publist .item + .item {
  margin-top: 32px;
}
.view-publist .item > a {
  position: relative;
  width: 100%;
  padding: 40px 16px 32px 8px;
  background-color: #ffffff;
  border: 1px solid #c6c6c6;
  display: flex;
  flex-flow: row nowrap;  /* link contains info and icon */
  text-decoration: none;
}
.view-publist .item > a::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
.view-publist .item > a:focus,
.view-publist .item > a:hover {
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
  text-decoration: none;
}
.view-publist .item > a:focus::before,
.view-publist .item > a:hover::before {
  background: #62f34d;
}
/* text */
.view-publist .info {
  flex: 1 1 100%;
}
.view-publist .item h4.pubtitle {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #1d5c7d;
}
.view-publist .item > a:focus h4.pubtitle,
.view-publist .item > a:hover h4.pubtitle {
  text-decoration: underline;
}
.view-publist .item p.author {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0.8rem 0 0 0;
}
.view-publist .item h5.keywords {
  font-size: 1.4rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.8rem;
  color: #000000;
  margin: 1.2rem 0 0 0;
}
.view-publist .item p.keywords {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0.8rem 0 0 0;
}
/* admin stuff */
.view-publist .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-publist .row-group-content .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}
/* icon */
.view-publist .row-group-content .icon {
  display: none;
}

@media (min-width: 441px) { /* mobile */
  .view-publist .row-group-content .icon {
    display: block;
    flex: 0 0 48px;
    margin-left: 32px;
  }
  .view-publist .publication-icon {
    margin-top: -4px;
    width: 48px;
    padding-top: 42px;
    background-position: 50% 0;
    background-size: 36px 36px;
    background-repeat: no-repeat;
  }
  .view-publist .publication-icon.article {
    background-image: url('../images/misc/pub_article_128x128.png');
  }
  .view-publist .publication-icon.book {
    background-image: url('../images/misc/pub_book_128x128.png');
  }
  .view-publist .publication-icon.report {
    background-image: url('../images/misc/pub_report_128x128.png');
  }
  .view-publist .publication-icon.thesis {
    background-image: url('../images/misc/pub_thesis_128x128.png');
  }
  .view-publist .publication-icon::after {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #000000;
    margin: 0;
    text-align: center;
  }
  .view-publist .publication-icon.article::after {
    content: "Article";
  }
  .view-publist .publication-icon.book::after {
    content: "Book";
  }
  .view-publist .publication-icon.report::after {
    content: "Report";
  }
  .view-publist .publication-icon.thesis::after {
    content: "MIT Thesis";
  }
}

/* no results content */

.view-publist .view-empty {
  margin-top: 32px;
}
.view-publist .view-empty p {
  margin: 0;
}

/* pager (infinite scroll button) */

.view-publist ul.pager {
  display: flex;
  flex-flow: row nowrap;
  margin: 32px 0 0 0;
  justify-content: center;
}
.view-publist ul.pager li {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  padding: 0; /* override drual style */
}
.view-publist ul.pager li a {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 0.9rem 15px;
  background-color: #1d5c7d;
  border: none;
  margin: 0 auto;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}
.view-publist ul.pager li a:focus,
.view-publist ul.pager li a:hover {
  background-color: #12a8e0;
}



/*** PROJECT PUBLICATIONS ***/

/* see Project page */



/*** NEWS FEATURE AND NEWS LIST   ***/
/*** EVENT FEATURE AND EVENT LIST ***/

/* see styles for News Home Page */



/*** RELATED NEWS ***/

/* view content */

/* single flex column at low width */
.view-newsrelated {
  display: flex;
  flex-flow: column nowrap;
}
.view-newsrelated .item {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
}
.view-newsrelated .item + .item {
  margin-top: 32px;
}
.view-newsrelated .item > a {
  position: relative;
  width: 100%;
  padding-top: 31px;  /* 7 gradient + 24 space */
  display: flex;
  flex-flow: column nowrap;
  text-decoration: none;
}
.view-newsrelated .item > a::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
.view-newsrelated .item > a:focus,
.view-newsrelated .item > a:hover {
  text-decoration: none;
}
.view-newsrelated .item > a:focus::before,
.view-newsrelated .item > a:hover::before {
  background: #62f34d;
}
.view-newsrelated .item .image {
  position: relative;
  width: 100%;
  line-height: 0;
}
.view-newsrelated .item .image img {
  width: 100%;
}
.view-newsrelated .item .image-empty span { /* if no photo, gray box */
  display: block;
  width: 100%;
  padding-top: 66.66666%;
  background-color: #787878;
}
/* text */
.view-newsrelated .item .text {
  padding: 20px 0 0 0;
  display: flex;
  flex-flow: column nowrap;
}
.view-newsrelated .item h3.title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #1d5c7d;
  margin: 0 0 8px 0;
}
.view-newsrelated .item > a:focus h3.title,
.view-newsrelated .item > a:hover h3.title {
  text-decoration: underline;
}
.view-newsrelated .item p.teaser {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0;
}
/* admin stuff */
.view-newsrelated .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-newsrelated .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}
@media (max-width: 440px) {
  /* this overrides the height set by javascript */
  .view-newsrelated .item h3.title {
    height: auto !important;
  }
}
/* grid at higher widths */
@media (min-width: 441px) { /* mobile */
  .view-newsrelated {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    align-items: stretch;
  }
  .view-newsrelated .item {
    display: flex;    /* this causes the inner a to stretch to full height of grid cell */
  }
  .view-newsrelated .item + .item {
    margin-top: 0;
  }
  .view-newsrelated .item .text {
    flex: 1 1 auto;
  }
  .view-newsrelated .item p.teaser {
    /*margin-top: auto;*//* removed this in favor of using JS to equalize the title heights */
  }
}
@media (min-width: 541px) { /* wider mobile (custom breakpoint) */
  .view-newsrelated.rowcount-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 641px) { /* wider mobile (custom breakpoint) */
  .view-newsrelated {
    grid-template-columns: repeat(4, 1fr);
  }
  .view-newsrelated.rowcount-1,
  .view-newsrelated.rowcount-2,
  .view-newsrelated.rowcount-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 769px) { /* intermediate */
  .view-newsrelated {
    grid-template-columns: repeat(2, 1fr);
  }
  .view-newsrelated.rowcount-1,
  .view-newsrelated.rowcount-2,
  .view-newsrelated.rowcount-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 921px) { /* wider intermediate (custom breakpoint) */
  .view-newsrelated {
    grid-template-columns: repeat(4, 1fr);
  }
  .view-newsrelated.rowcount-1,
  .view-newsrelated.rowcount-2,
  .view-newsrelated.rowcount-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}



/*** RESEARCH HIGHLIGHTS ***/

/* view content */

/* single flex column at low width */
.view-reshighlights .view-content {
  display: flex;
  flex-flow: column nowrap;
}
.view-reshighlights .item {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
}
.view-reshighlights .item + .item {
  margin-top: 48px;
}
.view-reshighlights .item > a {
  position: relative;
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  text-decoration: none;
}
.view-reshighlights .item > a:focus,
.view-reshighlights .item > a:hover {
  text-decoration: none;
}
.view-reshighlights .item p.label {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  padding: 8px 16px;
  background: #5a4a42;
  background: linear-gradient(90deg, #62533e 0%, #907958 100%);
  margin: 0 0 24px 0;
}
.view-reshighlights .item > a:focus p.label,
.view-reshighlights .item > a:hover p.label {
  color: #5a4a42;
  background: #eae5df; /* on white or no background */
}
.bodypar.background-blue .view-reshighlights .item > a:focus p.label,
.bodypar.background-blue .view-reshighlights .item > a:hover p.label,
.bodypar.background-bluegray .view-reshighlights .item > a:focus p.label,
.bodypar.background-bluegray .view-reshighlights .item > a:hover p.label,
.bodypar.background-gray .view-reshighlights .item > a:focus p.label,
.bodypar.background-gray .view-reshighlights .item > a:hover p.label {
  background: #ffffff; /* on tinted background */
}
.view-reshighlights .item .image {
  position: relative;
  width: 100%;
  line-height: 0;
}
.view-reshighlights .item .image img {
  width: 100%;
}
.view-reshighlights .item .image-empty span { /* if no photo, gray box */
  display: block;
  width: 100%;
  padding-top: 57.14285%;    /* 7:4 */
  background-color: #787878;
}
.view-reshighlights .item h3.title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #1d5c7d;
  margin: 20px 0 0 0;
}
.view-reshighlights .item > a:focus h3.title,
.view-reshighlights .item > a:hover h3.title {
  text-decoration: underline;
}
/* admin stuff */
.view-reshighlights .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-reshighlights .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}
@media (max-width: 440px) {
  /* this overrides the height set by javascript */
  .view-reshighlights .item > a {
    height: auto !important;
  }
}
@media (min-width: 441px) { /* wide enough for a slider */
  /* reset styles for slider */
  .view-reshighlights {
    margin: 0;
    width: 100%;
    padding: 0 28px; /* side padding for prev/next buttons */
  }
  .view-reshighlights .view-content {
    display: block;
  }
  .view-reshighlights .item {
    max-width: none;
    margin: 0;
    padding: 0 10px;  /* 20px space between slides */
  }
  .view-reshighlights .item + .item {
    margin-top: 0;
  }
  .view-reshighlights .vieweditlink {
    right: 10px;
  }
  /* blank slideshow while initializing */
  .view-reshighlights .view-content:not(.slick-initialized) {
    height: 300px;
    overflow: hidden;
    background-image: url('../images/ajax-loader.gif');
    background-position: 50% 50%;
    background-repeat: no-repeat;
  }
  .view-reshighlights .view-content:not(.slick-initialized) > * {
    visibility: hidden;
  }
}
@media (min-width: 769px) { /* intermediate */
  .view-reshighlights {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    padding: 0;
  }
}

/* slider graphics (equivalent of slick-theme.css; jwafsd8-slick.css loaded separately) */

/* previous/next arrows */
.view-reshighlights .slick-prev,
.view-reshighlights .slick-next {
  display: block;
  position: absolute;
  z-index: 9999;
  top: 79px;
  width: 21px;
  height: 33px;
  padding: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}
.view-reshighlights .slick-prev {
  left: -28px;
  border-right: 21px solid #1d5c7d;
  border-left: none;
}
.view-reshighlights .slick-prev:focus,
.view-reshighlights .slick-prev:hover {
  border-right-color: #12a8e0;
}
.view-reshighlights .slick-next {
  right: -28px;
  border-left: 21px solid #1d5c7d;
  border-right: none;
}
.view-reshighlights .slick-next:focus,
.view-reshighlights .slick-next:hover {
  border-left-color: #12a8e0;
}
.view-reshighlights .slick-prev.slick-disabled,
.view-reshighlights .slick-next.slick-disabled {
  opacity: .15;
  cursor: auto;
}
@media (min-width: 769px) { /* intermediate */
  .view-reshighlights .slick-prev {
    left: -22px;
  }
  .view-reshighlights .slick-next {
    right: -22px;
  }
}
@media (min-width: 1161px) { /* very wide */
  .view-reshighlights .slick-prev {
    left: -33px;
  }
  .view-reshighlights .slick-next {
    right: -33px;
  }
}

/* loading */
.view-reshighlights .slick-loading .slick-list {
  background: #fff url('../images/ajax-loader.gif') center center no-repeat;
}

/* dots */
.view-reshighlights .slick-dotted.slick-slider {
  padding-bottom: 37px;
}
.view-reshighlights ul.slick-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}
.view-reshighlights ul.slick-dots li {
  display: block;
  padding: 0 7px;
}
.view-reshighlights ul.slick-dots li button {
  display: block;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 6px;
  background: #a3a1a0;
  font-size: 0;
  line-height: 0;
  color: #000000;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.view-reshighlights .slick-dots li button:hover,
.view-reshighlights .slick-dots li button:focus,
.view-reshighlights .slick-dots li.slick-active button {
  color: #ffffff;
  background: #5a4a42;
}



/*** PROJECT LIST ***/

.view-projectlist {
  margin-top: 32px;
}

/* exposed form */

.projectlist-filters {
  position: relative; /* because of popup filters */
  z-index: 9;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 8px;
}
/* labels visually hidden */
.projectlist-filters label {
  position: absolute;
  left: -99999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* name text input */
.projectlist-filters .form-item-piname {
  width: 100%;
  min-height: 3.6rem;
  padding: 5px 15px;
  border: 1px solid #767676;
  margin: 0;
  display: flex;
  flex-flow: row nowrap
  align-items: center;
}
.projectlist-filters .form-item-piname input {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  padding: 0;
  border: none;
  width: 100%;
}

/* sector/theme filter button */
.projectlist-filters .popup-filter {
  position: relative;
  width: 100%;
  min-height: 3.6rem;
  margin: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  background-color: #ffffff;
}
.projectlist-filters .popup-opener {
  position: relative;
  width: 100%;
  padding: 5px 44px 5px 15px;
  border: 1px solid #767676;
  background-color: #ffffff;
  min-height: 3.6rem;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #767676;
  text-align: left;
}
.projectlist-filters .popup-opener.filter-active {
  color: #000000;
}
.projectlist-filters .popup-opener > span {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;  /* keep long names in button */
}
.projectlist-filters .popup-opener::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: 0;
  width: 34px;
  background-color: #1d5c7d;
}
.projectlist-filters .popup-opener:focus::before,
.projectlist-filters .popup-opener:hover::before {
  background-color: #12a8e0;
}
.projectlist-filters .popup-opener::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 7px;
  top: calc(50% - 4px);
  width: 18px;
  height: 12px;
  padding: 0;
  border-top: 12px solid white;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: none;
}
.projectlist-filters .popup-opener[aria-expanded="true"] {
  border-bottom-color: transparent;
}

/* submit button */
.projectlist-filters .form-actions {
  width: 100%;
  min-height: 3.6rem;
  margin: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
}
.projectlist-filters .form-actions input {
  width: 100%;
  padding: 0.9rem 15px;
  background-color: #1d5c7d;
  border: none;
  min-height: 3.6rem;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-align: center;
}
.projectlist-filters .form-actions input:focus,
.projectlist-filters .form-actions input:hover {
  background-color: #12a8e0;
}

/* clear button (implemented by javascript) */
.projectlist-filters .form-clear {
  width: 100%;
  min-height: 3.6rem;
  margin: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
}
.projectlist-filters .form-clear button {
  width: 100%;
  padding: 0.9rem 15px;
  background-color: #767676;
  border: none;
  min-height: 3.6rem;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-align: center;
}
.projectlist-filters .form-clear button:focus,
.projectlist-filters .form-clear button:hover {
  background-color: #12a8e0;
}

/* hidden filters */
.projectlist-filters .hidden-filters {
  display: none;
}

@media (min-width: 341px) { /* low mobile (custom breakpoint) */
  .projectlist-filters {
    grid-template-columns: 1fr 1fr;
  }
  .projectlist-filters .form-item-piname,
  .projectlist-filters .popup-filter {
    grid-column: 1 / -1;
  }
}

@media (min-width: 481px) { /* mobile */
  .projectlist-filters {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .projectlist-filters .form-item-piname {
    grid-column: 1 / 3;
  }
  .projectlist-filters .popup-filter {
    grid-column: 3 / -1;
  }
}

@media (min-width: 921px) { /* high intermediate */
  .projectlist-filters {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    grid-gap: 0; /* have to reset this to 0 since some browsers will use it in flexbox */

  }
  .projectlist-filters .form-item-piname {
    flex: 0 1 auto;
    max-width: 181px;
  }
  .projectlist-filters .popup-filter {
    flex: 0 1 auto;
    max-width: 181px;
    margin-left: 8px;
  }
  .projectlist-filters .form-clear,
  .projectlist-filters .form-actions {
    flex: 0 1 auto;
    max-width: 100px;
    margin-left: 8px;
  }
}

/* popup panel */

.projectlist-filters .popup-extender {
  display: none;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 100%;
  height: 7px;
  border-left: 1px solid #767676;
  border-right: 1px solid #767676;
  background-color: #ffffff;
}
.projectlist-filters .popup-opener[aria-expanded="true"] + .popup-extender {
  display: block;
}

.projectlist-filters .popup-panel {
  display: none;
  position: absolute;
  z-index: 1;
  left: 0;    /* left and right set in js */
  right: 0;
  top: calc(100% + 6px);
  height: auto;
  border: 1px solid #767676;
  background-color: #ffffff;
  padding: 24px 12px 12px 12px;
  /* display: grid; *//* when open */
  grid-template-columns: 1fr;
  grid-gap: 24px;
}
.projectlist-filters .popup-panel[aria-hidden="false"] {
  display: grid;
}
/* headings */
.projectlist-filters .popup-panel h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  text-align: center;
}
/* containers */
.projectlist-filters .popup-panel ul {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
}
.projectlist-filters .popup-panel li {
  display: block;
  margin: 0;
}
/* buttons */
.projectlist-filters .popup-panel button {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 6.6rem;
  padding: 10px 12px 6px 12px;
  background-color: #ebebeb;
  border: none;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6rem;
  color: #000000;
  text-align: center;
}
.projectlist-filters .popup-panel button span {
  display: block;
}
.projectlist-filters .popup-panel button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background-color: #12a8e0;
}
.projectlist-filters .popup-panel .sectors button::before {
  background-color: #9e8560; /* some random brown */
}
.projectlist-filters .popup-panel button:focus,
.projectlist-filters .popup-panel button:hover {
  color: #ffffff;
  text-decoration: none;
  background-color: #1d5c7d;
}
@media (min-width: 441px) { /* mobile */
  .projectlist-filters .popup-panel ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 581px) { /* wider mobile (custom breakpoint) */
  .projectlist-filters .popup-panel ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (min-width: 769px) { /* intermediate */
  .projectlist-filters .popup-panel ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 901px) { /* wide intermediate (custom breakpoint) */
  .projectlist-filters .popup-panel {
    grid-template-columns: 1fr 2fr;
    grid-gap: 12px;
  }
  .projectlist-filters .popup-panel h3 {
    text-align: left;
  }
  .projectlist-filters .popup-panel .sectors ul {
    grid-template-columns: 1fr;
  }
  .projectlist-filters .popup-panel .themes ul {
    grid-template-columns: 1fr 1fr;
  }
}

/* view header */

.view-projectlist .view-filters + .view-header {
  margin-top: 32px;
}
.view-projectlist .view-header {
  display: flex;
  flex-flow: column nowrap;
}
.view-projectlist .view-header h2.resulttitle {
  font-size: 2.8rem;
  line-height: 1;
  color: #5a4a42;
  margin: 0;
  visibility: hidden; /* keep it invisible until we set it */
}
.view-projectlist .view-header h2.resulttitle.initialized {
  visibility: visible;
}
.view-projectlist .view-header p.resultcount {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #767676;
  margin: 0.8rem 0 0 0;
}
@media (min-width: 441px) { /* intermediate */
  .view-projectlist .view-filters + .view-header {
    margin-top: 64px;
  }
  .view-projectlist .view-header {
    flex-flow: row nowrap;
    align-items: baseline;
  }
  .view-projectlist .view-header p.resultcount {
    margin: 0 0 0 auto;
  }
}

/* row groups */

.view-projectlist .row-group {
  margin-top: 32px;
}
.view-projectlist h2.row-group-title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #5a4a42;
  margin: 0;
}

/* view content */

/* single flex column at low width */
.view-projectlist .row-group-content {
  margin-top: 32px;
  display: flex;
  flex-flow: column nowrap;
}
.view-projectlist .item {
  position: relative;
  max-width: 302px;
  margin: 0 auto;
}
.view-projectlist .item + .item {
  margin-top: 32px;
}
.view-projectlist .item > a {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #c6c6c6;
  display: flex;
  flex-flow: column nowrap;
  text-decoration: none;
}
.view-projectlist .item > a::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
.view-projectlist .item > a:focus,
.view-projectlist .item > a:hover {
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
  text-decoration: none;
}
.view-projectlist .item > a:focus::before,
.view-projectlist .item > a:hover::before {
  background: #62f34d;
}
.view-projectlist .item .image {
  position: relative;
  width: 100%;
  line-height: 0;
}
.view-projectlist .item .image img {
  width: 100%;
}
.view-projectlist .item .image-empty span { /* if no photo, gray box */
  display: block;
  width: 100%;
  padding-top: 57.14285%;   /* 4/7 */
  background-color: #787878;
}
/* text */
.view-projectlist .item .text {
  padding: 12px 0 20px 12px;
  display: flex;
  flex-flow: column nowrap;
}
.view-projectlist .item h3.title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2.0rem;
  color: #1d5c7d;
  margin: 0 0 8px 0;
  padding-right: 12px;
}
.view-projectlist .item > a:focus h3.title,
.view-projectlist .item > a:hover h3.title {
  text-decoration: underline;
}
/* pis */
.view-projectlist .item .pilist {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 14px 0 0 0;
  border-top: 1px solid #000000;
  padding: 4px 12px 0 0;
}
.view-projectlist .pi {
  margin-top: 14px;
  display: flex;
  flex-flow: row nowrap;
}
.view-projectlist .piimage {
  flex: 0 0 48px;
  line-height: 0;
}
.view-projectlist .piimage img {
  width: 100%;
  border-radius: 50%;
}
.view-projectlist .piimage.image-empty span { /* if no photo, gray circle */
  display: block;
  width: 100%;
  padding-top: 100%;
  background-color: #787878;
  border-radius: 50%;
}
.view-projectlist p.pitext {
  flex: 1 1 100%;
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6rem;
  color: #000000;
  margin: 0 0 0 8px;
}
/* admin stuff */
.view-projectlist .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-projectlist .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}
@media (max-width: 440px) {
  /* this overrides the height set by javascript */
  .view-projectlist .item h3.title {
    height: auto !important;
  }
}
/* grid at higher widths */
@media (min-width: 441px) { /* intermediate */
  .view-projectlist .row-group-content {
    display: grid;
    grid-gap: 20px 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-content: start;
    align-items: stretch;
  }
  .view-projectlist .item {
    max-width: 200px;
    min-height: 278px;
    display: flex;    /* this causes the inner a to stretch to full height of grid cell */
  }
  .view-projectlist .item + .item {
    margin-top: 0;
  }
  .view-projectlist .item .text {
    flex: 1 1 auto;
  }
}

/* no results content */

.view-projectlist .view-empty {
  margin-top: 32px;
}
.view-projectlist .view-empty p {
  margin: 0;
}

/* pager (infinite scroll button) */

.view-projectlist ul.pager {
  display: flex;
  flex-flow: row nowrap;
  margin: 32px 0 0 0;
  justify-content: center;
}
.view-projectlist ul.pager li {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  padding: 0; /* override drual style */
}
.view-projectlist ul.pager li a {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 0.9rem 15px;
  background-color: #1d5c7d;
  border: none;
  margin: 0 auto;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}
.view-projectlist ul.pager li a:focus,
.view-projectlist ul.pager li a:hover {
  background-color: #12a8e0;
}



/*** SEARCH RESULTS ***/


/* search form */

/* form contains wrapper and help link */
.path-search .region-content .search-form {
  display: flex;
  flex-flow: column nowrap;
}

/* container for form elements */
.path-search .region-content .search-form .container-inline {
  display: flex;
  width: 100%;
}
/* input box container */
.path-search .region-content .search-form .form-item-keys {
  flex: 1 1 100%;
  padding-right: 8px;
  margin: 0;
}
/* label visually hidden */
.path-search .region-content .search-form .form-item-keys label {
  position: absolute;
  left: -99999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* input box */
.path-search .region-content .search-form .form-item-keys {
  display: flex; /* stretches input vertically to full height */
}
.path-search .region-content .search-form .form-item-keys input {
  margin: 0;
  padding: 8px 0 8px 6px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #d0d0d0;
  margin-right: 4px;
  background-color: #ffffff;
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 2.2rem;        /* to preserve descenders */
  color: #000000;
  text-align: left;
}
/* submit button */
.path-search .region-content .search-form .form-submit {
  flex: 0 0 auto;
  border: 1px solid #1d5c7d;
  margin: 0;
  padding: 10px 10px 10px 10px;
  width: auto;
  height: auto;
  text-indent: 0;
  background-color: #1d5c7d;
  background-image: none;
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 2.2rem;
  color: #ffffff;
}
.path-search .region-content .search-form .form-submit:focus,
.path-search .region-content .search-form .form-submit:hover {
  background-color: #12a8e0;
}
/* help link */
.path-search .region-content .search-form .search-help-link {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* heading over search results */
.path-search .region-content .search-form + h2 {
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  color: #5a4a42;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #000000;
  margin: 4.0rem 0 0 0;
}

/* results container */
.search-form + .search-results {
  margin: 4.0rem 0 0 0;
}

/* results styles */
.search-results .item {
  padding-top: 1.8rem;
}
.search-results .item + .item {
  margin-top: 1.8rem;
  border-top: 1px solid #cccccc;
}
.search-results .item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #000000;
  margin: 0;
}
.search-results .item h3 a {
  color: #1d5c7d;
  text-decoration: none;
}
.search-results .item h3 a:focus,
.search-results .item h3 a:hover {
  color: #1d5c7d;
  text-decoration: underline;
}
.search-results .item p.snippet {
  margin: 0.8rem 0 0 0;
}



/*** PAGER ***/

nav.pager ul.pager__items {
  margin: 4.6rem 0 0 0;
  text-align: center;
}
nav.pager li.pager__item {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  text-transform: capitalize;
  margin: 0;
  padding: 0 4px 1.6rem 4px;
}
nav.pager li.pager__item:first-child {
  padding-left: 0;
}
nav.pager li.pager__item:last-child {
  padding-right: 0;
}
nav.pager li.pager__item--ellipsis {
  display: none;
}
nav.pager li.pager__item a {
  display: inline-block;
  padding: 8px 10px;
  color: #ffffff;
  text-decoration: none;
  background-color: #1d5c7d;
  border: 1px solid #1d5c7d;
}
nav.pager li.pager__item a:focus,
nav.pager li.pager__item a:hover,
nav.pager li.pager__item.is-active a {
  color: #ffffff;
  background-color: #12a8e0;
  border: 1px solid #12a8e0;
}
@media (min-width: 921px) { /* intermediate */
  nav.pager li.pager__item--previous {
    padding-right: 8px;
  }
  nav.pager li.pager__item--next {
    padding-left: 8px;
  }
}



/***************************
 ***************************
 *** CONTENT TYPE STYLES ***
 ***************************
 ***************************/


/*****************
 *** HOME PAGE ***
 *****************/

/* shadow above content band */
.page-node-type-sitehome .band-primarynav::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  height: 35px;
  left: 0;
  right: 0;
  background-image: url('../images/header/bannerimage_shadow_home_2000x35.png');
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 1;
}

/* background watermark is in a different container */
@media (min-width: 441px) { /* mobile */
  /* background watermark */
  .page-node-type-sitehome .band-content::before {
    display: none;
  }
  .band-sitehome-outer {
    position: relative;
  }
  .band-sitehome-outer::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 254px;
    left: calc(50% - 187px);
    bottom: 0;
    right: 0;
    background: url('../images/pagebkg/page_background.png');
    background-position: 0 0;
    background-repeat: no-repeat;
    opacity: 0.04;
  }
}

/*** home page banner band ***/

.page-node-type-sitehome .band-sitehome-banner {
}
.page-node-type-sitehome .bannerbox {
  position: relative;
}
@media (min-width: 841px) { /* intermediate */
  .page-node-type-sitehome .band-sitehome-banner {
    padding-bottom: 40px;  /* space for intro blurb to extend below bannerbox */
    background: rgba(0,88,118,0.102); /* bluegray to match background of highlights/impact */
  }
  .page-node-type-sitehome .bannerbox {
    height: 544px;
    background: linear-gradient(270deg, rgba(0,160,215,0.910), rgba(0,128,108,0.749) 300px, rgba(0,160,215,0.910) 100%);
  }
}
@media (min-width: 1141px) { /* full width */
  .page-node-type-sitehome .bannerbox {
    background: linear-gradient(270deg, rgba(0,160,215,0.910), rgba(0,128,108,0.749) calc(50% - 260px), rgba(0,160,215,0.910) 100%);
  }
}

/* image */
.page-node-type-sitehome .bannerbox .bannerimage {
  position: relative;
  width: 100%;
  padding-top: 54.5%;
  /* background image placed in code by javascript */
  background-size: cover;
  background-color: rgba(0,160,215,0.910);  /* #17a9db */
}
@media (min-width: 841px) { /* intermediate */
  .page-node-type-sitehome .bannerbox .bannerimage {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 300px; /* 40px + 260px */
    top: 0;
    bottom: 0;
    width: auto;
    padding: 0;
    background-size: auto 100%;
    background-position: 50% top;  /* percentage is arbitrary but needs to be ge 50% */
    background-repeat: no-repeat;
  }
  .page-node-type-sitehome .bannerbox .bannerimage::after { /* gradient over image */
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(270deg, rgba(0,154,107,0.514), rgba(0,154,107,0) 100%);
  }
}
@media (min-width: 1141px) { /* full width */
  .page-node-type-sitehome .bannerbox .bannerimage {
    right: calc(50% - 260px);    /* (100% - 1040px - 2*40px)/2 + 40px + 260px */
    background-position: right top;
  }
}

/* intro text */
.page-node-type-sitehome .bannerbox .introtext {
  position: relative;
  margin: 0;
  padding: 54px 30px;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 3.2rem;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(32,19,0,0.898) 0%, rgba(76,42,0,0.812) 100%);
}
.page-node-type-sitehome .bannerbox .introtext::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  height: 3px;
  background-color: #12a8e0;
}
.page-node-type-sitehome .bannerbox .introtext::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  height: 3px;
  background-color: #12a8e0;
}
@media (min-width: 441px) { /* mobile */
  .page-node-type-sitehome .bannerbox .introtext {
    padding: 74px 60px;
  }
  .page-node-type-sitehome .bannerbox .introtext::before,
  .page-node-type-sitehome .bannerbox .introtext::after {
    left: 60px;
    right: 60px;
  }
  .page-node-type-sitehome .bannerbox .introtext::before {
    top: 50px;
  }
  .page-node-type-sitehome .bannerbox .introtext::after {
    bottom: 50px;
  }
}
@media (min-width: 581px) { /* intermediate (custom breakpoint) */
  .page-node-type-sitehome .bannerbox .introtext {
    padding: 74px 106px;
  }
  .page-node-type-sitehome .bannerbox .introtext::before,
  .page-node-type-sitehome .bannerbox .introtext::after {
    left: 106px;
    right: 106px;
  }
}
@media (min-width: 841px) { /* intermediate and wide */
  .page-node-type-sitehome .bannerbox .introtext {
    position: absolute;
    z-index: 8; /* above image */
    left: 40px;
    right: 340px; /* 40px + 260px + 40px */
    bottom: -40px;
    padding: 74px 60px;
  }
  .page-node-type-sitehome .bannerbox .introtext::before,
  .page-node-type-sitehome .bannerbox .introtext::after {
    left: 60px;
    right: 60px;
  }
}
@media (min-width: 1141px) { /* full width */
  .page-node-type-sitehome .bannerbox .introtext {

    left: calc(50% - 520px);      /* (100% - 1040px - 2*40px)/2 + 40px */
    right: calc(50% - 220px);     /* (100% - 1040px - 2*40px)/2 + 40px + 260px + 40px */

    padding: 74px 106px;
  }
  .page-node-type-sitehome .bannerbox .introtext::before,
  .page-node-type-sitehome .bannerbox .introtext::after {
    left: 106px;
    right: 106px;
  }
}

/* impact areas - narrow */
@media (max-width: 840px) { /* narrow and mobile only */
  .page-node-type-sitehome .impactlinks {
    padding: 20px 20px 0 20px;
    background: rgba(0,88,118,0.102); /* bluegray to match background of highlights/impact */
  }
  .page-node-type-sitehome .impactlinks h2 {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 2.2rem;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, #11385e 0%, #1d5c7d 100%);
    padding: 30px 20px;
    margin: 0 0 24px 0;
  }
  .page-node-type-sitehome .impactlinks ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .page-node-type-sitehome .impactlinks li {
    display: block;
    max-width: none;
    margin: 24px auto 0 auto;
    text-align: center;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.2rem;
  }
  .page-node-type-sitehome .impactlinks li:first-child {
    margin-top: 0;
  }
  .page-node-type-sitehome .impactlinks li a {
    display: block;
    position: relative;
    width: 100%;
    padding: 120px 6px 14px 6px;
    min-height: 174px;
    background: #1d5c7d;
    background: linear-gradient(90deg, #11385e 0%, #1d5c7d 100%);
    color: #ffffff;
    text-decoration: none;
  }
  .page-node-type-sitehome .impactlinks li a::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 24px;
    height: 78px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
  }
  .page-node-type-sitehome .impactlinks li.water a::before {
    background-image: url('../images/misc/impact_icon_water.svg');
  }
  .page-node-type-sitehome .impactlinks li.food a::before {
    background-image: url('../images/misc/impact_icon_food.svg');
  }
  .page-node-type-sitehome .impactlinks li.climate a::before {
    background-image: url('../images/misc/impact_icon_climate.svg');
  }
  .page-node-type-sitehome .impactlinks li a:focus,
  .page-node-type-sitehome .impactlinks li a:hover {
    color: #1d5c7d;
    background: #ffffff;
    box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
    text-decoration: none;
  }
}
@media (min-width: 581px) and (max-width: 840px) { /* wider mobile only */
  .page-node-type-sitehome .impactlinks {
    padding: 40px 20px 0 20px;
  }
  /* impact area buttons in row */
  .page-node-type-sitehome .impactlinks ul {
    display: flex;
    flex-flow: row nowrap;
  }
  .page-node-type-sitehome .impactlinks li {
    margin-top: 0;
    flex: 1 1 236px;
    display: flex;
    flex-flow: row nowrap;  /* causes a to fill height */
  }
  .page-node-type-sitehome .impactlinks li:nth-child(n+2) {
    margin-left: 24px;
  }
}
@media (min-width: 769px) and (max-width: 840px) { /* wider mobile only */
  .page-node-type-sitehome .impactlinks {
    padding: 40px 40px 0 40px;
  }
}

/* impact areas - wide */
@media (min-width: 841px) { /* intermediate and wide only */
  .page-node-type-sitehome .impactlinks {
    position: absolute;
    z-index: 9;
    right: 40px;
    top: 60px;
    width: 260px;
  }
  .page-node-type-sitehome .impactlinks h2 {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-align: center;
    background: #1d5c7d;
    padding: 10px 10px;
    margin: 0;
  }
  .page-node-type-sitehome .impactlinks ul {
    display: block;
    margin: -4px 0 0 0;
    padding: 0;
    list-style: none;
  }
  .page-node-type-sitehome .impactlinks li {
    display: block;
    margin: 18px 0 0 0;
  }
  .page-node-type-sitehome .impactlinks li a {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;  /* vertically center text */
    padding: 0.6rem 74px 0.6rem 16px;
    min-height: 7.2rem;
    background: linear-gradient(270deg, #1d5c7d, #1d5c7d 48px, #ffffff 48px, #ffffff 100%);
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.2rem;
    color: #1d5c7d;
    text-decoration: none;
  }
  /* icons */
  .page-node-type-sitehome .impactlinks li a::before {
    content: "";
    position: absolute;
    z-index: 1;
    right: 64px;
    width: 42px;
    top: calc(50% - 20px);
    height: 40px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .page-node-type-sitehome .impactlinks li.water a::before {
    background-image: url('../images/misc/impact_icon_water.svg');
  }
  .page-node-type-sitehome .impactlinks li.food a::before {
    background-image: url('../images/misc/impact_icon_food.svg');
  }
  .page-node-type-sitehome .impactlinks li.climate a::before {
    background-image: url('../images/misc/impact_icon_climate.svg');
  }
  /* arrow */
  .page-node-type-sitehome .impactlinks li a::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 16px;
    top: calc(50% - 9px);
    width: 12px;
    height: 18px;
    padding: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 12px solid white;
    border-right: none;
  }
  /* hover */
  .page-node-type-sitehome .impactlinks li a:focus,
  .page-node-type-sitehome .impactlinks li a:hover {
    color: #ffffff;
    background: #1d5c7d;
    text-decoration: none;
  }
}
@media (min-width: 1141px) { /* full width */
  .page-node-type-sitehome .impactlinks {
    right: calc(50% - 520px);    /* (100% - 1040px - 2*40px)/2 + 40px */
  }
}

/* impact areas - tenth anniversary - narrow */
@media (max-width: 840px) { /* narrow and mobile only */
  .page-node-type-sitehome .impactlinks .buttons-tenth {
    margin-block: 10px 40px;
  }
  .page-node-type-sitehome .impactlinks li.tenth a {
    border: 5px solid #1d5c7d;
    background: #fff;
    color:  #1d5c7d;
  }
  .page-node-type-sitehome .impactlinks li.tenth a::before {
    top: 20px;
    height: 86px;
    background-image: url('../images/misc/impact_icon_tenth.png');
    background-size: contain;
  }
}
/* impact areas - tenth anniversary - wide */
@media (min-width: 841px) { /* intermediate and wide only */
  .page-node-type-sitehome .impactlinks .buttons-tenth {
    margin-block: -10px 50px;
  }
  .page-node-type-sitehome .impactlinks li.tenth a {
    padding-block: 1.0rem;
    min-height: 80px;
    line-height: 2.0rem;
  }
  .page-node-type-sitehome .impactlinks li.tenth a span span {
    display: block; /* break text into three lines */
  }
  .page-node-type-sitehome .impactlinks li.tenth a::before {
    right: 56px;
    width: 74px;
    top: calc(50% - 34px);
    height: 68px;
    background-image: url('../images/misc/impact_icon_tenth.png');
    background-size: contain;
  }
  /* hover */
  .page-node-type-sitehome .impactlinks li.tenth a:is(:hover, :focus) {
    color:  #1d5c7d; /* no changes */
    background: linear-gradient(270deg, #1d5c7d, #1d5c7d 48px, #ffffff 48px, #ffffff 100%);
  }
  .page-node-type-sitehome .impactlinks li.tenth a::after {
    transition: 0.2s transform linear;
  }
  .page-node-type-sitehome .impactlinks li.tenth a:is(:hover, :focus)::after {
    transform: scale(1.5);
  }
}

/*** home page research/news band ***/

/* no top padding in content */
.page-node-type-sitehome .band-content > .band-inner {
  padding-top: 0;
}
@media (min-width: 769px) { /* intermediate */
  /* no left sidebar, so make content full width */
  .page-node-type-sitehome .layout-content {
    float: none;
    margin: 0;
    width: 100%;
  }
}
@media (min-width: 1141px) { /* full width */
  .page-node-type-sitehome .layout-content {
    width: 1040px;
  }
}



/******************
 *** BASIC PAGE ***
 ******************/

/* no additional styles required */



/******************
 *** TOPIC PAGE ***
 ******************/

.node--type-topicpage p.introtext {
  margin: 2.2rem 0 0 0;
  overflow: hidden;  /* clearself because of icon */
}
.node--type-topicpage p.introtext span.introicon {
  float: left;
  width: 60px;
  margin: 0.4rem 18px 2px 0;
  line-height: 0;
}
.node--type-topicpage p.introtext span.introicon img {
  width: 100%;
}
@media (min-width: 441px) { /* mobile */
  .node--type-topicpage p.introtext span.introicon {
    width: 120px;
  }
}



/**************
 *** PERSON ***
 **************/

.node--type-person .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 24px;
}
.node--type-person h1.pagetitle {
  margin-bottom: 0;
}
.node--type-person .personinfobox {
  display: flex;
  flex-flow: column nowrap;
  background-color: #e5eef1;
  margin: 24px 0;
}
.node--type-person .personinfobox .image {
  min-width: 100px;
  max-width: 180px;
  line-height: 0;
}
.node--type-person .personinfobox .image img {
  width: 100%;
}
.node--type-person .personinfobox .text {
  padding: 24px;
}
.node--type-person .personinfobox .text h2.personname {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 3.2rem;
  color: #1d5c7d;
  margin-bottom: 0;
}
.node--type-person .personinfobox .text ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.node--type-person .personinfobox .text li {
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.0rem;
  color: #000000;
  margin: 0.6rem 0 0 0;
}
.node--type-person .personinfobox .text li.advisor::before {
  content: "Advisor: ";
}
.node--type-person h3.listhead {
  margin-top: 4.4rem;
}
@media (min-width: 441px) { /* mobile */
  .node--type-person .personinfobox {
    flex-flow: row nowrap;
    align-items: center;
  }
  .node--type-person .personinfobox .image {
    flex: 1 1 33%;
    align-self: flex-start; /* stick to top of box */
  }
  .node--type-person .personinfobox .text {
    flex: 1 1 auto;
    padding: 16px 24px;
  }
}
@media (min-width: 769px) { /* intermediate */
  .node--type-person .personinfobox .text {
    padding: 16px 32px;
  }
}



/*****************
 *** NEWS ITEM ***
 *****************/

.node--type-newsitem .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 32px;
}
.node--type-newsitem h1.pagetitle {
  margin-bottom: 0;
}
.node--type-newsitem h1.pagetitle span {
  display: block;
}
.node--type-newsitem h1.pagetitle span.pretitle a {
  color: #5a4a42;
  text-decoration: none;
}
.node--type-newsitem h1.pagetitle span.pretitle a:focus,
.node--type-newsitem h1.pagetitle span.pretitle a:hover {
  color: #5a4a42;
  text-decoration: underline
}
.node--type-newsitem h1.pagetitle span.newstitle {
  display: block;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 2.0rem 0 0 0;
}
.node--type-newsitem p.subtitle {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 1.6rem 0 0 0;
}
.node--type-newsitem p.newsinfo {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 2.2rem 0 0 0;
}
.node--type-newsitem p.newsinfo span.lineitem {
  display: block;
}



/*************
 *** EVENT ***
 *************/

.node--type-event .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 32px;
}
.node--type-event h1.pagetitle {
  margin-bottom: 0;
}
.node--type-event h1.pagetitle span {
  display: block;
}
.node--type-event h1.pagetitle span.pretitle a {
  color: #5a4a42;
  text-decoration: none;
}
.node--type-event h1.pagetitle span.pretitle a:focus,
.node--type-event h1.pagetitle span.pretitle a:hover {
  color: #5a4a42;
  text-decoration: underline
}
.node--type-event h1.pagetitle span.eventtitle {
  display: block;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 2.0rem 0 0 0;
}
.node--type-event p.subtitle {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 1.6rem 0 0 0;
}
.node--type-event p.eventinfo {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 2.2rem 0 0 0;
}
.node--type-event p.eventinfo span.lineitem {
  display: block;
}
.node--type-event p.eventinfo span.maplink::before {
  content: "[";
}
.node--type-event p.eventinfo span.maplink::after {
  content: "]";
}



/****************
 *** WORKSHOP ***
 ****************/

.node--type-workshop .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 32px;
}
.node--type-workshop h1.pagetitle {
  margin-bottom: 0;
}
.node--type-workshop p.subtitle {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 1.6rem 0 0 0;
}
.node--type-workshop p.workshopinfo {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 2.2rem 0 0 0;
}
.node--type-workshop p.workshopinfo span.lineitem {
  display: block;
}



/*******************
 *** PUBLICATION ***
 *******************/

.node--type-publication .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 32px;
  overflow: hidden;  /* clearself because of icon */
}
.node--type-publication h1.pagetitle {
  margin-bottom: 0;
}
.node--type-publication h1.pagetitle span {
  display: block;
}
.node--type-publication h1.pagetitle span.pretitle a {
  color: #5a4a42;
  text-decoration: none;
}
.node--type-publication h1.pagetitle span.pretitle a:focus,
.node--type-publication h1.pagetitle span.pretitle a:hover {
  color: #5a4a42;
  text-decoration: underline
}
.node--type-publication h1.pagetitle span.pubtitle {
  display: block;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 2.0rem 0 0 0;
}
/* icon and label */
.node--type-publication h1.pagetitle .publication-icon {
  display: none;
}
@media (min-width: 441px) { /* mobile */
  .node--type-publication h1.pagetitle .publication-icon {
    display: block;
  }
  .node--type-publication .publication-icon {
    float: right;
    margin: 2.4rem 0 0.4rem 20px;
    width: 60px;
    padding-top: 60px;
    background-position: 50% 0;
    background-size: 60px 60px;
    background-repeat: no-repeat;
  }
  .node--type-publication .publication-icon.article {
    background-image: url('../images/misc/pub_article_128x128.png');
  }
  .node--type-publication .publication-icon.book {
    background-image: url('../images/misc/pub_book_128x128.png');
  }
  .node--type-publication .publication-icon.report {
    background-image: url('../images/misc/pub_report_128x128.png');
  }
  .node--type-publication .publication-icon.thesis {
    background-image: url('../images/misc/pub_thesis_128x128.png');
  }
  .node--type-publication .publication-icon::after {
    display: block;
    padding: 8px 0 0 0;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #000000;
    margin: 0;
    text-align: center;
  }
  .node--type-publication .publication-icon.article::after {
    content: "Article";
  }
  .node--type-publication .publication-icon.book::after {
    content: "Book";
  }
  .node--type-publication .publication-icon.report::after {
    content: "Report";
  }
  .node--type-publication .publication-icon.thesis::after {
    content: "MIT Thesis";
  }
}
.node--type-publication p.pubinfo {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: #000000;
  margin: 2.2rem 0 0 0;
}
.node--type-publication p.pubinfo span.lineitem {
  display: block;
}
.node--type-publication p.pubinfo span.lineitem {
  display: block;
}



/***************
 *** PROJECT ***
 ***************/

/* page title and project title */

.node--type-project .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 32px;
}
.node--type-project h1.pagetitle {
  margin-bottom: 0;
}
.node--type-project h1.pagetitle span {
  display: block;
}
.node--type-project h1.pagetitle span.pretitle a {
  color: #5a4a42;
  text-decoration: none;
}
.node--type-project h1.pagetitle span.pretitle a:focus,
.node--type-project h1.pagetitle span.pretitle a:hover {
  color: #5a4a42;
  text-decoration: underline
}
.node--type-project h1.pagetitle span.projecttitle {
  display: block;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 3.2rem;
  color: #000000;
  margin: 2.0rem 0 0 0;
}
.region-content .node--type-project h2 {
  line-height: 1;
  margin-top: -0.5rem; /* tweak */
  margin-bottom: 32px;
}

/* gallery */

/* if single image or video, override default margins */
.node--type-project .paragraph-bodyimage,
.node--type-project .paragraph-bodyvideo {
  margin: 0;
}
/* but still need some space in the static (low width) gallery */
.node--type-project .paragraph-gallery-static .bodypar + .bodypar {
  margin-top: 2.2rem;
}

/* PIs */

.node--type-project .pagetitlebox + .pibox {
  padding-top: 32px;  /* if no gallery */
}

/* Challenge */

.node--type-project .challengebox::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: #12a8e0;
  background: linear-gradient(90deg, #1d5c7d 0%, #12a8e0 100%);
}
.node--type-project .challengebox p {
  margin: 0;
}

/* Strategy and Outcomes */

.node--type-project .strategybox,
.node--type-project .outcomebox {
  padding-top: 64px;
  padding-bottom: 64px;
}
.node--type-project ul.strategies,
.node--type-project ul.outcomes {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.node--type-project ul.strategies li,
.node--type-project ul.outcomes li {
  margin-top: 1.6rem;
}
.node--type-project ul.strategies li:first-child,
.node--type-project ul.outcomes li:first-child {
  margin: 0;
}
@media (min-width: 441px) { /* mobile */
  .node--type-project ul.strategies,
  .node--type-project ul.outcomes {
    display: grid;
    grid-gap: 40px 18px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    align-items: stretch;
  }
  .node--type-project ul.strategies li,
  .node--type-project ul.outcomes li {
    position: relative;
    padding-top: 14px;
    margin: 0;
  }
  .node--type-project ul.strategies li::before,
  .node--type-project ul.outcomes li::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    height: 7px;
    background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
  }
}
@media (min-width: 541px) { /* wider mobile (custom breakpoint) */
  .node--type-project ul.strategies,
  .node--type-project ul.outcomes {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Description */

.node--type-project .descriptionbox .text {
  overflow: hidden; /* clearself */
}
.node--type-project .descriptionbox .text > *:last-child {
  margin-bottom: 0;
}
.node--type-project .descriptionbox .grantthumb {
  float: left;
  margin: 1.4rem 2.0rem 0.8rem 0;
  width: 30%;
  max-width: 188px;
}

/* Publications */

.node--type-project .publicationbox {
}
.node--type-project .view-projectpubs .item {
  margin-top: 32px; /* including first */
}
.node--type-project .view-projectpubs .item h3.title {
  margin: 0;
}
.node--type-project .view-projectpubs .item p.citation {
  margin: 0.8rem 0 0 0;
}

/* News */

/* use defaults from .view-newsrelated */

/* Spinouts */

.node--type-project .paragraph-spinout {
  margin-top: 32px;
}
.node--type-project .paragraph-spinout h3.title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  color: #1d5c7d;
}
.node--type-project .paragraph-spinout .text {
  margin-top: 0.8rem;
  overflow: hidden; /* clearself */
}
.node--type-project .paragraph-spinout .text > *:last-child {
  margin-bottom: 0;
}
.node--type-project .paragraph-spinout .image {
  float: left;
  margin: 0.8rem 2.0rem 0.8rem 0;
  width: 30%;
  max-width: 188px;
}

/* Additional details */

.node--type-project .detailbox .infogrid h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: #000000;
  margin: 24px 0 0 0;
}
.node--type-project .detailbox .infogrid h3:first-child {
  margin-top: 0;
}
.node--type-project .detailbox .infogrid ul {
  margin: 0;
  padding: 0 0 0 12px;
  list-style: none;
}
.node--type-project .detailbox .infogrid li {
  position: relative;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0.8rem 0 0 0;
  padding: 0 0 0 1.2rem;
}
.node--type-project .detailbox .infogrid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: #000000;
  border-radius: 50%;
}
@media (min-width: 441px) { /* mobile */
  .node--type-project .detailbox .infogrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(min-content, max-content));
    grid-gap: 32px 32px;
  }
  .node--type-project .detailbox .infogrid h3 {
    margin-top: 0;
  }
  .node--type-project .detailbox .infogrid ul {
    padding-left: 0;
  }
  .node--type-project .detailbox .infogrid li:first-child {
    margin-top: 0;
  }
}
@media (min-width: 641px) { /* wider mobile (custom breakpoint) */
  .node--type-project .detailbox .infogrid {
    grid-template-columns: repeat(5, minmax(min-content, max-content));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-gap: 16px 32px;
  }
  .node--type-project .detailbox .infogrid h3 {
    padding-bottom: 16px;
    border-bottom: 1px solid #000000;
  }
  .node--type-project .detailbox .infogrid li {
    margin-top: 1.4rem;
  }
}



/*********************************
 *** NEWS AND EVENT HOME PAGES ***
 *********************************/

.node--type-eventshome .pagetitlebox,
.node--type-newshome .pagetitlebox {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}
.node--type-eventshome h1.pagetitle,
.node--type-newshome h1.pagetitle {
  margin-bottom: 0;
}

/* news features */

.newsfeaturebox {
  margin-top: 8px;
  display: flex;
  flex-flow: column nowrap;
}

/* main feature */
.newsfeatureprimary .item {
  display: block;
  position: relative;
}
.newsfeatureprimary a {
  display: block;
  text-decoration: none;
}
.newsfeatureprimary a:focus,
.newsfeatureprimary a:hover {
  /*box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);*/
  text-decoration: none;
}
.newsfeatureprimary .image {
  margin-bottom: 26px;
}
.newsfeatureprimary .image-empty {
  display: none;
}
.newsfeatureprimary .text {
  /*padding: 0 2px 8px 2px;*//* not needed without the shadow hover effect */
}
.newsfeatureprimary h2.title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 3.2rem;
  color: #1d5c7d;
  margin: 0;
}
.newsfeatureprimary a:focus h2.title,
.newsfeatureprimary a:hover h2.title {
  text-decoration: underline;
}
.newsfeatureprimary p.date {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #000000;
  margin: 26px 0 0 0;
}
.newsfeatureprimary p.teaser {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #000000;
  margin: 0.8rem 0 0 0;
}
/* admin stuff */
.newsfeatureprimary .item.unpublished > a {
  background-color: #ffe8e8;
}
.newsfeatureprimary .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}

/* secondary features */

.newsfeaturesecondary {
  margin-top: 32px;
  display: flex;
  flex-flow: column nowrap;
  padding: 12px 0 12px 12px;
  border: 1px solid #c6c6c6;
  background-color: #f7f7f7;
}
/* heading */
.newsfeaturesecondary h2 {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.2rem;
  color: #5a4a42;
  margin: 14px 0 32px 0;
}
/* items */
.newsfeaturesecondary .item {
  display: block;
  position: relative;
}
.newsfeaturesecondary .item + .item {
  margin-top: 14px;
}
.newsfeaturesecondary .item::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #12a8e0;  /* no gradient */
}
.newsfeaturesecondary .item > a {
  display: block;
  padding: 12px 12px 24px 4px;
  text-decoration: none;
}
.newsfeaturesecondary .item > a:focus,
.newsfeaturesecondary .item > a:hover {
  background: #1d5c7d;
  text-decoration: none;
}
.newsfeaturesecondary .item h3.title {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #1d5c7d;
  margin: 0;
}
.newsfeaturesecondary .item p.date {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0.8rem 0 0 0;
}
.newsfeaturesecondary .item a:focus h3.title,
.newsfeaturesecondary .item a:hover h3.title,
.newsfeaturesecondary .item a:focus p.date,
.newsfeaturesecondary .item a:hover p.date {
  color: #ffffff;
}
/* admin stuff */
.newsfeaturesecondary .item.unpublished > a {
  background-color: #ffe8e8;
}
.newsfeaturesecondary .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}

@media (min-width: 581px) { /* wider mobile (custom breakpoint) */
  .newsfeaturebox {
    flex-flow: row nowrap;
  }
  .newsfeatureprimary {
    flex: 1 1 auto;
  }
  .newsfeaturesecondary {
    flex: 0 0 25.51813%;
    margin: 0 0 0 12px;
  }
}

/* news list - also has classes bodypar bleed-both background-bluegray */

.newslistbox {
  position: relative;
  width: auto;
  padding: 60px 0 64px 0;
  margin: 64px 0 0 0;
}
.pagetitlebox + .newslistbox { /* if no feature items */
  margin-top: 8px;
}

/* row groups */

.view-newslist .row-group + .row-group {
  margin-top: 32px;
}
.view-newslist h2.row-group-title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: #5a4a42;
  margin: 0;
}

/* view content */

/* single flex column at low width */
.view-newslist .row-group-content {
  margin-top: 32px;
  display: flex;
  flex-flow: column nowrap;
}
.view-newslist .item {
  position: relative;
  max-width: 302px;
  margin: 0 auto;
}
.view-newslist .item + .item {
  margin-top: 32px;
}
.view-newslist .item > a {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #c6c6c6;
  display: flex;
  flex-flow: column nowrap;
  text-decoration: none;
}
.view-newslist .item > a::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, #12a8e0 0%, #53b991 100%);
}
.view-newslist .item > a:focus,
.view-newslist .item > a:hover {
  box-shadow: 0px 0px 12px 0px rgba(154,154,154,1);
  text-decoration: none;
}
.view-newslist .item > a:focus::before,
.view-newslist .item > a:hover::before {
  background: #62f34d;
}
.view-newslist .item .image {
  position: relative;
  width: 100%;
  line-height: 0;
}
.view-newslist .item .image img {
  width: 100%;
}
.view-newslist .item .image-empty span { /* if no photo, gray box */
  display: block;
  width: 100%;
  padding-top: 66.66666%;
  background-color: #787878;
}
/* text */
.view-newslist .item .text {
  padding: 12px 0 20px 12px;
  display: flex;
  flex-flow: column nowrap;
}
.view-newslist .item h3.title {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2.0rem;
  color: #1d5c7d;
  margin: 0 0 14px 0;
  padding-right: 12px;
}
.view-newslist .item > a:focus h3.title,
.view-newslist .item > a:hover h3.title {
  text-decoration: underline;
}
.view-newslist .item p.date {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #000000;
  margin: 0;
  border-top: 1px solid #000000;
  padding: 14px 12px 0 0;
}
/* admin stuff */
.view-newslist .item.unpublished > a {
  background-color: #ffe8e8;
}
.view-newslist .vieweditlink {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
}
/* grid at higher widths */
@media (min-width: 441px) { /* intermediate */
  .view-newslist .row-group-content {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-content: start;
    align-items: stretch;
  }
  .view-newslist .item {
    max-width: 200px;
    /*min-height: 278px;*/
    display: flex;    /* this causes the inner a to stretch to full height of grid cell */
  }
  .view-newslist .item + .item {
    margin-top: 0;
  }
  .view-newslist .item .text {
    flex: 1 1 auto;
  }
  .view-newslist .item p.date {
    margin-top: auto;
  }
}

/* no results content */

.view-newslist .view-empty {
  margin-top: 32px;
}
.view-newslist .view-empty p {
  margin: 0;
}

/* pager (infinite scroll button) */

.view-newslist ul.pager {
  display: flex;
  flex-flow: row nowrap;
  margin: 32px 0 0 0;
  justify-content: center;
}
.view-newslist ul.pager li {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  padding: 0; /* override drual style */
}
.view-newslist ul.pager li a {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 0.9rem 15px;
  background-color: #1d5c7d;
  border: none;
  margin: 0 auto;

  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}
.view-newslist ul.pager li a:focus,
.view-newslist ul.pager li a:hover {
  background-color: #12a8e0;
}




/**************************************
 **************************************
 *** ADMINISTRATIVE ELEMENT STYLES ****
 **************************************
 **************************************/


/*** ADMIN TOOLS ***/

.band-admintools {
  background-color: #fff8e0;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}
.region-admintools > .block {
  padding: 10px 0;
  overflow: hidden;  /* clearself */
}
.region-admintools .tabs {
  display: flex;
  flex-flow: row nowrap;
}
.region-admintools .tabs > li {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: #000000;
}
.region-admintools .tabs > li + li {
  margin-left: 10px;
}
.region-admintools .tabs a {
  display: block;
  background-color: #e8e8e8;
  border: 1px solid #666666;
  padding: 1.0rem 1.5rem;
  color: #000000;
  text-decoration: none;
}
.region-admintools .tabs a.is-active {
  font-weight: 700;
  border: 1px solid #d64e00;
  background-color: #ffee00;
}
.region-admintools .tabs a:focus,
.region-admintools .tabs a:hover {
  color: #000000;
  text-decoration: none;
  background-color: #ffee00;
}



/*** EDIT LINKS IN VIEWS ***/

.vieweditlink {
  display: block;
  font-size: 1.0rem;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.vieweditlink a {
  display: inline-block;
  background-color: #f8f8ff;
  border: 1px solid #000000;
  padding: 5px;
  text-decoration: none;
  color: #000000;
}
.vieweditlink a:focus,
.vieweditlink a:hover {
  color: #bf1f2e;
  border: 1px solid #bf1f2e;
}
/* inline */
.vieweditlink-inline {
  display: inline-block;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-left: 1.0rem;
}
.vieweditlink-inline a {
  color: #007ea8;
}
.vieweditlink-inline a:focus,
.vieweditlink-inline a:hover {
  color: #bf1f2e;
}
.vieweditlink-inline a::before {
  content: "["
}
.vieweditlink-inline a::after {
  content: "]"
}



/*** CONTEXTUAL LINKS ***/

/* hide them on most blocks because they are annoying! */

article > .contextual,
.block > .contextual {
  display: none;
}
.block-some-specific-block > .contextual {
  display: block;
}



/**************************
 ** MISCELLANEOUS TWEAKS **
 **************************/

/* environment indicator */
#toolbar-bar::before {
  display: flex;
  align-items: center;
  position: absolute;
  z-index: 9999;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 8px;
  font-weight: bold;
  line-height: 1;
  color: #000;
}
#toolbar-bar::before {
  content: "LIVE";
  background-color: #0f0;
  border: 2px solid #0f0;
}
body.env-dev #toolbar-bar::before {
  content: "DEV";
  background-color: #c00;
  border: 2px solid #c00;
}
body.env-test #toolbar-bar::before {
  content: "STAGE";
  background-color: #ea0;
  border: 2px solid #ea0;
}

/* unpublished nodes */
.node--unpublished {
  background-color: transparent; /* override drupal style */
}
.node--unpublished:before {
  content: "UNPUBLISHED";
  display: block;
  width: 100%;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  color: #ff6060;
  padding: 0.8rem;
  text-align: center;
  background-color: #ffe8e8;
  color: #707070;
}

/* hide admin toolbar on narrow screens */
@media (max-width: 1000px) {
  body.toolbar-horizontal,
  body.toolbar-vertical {
    padding-top: 0 !important;
  }
  body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
    margin-left: 0;
  }
  #toolbar-administration {
    display: none;
  }
}

/* admin menu */
.toolbar-icon-menu-link-content5dd6dc6c-c2e6-45a4-b054-1ce255c2e274::before {
  background-image: url('../images/admin/jwafs_icon_80x80.png');
}
.toolbar-icon-menu-link-contenta8dfd91c-0c8f-4e73-b539-6d9a3ca9c711::before {
  background-image: url('../images/admin/icon-cog-787878.svg');
}
.toolbar-icon-edit-this-page::before {
  background-image: url('../images/admin/icon-pencil-787878.svg');
}

/* login button */
form.user-login-form input.form-submit {
  padding: 10px 16px;
  background-color: #e8e8e8;
}



/**************************************
 **************************************
 *********** PRINT STYLES *************
 **************************************
 **************************************/


@media print {

  /* GENERAL */

  * {
    background: transparent;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body, body.html {
    background-color: transparent;
    background-image: none;
  }
  img {
    page-break-inside: avoid;
  }
  .bleed-background {
    display: none;
  }


  /* OUTER PAGE CONTAINER */

  .layout-container {
    background-color: transparent;
  }


  /* BANDS GENERAL */

  .band {
    padding-left: 0;
    padding-right: 0;
  }


  /* ALERT BAND */

  .band-alert {
    display: none;
  }


  /* MOBILE NAVIGATION BAND */

  .band-mobilenav {
    display: none;
  }


  /* HEADER RIGHT REGION */

  .region-header2 {
    display: none;
  }


  /* PRIMARY NAVIGATION */

  .band-primarynav {
    display: none;
  }


  /* BANNER */

  .band-bannerimage {
    display: none;
  }


  /* CONTENT BAND */

  /* watermark */
  .band-content::before {
    display: none;
  }
  /* remove left sidebar and stretch content to full width */
  .layout-left {
    display: none;
  }
  .layout-content {
    float: none;
    margin: 0;
    width: 100%;
  }

  /* home page */
  .band-sitehome-outer::before {  /* watermark */
    display: none;
  }
  .page-node-type-sitehome .band-sitehome-banner,
  .page-node-type-sitehome .impactlinks {
    background: transparent;
  }

  /* FOOTER */

  .band-footer1 {
    border: none;
    padding-top: 0;
  }
  /* links */
  .region-footer3 {
    display: none;
  }
  /* tag line */
  .band-footer2 {
    display: none;
  }


  /* CONTENT ELEMENTS */

  /* publication list */
  .view-publist .row-group-content {
    display: block; /* prints better than a flex column */
  }

  /* views filters and pagers */
  .view-filters,
  .view ul.pager {
    display: none;
  }


  /* ADMINISTRATIVE ELEMENTS */

  .band-help,
  .band-admintools,
  #viewportsize,
  .vieweditlink,
  .vieweditlink-inline {
    display: none;
  }

  /* unpublished */
  .view .item.unpublished > a,
  .node--unpublished:before {
    background-color: #e8e8e8;
  }
}


@media (min-width: 441px) { /* mobile */

}
@media (min-width: 581px) { /* wider mobile (custom breakpoint) */

}
@media (min-width: 769px) { /* intermediate */

}
@media (min-width: 1141px) { /* wide */

}

