/*
 * More overrides and extra styles, added by rjw
 *
 */


/*
 * MOBILE MENU STYLES
 *
 * Originally, long menu items were cut off because the height was fixed at 40px,
 * so wrapped text was cut off.
 *
 */

#responsive-menu-container #responsive-menu ul.responsive-menu-submenu li.responsive-menu-item a {
  height: auto !important;
  min-height: 40px;
  line-height: 1.25 !important;
  padding: 6px 12px 6px 10%  !important;
}
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu li.responsive-menu-item:first-child a {
  padding-top: 12px !important;
}
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu li.responsive-menu-item:last-child a {
  padding-bottom: 12px !important;
}
#responsive-menu-container #responsive-menu ul.responsive-menu-submenu li.responsive-menu-item li.responsive-menu-item a {
  padding-left: 15% !important;
}


/*
 * PARTNER LOGO STYLES
 *
 * Trying to make the partner logos on /engage/idss-strategic-partnerships look nicer. November 2020.
 * The HTML is a container div with class partner-logos containing a number of figures.
 * <div class="partner-logos">
 *   <figure><a><img></a><figcaption>TEXT</figcaption></figure>
 *   ...
 * </div>
 * We rely on the image being inside a link. A trick is used to keep the box containing the
 * image at a constant aspect ratio (3:2).
 * EDIT: Scott changed this to (2:3)(?) in Feb 2021. The key line is the padding-top of a::before.
 * See https://mademyday.de/height-equals-width-with-pure-css/
 */

