:root {
  --blue-dark: #2f6b45;
  --blue-mid: #4f8f63;
  --blue-light: #8cc599;
  --gray-bg: #ffffff;
  --gray-text: #243128;
  --blue-superlight: #dcefe3;
  --darkest: #24563a; 
}

html {
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: var(--gray-bg);
  color: var(--gray-text);
  border-bottom: 10px solid var(--blue-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p {
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  text-align: left;
}

h4 {
  font-size: 18px;
}

a {
  color: var(--blue-mid);
}

.text-container a {
  color: var(--blue-mid);
}

a:visited {
  color: var(--blue-mid);
}

.text-container a:visited {
  color: var(--blue-dark);
}

/* Lists */
ol > li::marker {
  font-weight: bold;
}

li {
  font-size: 1.25rem;
  margin-bottom: 5px;
}



.container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

section>.container {
  display:flex; 
  flex-direction:row; 
}

main {
  padding-bottom: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--blue-dark);
  border-bottom: none;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  background: #ffffff;
}

.logo img {
  height: 150px;
}

@media (max-width: 1024px) {
  .logo {
    height: 130px;
  }
}

@media (max-width: 768px) {
  .logo {
    height: 110px;
  }
  .logo img {
    height: 110px;
  }
}

@media (max-width: 600px) {
  .logo {
    height: 100px;
  }
  .logo img {
    height: 60px;
  }
}

.site-header__title {
  color: var(--blue-dark) !important;
  margin-left: 4rem;
}

@media (max-width: 768px) {
  .site-header__title {
    text-align: center; 
    margin-left: 0.5rem; 
    margin-right: 0.5rem; 
  }
}

.projects-list-title {
  font-family: "Sansation", sans-serif;
  font-size: 2.5rem;
  background-color: var(--gray-bg);
  color: var(--blue-dark);
  text-align: center;
  margin: 0 !important; 
}

#hmp-main-logo {
  font-family: "Sansation", sans-serif;
  font-size: 3rem;
  color: var(--blue-dark);
  text-decoration: none;
}

@media (max-width: 768px) {
  #hmp-main-logo {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  #hmp-main-logo {
    font-size: 1.8rem;
  }
}

header.site-header.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top:1rem;
  padding-bottom:1rem; 
}

@media (max-width: 768px) {
  header.site-header.logo {
    justify-content: space-around;
    padding-top:0rem;
    padding-bottom:0rem;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header container layout */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center; /* left group | hamburger */
  width: 100%;
}

/* Make sure the left group stays together */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0; /* allows text to shrink instead of pushing layout */
}

/* Push hamburger all the way right */
.nav-toggle {
  margin-left: auto;
}

/* Mobile: keep it in the same row, and tighten spacing */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: nowrap;            /* key: prevents stacking */
    gap: 0.75rem;
    justify-content: space-between;
  }

  .site-header__title {
    margin-left: 0.5rem;          /* less space on mobile */
  }

  /* Optional: prevent long title from wrapping weirdly */
  #hmp-main-logo {
    white-space: nowrap;
  }
}

.logo-image {
  height: 150px;
  filter: drop-shadow(0 0 4px rgba(47, 107, 69, 0.18));
}

@media (max-width: 768px) {
  .logo-image {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 55px;
  }
}

#hmp-main-logo {
  font-size: 3rem;
}

@media (max-width: 768px) {
  #hmp-main-logo {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  #hmp-main-logo {
    font-size: 1.4rem;
  }
}

.site-nav {
  background: var(--blue-light);
  border-top: 1px solid var(--blue-superlight);
  border-bottom: 1px solid var(--blue-superlight);
}

@media (min-width: 769px) {
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}

@media (max-width: 768px) {
  .site-nav {
    background: var(--blue-light);
  }
}

.site-nav>.container {
  padding-top: calc(0.5rem + 5px); 
  padding-bottom: calc(0.5rem);
  position: relative;
}

.site-nav ul {
  margin: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
  padding-left: 1rem; 
  padding-right: 1rem; 
  align-items: center;
  justify-content: space-between;
  transition:cubic-bezier(1, 0, 0, 1) 0.2s;
}

.site-nav ul li {
  position: relative;
}

.site-nav ul li, .site-nav ul li a {
    transition:cubic-bezier(1, 0, 0, 1) 0.2s;
}

.selected::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  right: 0;
  height: 5px;
  background: #ffffff;
}

.selected:hover::after {
  background: var(--blue-dark);
}

.site-nav a {
  color: var(--blue-dark);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue-dark);
}

