/* Base Site styles  */
.header__content {
  grid-template-columns: 15rem 1fr 3rem!important;
  border-top: 1px solid #9C1F2E; 
  padding-top: 1rem;
}
.header__logo {
  height: 4.5rem!important;
}
@media (max-width: 77rem) {
  .header__content {
    grid-template-columns: 1fr auto 1fr!important;
  }
}
.subheader__user-controls {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
}
.subheader__user-controls__menu-button {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  color: inherit;
  border: none;
  padding: 0;
}
[aria-expanded="false"] .subheader__user-controls__menu-button__close {
  /* Hide the close icon when the menu is closed */
  display: none;
}
[aria-expanded="true"] .subheader__user-controls__menu-button__open {
  /* Hide the open icon when the menu is open */
  display: none;
}
.subheader__user-controls__menu {
  background-color: var(--black);
  color: var(--white);
}
.subheader__user-controls__menu {
  display: none;
  z-index: -1;
  position: absolute;
  width: 9rem;
  margin-top: 18rem;
  align-items: center;
  border-radius: 0.5rem;
  padding: 3rem 0.5rem;
  background: rgba(79,79,80, 0.9);
}
[aria-expanded="true"] + .subheader__user-controls__menu {
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.subheader__user-controls__menu__content {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: stretch;
  margin-bottom:1rem;
  width: 8rem;
}
.subheader__user-controls__menu__button {
  text-align: center;
}
@media (min-width: 40rem){
  .subheader__user-controls__menu {
    width: 20rem;
  }
  .subheader__user-controls__menu__content {
    width: 18rem;
  }
}
/* Subheader Menu styles  */
.subnav {
  display: flex;
  align-items: center;
}
.subheader-content {
  display: flex;
  padding: 0.5rem 0;
  justify-content: space-between;
}
.subheader-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-radius:1rem;
  font-family: lato, sans-serif;
}
.dropdown {
  position: relative;
  display:block;
}
.dropdown-ul {
  position: absolute;
  display: none;
  background: rgba(79,79,80, 0.9);
  color:white;
  padding: 1rem;
  width: 11rem;
}
.dropdown:hover > .dropdown-ul {
  display: block;
  z-index: 99;
}
.dropdown-ul > .menu-item {
  margin: 10px 0;
}
.toggle-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 17px;
}
.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 10px;
}
.menu-item a:hover {
  font-weight: bold;
  text-decoration: underline;
  color:unset;
}
@media (min-width: 77rem) {
  .wrapper {
    overflow: visible!important;
  }
}
@media (max-width: 77rem) {
  .wrapper {
    overflow: hidden!important;
  }
  .subnav {
    order: -1;
  }
  .subheader-links {
    display: none;
    position: absolute;
    flex-direction: column;
    margin-top: 3rem;
    padding: 3rem 1rem;
    gap: 0.5rem;
    width: 13rem;
    align-items: flex-start;
    background: rgba(79,79,80, 0.9);
    color:white;
  }
  .subheader-links.active {
    display:flex;
    z-index: 99;
  }
  .subheader-content {
    display: flex;
    align-items: flex-start;
    position: absolute;
    background: white;
    width: auto;
  }
  .dropdown:hover > .dropdown-ul {
    display: block;
    z-index: 99;
    position: relative;
    padding: 0 2rem;
    width: 14rem;
    background: none;
  }
  .toggle-button {
    display: flex;
  }

}
/* Homepage styles */
.main-content {
  grid-template-columns: 1fr;
  border-top: 1px solid #9C1F2E;
  padding-bottom:0;
  display: grid;
  gap: var(--s1) var(--s2);
  padding-top: 1rem;
}
.subex-tag-red {
  font-size: 0.8rem;
  font-weight: bold;
  color: #9C1F2E;
  text-transform: uppercase;
  font-family: 'Lato Bold';
}
article.top-story {
  width:100%;
  position: relative;
}
img.top-story-img {
  aspect-ratio:2/1; 
  width:100%; 
  object-position: top; 
  object-fit: cover;
}
.lead-story-list {
  display:flex; 
  width:100%; 
  justify-content: space-between;
}
.lead-list-item {
  display:flex;
  flex-direction:column;
  width:32%;
}
img.lead-story-img {
  aspect-ratio: 3/2;
  width: 100%;
}
.section-title {
  font-weight:bold; 
  font-size:1.5rem;
  padding: 1rem 0;
  text-transform: uppercase;
  border-top: 1px solid #ececec;
  font-family: Lato Bold,sans-serif;
}
.section-story-list {
  display: flex; 
  flex-wrap: wrap; 
  justify-content:space-between; 
  gap:2rem;
}
.section-story-list-item {
  width:47%;
}
.staff-members {
  display:flex;
  flex-wrap:wrap;
  width:100%;
  justify-content:center;
  margin-top:1rem;
}