.partner-logos {
  display: grid;
  grid-gap: 40px 80px;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
}
.partner-logos figure {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  margin: 0;
}
.partner-logos figure > a {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.partner-logos figure > a::before {
  content: "";
  float: left;
  padding-top: 33.33333%;
}
.partner-logos figure > a > img {
  margin: 0;
}
.partner-logos figcaption {
  display: block;
  margin: 10px 0 0 0;
  text-align: center;
}


/*
 * PEOPLE LIST STYLES
 * February 28 2022
 * Changes to these templates, adding div.staff-groups:
 *   page.php, page-administration.php, page-board.php, page-leadership.php
 */
@media screen and (min-width: 501px) {
  .staff-groups {
    /* background: #e0e0e0; */
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 36px 18px;
  }
  .people-additional-note {
    margin: 0 0 1em 0;
  }
  h3.staff-category-header {
    float: none;
    margin: 0 0 10px 0;
  }
  .staff-groups .staff-group {
    width: auto;
    max-width: 230px;
    margin: 0;
    min-height: 0;
  }
  .staff-groups .imager {
    height: auto;
    line-height: 0;
  }
  .staff-groups .imager img {
    width: 100%;
    height: 205px;
    object-fit: cover;
  }
  .staff-groups h3 {
    height: auto;
    min-height: 60px;
  }
  .staff-groups .title {
    height: auto;
  }
  .staff-groups + :is(h2,h3) {
    margin-top: 60px;
  }
}
@media screen and (max-width: 1255px) {
  .staff-groups {
    grid-template-columns: repeat(4,1fr)
  }
}
@media screen and (max-width: 850px) {
  .staff-groups {
    grid-template-columns: repeat(3,1fr)
  }
}
@media screen and (max-width: 650px) {
  .staff-groups {
    grid-template-columns: repeat(2,1fr)
  }
}
@media screen and (max-width: 500px) { /* no changes to original styles */
  .staff-groups {
    display: block;
  }
  .staff-groups .imager img {
    object-fit: cover;
    min-height: 0;
  }
}

/*** pronouns 8/2022 ***/

/* in people listings */
.staff-group h3 .pronouns,
.staff-group h3 a .pronouns {
  font-size: 12px;
  font-style: italic;
  text-transform: lowercase;
}
/* in person page title */
h1 .pronouns {
  font-size: 14px;
  font-style: italic;
}

/*** more news on home page 1/2023 ***/

.idss-news-more a {
	color: inherit;
	text-decoration: none;
}

/*** MIT Logo updates 9/2023 ***/

.mit-link {
  background: none;
  text-indent: initial;
}

/*** Three column footer 1/24/2024 ***/

.footer3col {
  margin-top: 5%;
  padding: max(2.75%, 20px) max(5%, 20px);
  background-color: #404041;
  font-size: 12px;
  color: #fff;
}
.footer3col :is(ul, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer3col p {
  margin: 0;
}
.footer3col p + p {
  margin-top: 0.5em;
}
.footer3col a {
  color: #fff;
  text-decoration: none;
}
.footer3col :is(p, li) :is(a:hover, a:focus) {
  color: #fff;
  text-decoration: underline;
}

/* overall layout */
.footer3col {
  display: flex;
  flex-flow: column nowrap;
  gap: 40px;
}

/* social */
.footer3col-social ul {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
}
.footer3col-social li {
  display: contents;
}
.footer3col-social a {
  display: block;
  height: 26px;
  width: 26px;
}
.footer3col-social svg {
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* logos */
.footer3col-logo-accessibility ul {
  display: flex;
  flex-flow: column nowrap;
  gap: 30px;
}
.footer3col-logo-accessibility img {
  height: 35px;
  width: auto;
}
.footer3col-logo-accessibility li {
  line-height: 1;
}
/* wider pages */
@media (min-width: 620px) {
  .footer3col {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "address social"
      "logos   logos";
    gap: 40px;
  }
  .footer3col-address {
    grid-area: address;
  }
  .footer3col-social {
    grid-area: social;
  }
  .footer3col-logo-accessibility {
    grid-area: logos;
  }
  .footer3col-logo-accessibility ul {
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: end;
  }
  .footer3col-logo-accessibility .access {
    margin-bottom: 5px;
  }

}
@media (min-width: 820px) {
  .footer3col {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "address social logos";
  }
  .footer3col-social ul {
    justify-content: center;
  }
  .footer3col-logo-accessibility {
    justify-self: end;
  }
  .footer3col-logo-accessibility ul {
    flex-flow: column nowrap;
    align-items: center;
    gap: 40px;
  }
  .footer3col-logo-accessibility .access {
    margin-bottom: 0;
  }
}

/*** MIT Logo in header on mobile ***/

@media screen and (max-width: 1060px) {
  .top_bar {
    display: block;
  }
  .top_bar .top_menu {
    display: none;
  }
  .top_bar .mit-link {
    position: absolute;
    right: 80px;
    top: 2px;
    height: auto;
  }
}
@media screen and (max-width: 600px) {
  .top_bar .mit-link {
    top: 7px;
  }
}


/* styles for search box and results page rjw 3/2/24 */

/*
 * GOOGLE CSE SEARCH BOX 
 * 3/2/24
 */
.cse-search {
  position: absolute;
  right: 0;
  top: 46px;
}
.cse-search form {
  display: inline;
  margin: 0;
  padding: 0;
}
.cse-search .elements {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  border: 1px solid #cccccc;
}
.cse-search label {
  /* visually hidden */
  position: absolute;
  z-index: 99999;
  width: 1px;
  height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  word-wrap: normal;
}
.cse-search input[type="text"] {
  width: 214px;
  border: none;
  margin: 0;
  padding: 6px 15px 6px 15px;
  color: #404041;
}
.cse-search input[type="submit"] {
  text-indent: -9999px;
  overflow: hidden;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  background-color: #cccccc;
  background-image: url('../images/search-icon.png');
  background-position: 50% 50%;
  background-repeat: no-repeat;
  cursor: pointer;
}
@media screen and (max-width: 1060px) {
  .top_bar .cse-search {
    display: none;
  }
}

/* in responsive menu */
.cse-search-mobile {
  position: relative;
  left: 0;
  right: auto;
  top: 0;
  width: 100%;
}
.cse-search-mobile .elements {
  background-color: #fff;
}
.cse-search-mobile input[type="text"] {
  flex: 1 1 auto;
  width: auto;
  border: none;
  margin: 0;
  padding: 6px 15px 6px 15px;
}


/*
 * GOOGLE CUSTOM SEARCH RESULTS
 * 3/2/24
 * These are overrides to styles inserted by Google.
 *
 */
#searchresults .gsc-control-cse,
#searchresults .gsc-control-cse * {
  font-family: inherit;  /* use our own font */
}

/* override table padding */
#searchresults table.gsc-search-box > tbody > tr > td:first-child {
  padding-left: 0;
}
#searchresults table.gsc-search-box > tbody > tr > td:last-child {
  padding-right: 0;
}