@media (max-width: 1024px) {
  .site-nav ul {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* Mobile: hide menu by default */
@media (max-width: 768px) {
  .site-nav>.container {
    padding:0;
  }

  .site-nav.open {
    padding-top: 1rem; 
    padding-bottom: 1rem;
    padding-left: 1.5rem;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Show when open */
  .site-nav.open ul {
    display: flex;
  }
}




.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 56px;
  height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition:cubic-bezier(1, 0, 0, 1) 0.1s;
}

.nav-toggle:hover {
  transform: scale(1.05);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #fff;
  border-radius: 4px;
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--blue-dark);
    padding: 0;
  }

  .site-nav.open ul {
    display: flex;
  }
}

@keyframes burgerSpinBars {
  from { transform: rotate(0deg); }
  to   { transform: rotate(90deg); }
}

.nav-toggle span {
  transform-origin: center;
}


/* .nav-toggle.is-active span {
  transform: rotate(90deg);
} */

 
.nav-toggle.is-active span:nth-child(1) {
  transform: rotate(90deg) translateY(-12px) translateX(10px);
}

.nav-toggle.is-active span:nth-child(2) {
  transform: rotate(90deg) translateX(0px);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: rotate(90deg) translateY(12px) translateX(-10px);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #fff;
  border-radius: 4px;

  transform: rotate(0deg) translateX(0);
  transform-origin: center;

  transition: transform 220ms ease-in-out;
}

/* When active, rotate the bars 90deg */
.nav-toggle.is-active span {
  transform: rotate(90deg);
}



.site-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.site-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.jumbotron {
  display: flex;
  height: 350px;
  max-height: 350px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6f0 60%, #dcefe3 100%);
  gap: 2rem; 
  color: var(--blue-dark);
}

@media (min-width: 1024px) {
  .jumbotron>.container {
    width: 100%; 
  }
}