@media (max-width: 680px) {
  .section-story-list {
    gap: 1rem;
  }
  .lead-story-list {
    display: flex;
    flex-direction: column;
  }
  .lead-list-item {
    width: auto!important;
    margin-bottom: 1.5rem;
  }
  img.top-story-img {
    aspect-ratio: 3/2!important;
    padding-top: 2.25rem
  }
  .main__content {
    padding-top: 3.25rem;
  }
  .story_list {
    gap: 1rem;
  }
  .card__text {
    min-inline-size: 60%;
    gap:unset;
  }
}
/* Article Card Homepage styles */
img.whs_hp_card__thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  flex-basis: 9rem; 
  width: 9rem;
  object-fit: contain;
  flex-grow: 1;
}
.whs_hp_card__text {
  min-inline-size: 60%;
  font-family: Lato,Lato-Fallback-Arial,sans-serif;
  flex-basis: 0;
  flex-grow: 999;
  display: flex;
  flex-direction: column;
  gap: unset;
  margin-top:1rem;
}
.red-hover a:hover {
  color: #A31E26;
}
.whs_card {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  gap: 1rem;
}
.whs_card__tease {
  font-family: PT Serif,serif;
}
.whs_card__title {
  font-size: 1.5rem;
  line-height: normal;
  font-family: Lato Bold,sans-serif;
}
.whs_card__byline {
  font-size: .875rem;
  padding-top: 0.2rem;
}
/* Article Card styles  */
.whs_card__thumbnail img, img.whs_card__thumbnail {
  width: 15rem;
  height: auto;
  aspect-ratio: 3/2;
  flex-basis: 15rem;
  flex-grow: 1;
  object-fit: contain;
}
@media (min-width: 960px) {
  .whs_section_card {
    flex-wrap: nowrap!important;
  }
}
/* Author Card style  */
.staff-box {
  width: 7rem;
  margin-bottom: 1rem;
  }
  div.staff-img img {
  max-width: 100%;
  block-size: auto;
  object-fit: contain;
  margin: 0 auto;
  max-height: 7rem;
  }
  h3.staff-name {
  text-align: center;
  font-family: lato, sans-serif;
  }
/* Staff styles  */
.blue-text {
  color: #0274b7;
}
.bold {
  font-weight: bold;
}
a.underlined-byline {
  text-decoration: underline;
}
/* Search styles */
#search_form {
  margin-bottom: 1rem;
}

#search_form select {
    appearance: auto;
    background: transparent;
    border: .0625rem solid #333;
    border-radius: .25rem;
    color: #333;
    font-size: 1rem;
    height: 2.5rem;
    padding: .5rem .5rem .5rem 1rem;
    position: relative;
    transition: .4s;
}
#search-text:focus-visible, #search_form select:focus-visible {
  outline: revert;
  outline-offset: 0px;
  outline-width:1px;
}
.filter_sort {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  column-gap: 3%;
  row-gap: 1rem;
  margin: 1rem 0 2.5rem;
}

.filter_sort select {
  font-size: 14px;
  width: 100%;
}

.photo_card_list {
  display: flex;
  flex-flow: column nowrap;
  gap: var(--s0);
}

.photo_card_list article {
  position: relative;
}

.photo_card_text {
  font-family: sans-serif;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.results_type {
  border-bottom: 1px solid var(--black);
  display: flex;
  font-size: 20px;
  margin: 0 0 1rem;
}

.results_type li {
  cursor: pointer;
  padding: 0.5rem;
}

.results_type li.selected {
  background-color: #9C1F2E;
  border: 1px solid var(--black);
  border-bottom: none;
  border-radius: 0.25rem 0.25rem 0 0;
  color: white;
}

.search_author,
.search_date {
  width: 100%;
}

.search_tips {
  position: relative;
  width: 90%;
}

.search_tips div {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 4px 0 gray;
  font-family: serif;
  font-size: 16px;
  line-height: 1.3;
  margin-top: 0.5rem;
  padding: 0.5rem;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.search_tips>span {
  display: block;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  width: 100%;
}

.search_tips>span:hover {
  color: #0274b7;
}

.search_tips_list {
  list-style-type: square;
  margin-left: 1rem;
}

.search_tips_list li {
  margin-bottom: 5px;
}

.search_tips_list span {
  font-style: italic;
}

#search_submit {
  cursor: pointer;
}

.sortby {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--black);
  cursor: pointer;
  height: fit-content;
  padding: revert;
  transition: none;
  width: auto;
}

.sortby:hover {
  color: #0066b2;
  text-decoration: underline;
}

.sortby.selectedSort {
  font-weight: 900;
}

.sortby.selectedSort:hover {
  color: var(--black);
  text-decoration: none;
}

.sort_flex {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 260px;
}

.sort_flex label {
  margin-right: 0.5rem;
}

.search_tips>span,
.sort_flex label,
.sortby {
  font-family: sans-serif;
  font-size: 18px;
}

@media only screen and (min-width: 640px) {
  .filter_sort {
    flex-direction: row;
  }

  .photo_card_list {
    flex-flow: row wrap;
    gap: 1rem 10%;
    justify-content: center;
  }

  .photo_card_list li {
    width: 40%;
  }

  .search_author {
    width: calc(97% - 260px);
  }

  .search_date {
    width: 260px;
  }

  .search_tips {
    min-width: 260px;
    width: calc(94% - 520px);
  }

  .search_tips>span {
    text-align: left;
    display: inline;
  }

  .sort_flex {
    justify-content: start;
  }
}