/*  outer container */
#searchresults .gsc-control-cse {
  padding: 0;
}

/* search box */
#searchresults .gsc-search-button button {
  cursor: pointer;
  background-color: #cccccc;
  border: none;
  min-height: 46px;
}

/* results */
#searchresults .gsc-result {
  padding: 15px 0 15px 0;
}
#searchresults .gs-result .gs-title,
#searchresults .gs-result .gs-title * {
  font-size: 22px;
  color: #009ede;
  font-weight: bold;
  text-decoration: none;
  /*text-transform: uppercase;*/
}
#searchresults .gs-result .gs-title {
  line-height: 24px;
  margin: 0;
}
#searchresults .gs-result .gs-title a:focus,
#searchresults .gs-result .gs-title a:hover {
  color: #009ede;
  text-decoration: underline;
}
#searchresults .gs-result .gs-visibleUrl {
  color: #404041;
}

/* pager */
#searchresults .gsc-cursor-box {
  margin-top: 40px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}
#searchresults .gsc-cursor-box .gsc-cursor {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}
#searchresults .gsc-cursor-box .gsc-cursor-page {
  font-size: 16px;
  margin-left: 12px;
  margin-right: 12px;
}
#searchresults .gsc-cursor-box .gsc-cursor-current-page {
  font-size: 20px;
  font-weight: bold;
  color: #404041;
}

/* search on google */
#searchresults .gcsc-more-maybe-branding-root {
  display: none;
}

/*** Grid footer with SoE logo 7/2/2025 ***/

.footer25grid {
  margin-top: 5%;
  padding: max(2.75%, 20px) max(5%, 20px);
  background-color: #404041;
  font-size: 12px;
  color: #fff;
}
.footer25grid :is(ul, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer25grid p {
  margin: 0;
}
.footer25grid p + p {
  margin-top: 0.5em;
}
.footer25grid a {
  color: #fff;
  text-decoration: none;
}
.footer25grid :is(p, li) :is(a:hover, a:focus-visible) {
  color: #fff;
  text-decoration: underline;
}
/* social */
.footer25grid-social ul {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
}
.footer25grid-social li {
  display: contents;
}
.footer25grid-social a {
  display: block;
  height: 26px;
  width: 26px;
}
.footer25grid-social svg {
  width: 100%;
  aspect-ratio: 1 / 1;
}
/* logos */
.footer25grid-logos ul {
  display: flex;
  flex-flow: row nowrap;
  gap: 30px;
  justify-content: start;
}
.footer25grid-logos li {
  flex: 1 1 50%;
  max-width: max-content;
  line-height: 1;
}
.footer25grid-logos img {
  max-height: 35px;
  width: auto;
  max-width: 100%;
}
/* grid areas */
.footer25grid-address {
  grid-area: address;
}
.footer25grid-social {
  grid-area: social;
}
.footer25grid-logos {
  grid-area: logos;
}
.footer25grid-accessibility {
  grid-area: access;
}

/* mobile */
.footer25grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 40px;
  grid-template-areas:
    "address"
    "social"
    "logos"
    "access";
}

/* wide */
@media (width >= 620px) {
  .footer25grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "address social"
      "address access"
      "logos   logos";
    gap: 40px;
  }
  .footer25grid-social {
    justify-self: end;
  }
  .footer25grid-accessibility {
    justify-self: end;
    text-align: right;
  }
  .footer25grid-logos ul {
    justify-content: space-between;
  }
}