.jumbotron>.container {
  justify-content: space-between;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.jumbotron__left {
  max-width:40%;
  padding: 1rem; 
  border-radius: 12px;
}

@media (max-width: 1300px) {
  .jumbotron {
    background: linear-gradient(135deg, #ffffff 0%, #eef6f0 60%, #dcefe3 100%);
  }

  .jumbotron__left {
    max-width: 60%;
  }
}


@media (max-width: 724px) {
  .jumbotron__left {
    max-width: 100%;
  }
}

.jumbotron__left h1 {
  text-align: left; 
  font-family: 'Sansation', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.jumbotron__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.jumbotron__actions .btn-primary {
  margin: 0;
}

@media (max-width: 1024px) {
  .jumbotron__left h1 {
    font-size: 2.2rem;
  }
}

.jumbotron__right {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  margin-bottom: calc(-1 * clamp(1rem, 3vw, 2rem));
}

@media (max-width: 768px) {
  .jumbotron {
    flex-direction: column;
    text-align: center;
  }

  .jumbotron__left h1 {
    font-size: 2rem;
  }

  .jumbotron__actions {
    justify-content: center;
  }

  .jumbotron__right {
    display: none;
  }
}

@media (max-width: 724px) {
  .jumbotron {
    background: linear-gradient(135deg, #ffffff 0%, #eef6f0 60%, #dcefe3 100%);
  }
}

.jumbotron__main-image {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
  opacity: 0.9;
}



@media (max-width: 1024px) {
  .jumbotron__main-image {
    height: 300px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .jumbotron__main-image {
    height: 270px;
    width: auto;
  }
}

@media (max-width: 1345px) {
  .desktop_br {
    display: none;
  }
}

.btn-primary {
  background: var(--blue-light);
  border: none;
  padding: 0.5rem 1.8rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 auto; 
  color: var(--blue-dark);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: fit-content; 
  border: 1px solid var(--blue-superlight);
  display: inline-block;
}

.btn-primary:hover,
.btn-primary:visited {
  color: var(--blue-dark);
  text-decoration: none;
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-secondary {
  display: block;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #fff;
  color: var(--blue-dark);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background: var(--blue-light);
  color: #fff;
}

.info {
  border-top:1px solid var(--blue-superlight);
  border-bottom:1px solid var(--blue-superlight);
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.info>.container {
  display: grid;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
}


@media (max-width: 1024px) {
  .info>.container {
    grid-template-columns: 1fr;
  }

  .info-card:last-child {
    grid-column: auto;
  }
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--blue-light);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 6px 16px rgba(0,0,0,0.08);
}

.info-card h2,
.info-card h3 {
  text-align: left;
  font-family: "Sansation", sans-serif;
  font-size: 1.75rem;
  color: var(--blue-dark);
  font-weight: bold; 
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.info-card p {
  color: var(--gray-text); 
  font-size: 1rem; 
  line-height: 1.25rem; 
}

.info-card__content {
  /* Remove flexbox layout for floating image */
}

.info-card__content::after {
  content: "";
  display: table;
  clear: both;
}

.info-card__image {
  width: 120px;
  height: auto;
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.projects-list {
  background-color: var(--gray-bg);
}

.project-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 2rem;
  margin-bottom: 1rem;
  margin-top: 1rem; 
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-item__title {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin: 0 0 1rem 0; 
}

.project-item__link {
  font-size: 0.9rem;
  color: var(--blue-mid);
  text-decoration: none;
  margin-left: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.project-item__link:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

.project-item__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.project-item__list li {
  margin: 0.45rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 1.1rem;
}

.project-item__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue-light);
}

.projects-list > hr {
  display: none;
}

.projects-list > .container {
  flex-direction: column !important;
}

.info-card ul, .projects-list > ul {
  margin: 0;
  list-style: none;
  padding-left: 0;
  flex-grow: 1; 
}

.info-card ul li, .projects-list > ul li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.4rem 0;
}

.info-card ul li {
  color: var(--gray-text); 
  font-size: 1rem !important; 
}

.info-card ul li::before, .projects-list > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  background-image: url('../images/svg-bullet.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-left: clamp(1rem, 14vw, 20rem);
  padding-right: clamp(1rem, 14vw, 20rem);
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--gray-bg);
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-card__img {
  width: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .project-card__img {
    width: 200px;
    height: 130px;
  }
}

@media (max-width: 640px) {
  .project-card__img {
    width: 100%;
    height: 180px;
  }
}

.footer {
  --footer-bg: var(--blue-dark);
  --footer-text: #ffffff;

  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer>.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  align-items: center;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer__col a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer__col--nih span {
  font-size: 0.75rem;
}

.footer__col a:hover {
  text-decoration: underline;
}

.accessibility-link {
  margin-top: 0.5rem;
}

.accessibility-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--footer-text);
  text-decoration: none;
}

.accessibility-link a:visited {
  color: var(--footer-text);
}

.accessibility-link a:hover,
.accessibility-link a:focus-visible {
  text-decoration: underline;
}

.accessibility-link a:focus-visible,
.footer__logo-link:focus-visible {
  outline: 3px solid #f0bd45;
  outline-offset: 3px;
}

.accessibility-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.footer__col--logo {
  text-align: center;
}

.footer__logo-link {
  display: block;
  border-radius: 4px;
}

.footer__logo {
  max-width: 220px;
  margin: 0 auto;
}

.footer__logo-svg,
.footer__logo svg {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer__logo-svg path {
  fill: #fff;
}

@media (max-width: 1024px) {
  .footer >.container{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  .footer__col--logo {
    grid-column: 1 / span 2;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .footer>.container {
    display: flex;
    flex-direction: column;
  }

  .footer__col--logo {
    grid-column: unset;
    text-align: center;
  }

  .footer__col {
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .footer>.container {
    padding: 1.5rem 1rem;
  }

  .footer__col {
    font-size: 0.85rem;
  }
}

#admin-area,
.misc_icons,
.submission_intro,
.download_intro,
.left_nav,
.right_content,
.submission_content,
.download_content {
  float:left;
}

@keyframes fadeEffect {
  from { opacity:0; }
  to   { opacity:1; }
}


/* HMP palette alignment: white content surfaces with the legacy mint-green accent. */
header.site-header.logo {
  background: #ffffff;
  border-bottom: 1px solid #dcefe3;
}

#hmp-main-logo,
.site-header__title,
.site-header__title a {
  color: var(--blue-dark) !important;
}

.site-nav {
  background: var(--blue-light);
  border-color: #72ad83;
}

.site-nav a {
  color: #173d26;
}

.site-nav a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .site-nav.open a,
  .site-nav.open a:visited {
    color: #ffffff;
  }

  .site-nav.open a:hover,
  .site-nav.open a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
  }
}

.site-nav .selected::after {
  background: #ffffff;
}

.site-nav .nav-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav .nav-external-link__icon {
  width: 0.8em;
  height: 0.8em;
  flex-shrink: 0;
}

.nav-toggle span {
  background: var(--blue-dark);
}

.jumbotron {
  color: var(--blue-dark);
}

.jumbotron__left p {
  color: var(--gray-text);
}

.info-card {
  background: #ffffff;
  border-color: var(--blue-light);
}

.info-card h2,
.info-card h3 {
  color: var(--blue-dark);
}

.info-card p,
.info-card ul li {
  color: var(--gray-text);
}

.btn-primary {
  background: var(--blue-light);
  border-color: #72ad83;
  color: #173d26;
}

.btn-primary:hover {
  background: var(--blue-superlight);
  color: var(--blue-dark);
}

.footer {
  --footer-bg: var(--blue-dark);
}
