/* css styles */

/* FONTS */
@font-face {
  font-family: "HurmeGeometricSans3Light";
  src: url('./webFonts/HurmeGeometricSans3Light/font.woff') format('woff');
}

@font-face {
  font-family: "HurmeGeometricSans3Regular";
  src: url('./webFonts/HurmeGeometricSans3Regular/font.woff') format('woff');
}

@font-face {
  font-family: "HurmeGeometricSans3Bold";
  src: url('./webFonts/HurmeGeometricSans3Bold/font.woff') format('woff');
}

/*********************************************************************/
/* NAVIGATION BAR DETAILS */

/* specify heigh of the logo */
.navbar-logo {
  max-height: 50px;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: .6rem;
    padding-right: 1rem;
}

/* Specify color navigation bar color and border */
.navbar {
  background-color: white;
  border-bottom: 2px solid #00975f;
  font-family: HurmeGeometricSans3Bold;
  font-size: 17px;
  letter-spacing: -0.75px;
  align-content: center;
  padding-left: 20px;
}

/* Specify font color for Home page text */
.navbar-nav .nav-link.active, 
.navbar-nav 
.nav-link.show {
  color: #373636;
  font-family: HurmeGeometricSans3Bold;
  font-weight: bold;
  font-size: 17px;
}

/* Drop down menu */
.dropdown-item {
  font-family: HurmeGeometricSans3Regular;
  color: #373636;
  --bs-dropdown-link-active-bg:#00975F;
}


/* Specify font color for drop-down menu in navigation bar */
.nav-link {
  color: #373636;
  font-family:  HurmeGeometricSans3Regular;
  font-weight: bold;
  letter-spacing: -0.75px;
}

/* Hover color */
.nav-link:hover{
  color: #00975F;
}

/* Color and size of search button */
.navbar #quarto-search.type-overlay .aa-Autocomplete svg.aa-SubmitIcon {
    width: 26px;
    height: 26px;
    color: #373636; 
    opacity: 1;
}

/* Space before the search button */
@media (max-width: 991.98px){
  .navbar #quarto-search {
    margin-left: 675px;
  }
}

@media (min-width: 992px){
    .navbar #quarto-search {
    margin-left: 12px;
  }
}

/* Drop down arrow */
.dropdown-toggle::after {
  border: none !important;
  content: url(./Images/chevron-down.svg) !important;
  width: 12px;
  position: absolute;
  margin-top: -5px;
  margin-left: 5px;
}

.navbar .navbar-nav .nav-link.dropdown-toggle::after {
    vertical-align: 0em;
}
  
/*********************************************************************************/
/* TITLE BANNER*/

.quarto-title-banner h1, .quarto-title-banner .h1, .quarto-title-banner h2, .quarto-title-banner .h2 {
    color: white;
    letter-spacing: -0.75px;
    font-family: HurmeGeometricSans3Bold;
}

/* Details on background image for banner*/

.quarto-title-block .quarto-title-banner{
  background-size: relative;
  background-repeat: no-repeat;
  height: 350px;
  background-position: center center;
}


.quarto-title-banner .quarto-title .title {
   font-size: 50px;
   text-align: start;
}

.quarto-title-banner h1, .quarto-title-banner .h1, .quarto-title-banner h2, .quarto-title-banner .h2 {
    color: white;
}



h1, .h1 {
  letter-spacing: -0.75px;
}

body .page-columns {
      display: grid;
      align-content: center;
      text-align: start;
      font-family: HurmeGeometricSans3Regular;
}

a {
    color: #00975F
}

/* Sidebar details */

.sidebar-menu-container {
  font-family: HurmeGeometricSans3Bold;
}

.sidebar-menu-container a:hover {
  color: #00975a;
}

div.sidebar-item-container .active, div.sidebar-item-container .show>.nav-link, div.sidebar-item-container .sidebar-link>code {
color: #00975f;
}

.sidebar nav[role=doc-toc] ul>li>a:hover, .sidebar nav[role=doc-toc] ul>li>ul>li>a:hover {
color: #00975f !important;
}

.sidebar nav[role=doc-toc] ul>li>a.active, .sidebar nav[role=doc-toc] ul>li>ul>li>a.active {
border-left: 1px solid #00975f;
color: #00975f !important;
font-family: HurmeGeometricSans3Bold;
}


.quarto-sidebar {
  font-family: HurmeGeometricSans3Bold;
}

/***********************************************************************************************/
/* FOOTER */

footer {
  font-family: HurmeGeometricSans3Regular;
  letter-spacing: 0.005em;
  position: fixed; 
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: white !important;
  display: block;
  z-index: 1000;
}

.nav-footer-centre {
  letter-spacing: 0.005em;
}

/*********************************************************************************************/
/* FIGURE CAPTIONS */
figcaption {
  margin: auto;
  text-align: start;
  font-size: 15px;
  color: black;
}


/* Note callout details */
div.callout-note.callout {
    border-left-color: #00975F;
}

div.callout.callout-style-default>.callout-header {
    background-color: #F6F6F6;
}

/* BUTTON */
.btn {
  text-align: start;
  border-color: lightgrey;
  font-family: HurmeGeometricSans3Bold;
  color: #373636;
  --bs-btn-active-text: white;
  --bs-btn-padding-x: -2rem;
  --bs-btn-padding-y: -2rem;
  --bs-btn-border-radius: 0rem;
  width: 48%;
}

.btn:focus {
  color: white !important;
  background-color: #00975F !important;
  border-color: #00975F !important;
}

.btn:hover {
  color: white !important;
  background-color: #00975F !important;
  border-color: #00975F !important;
}

.btn:active {
  color: white !important;
  background-color: #00975F !important;
  border-color: #00975F !important;
}

.btn-outline-secondary {
  text-align: start;
  border-color: transparent;
  font-family: HurmeGeometricSans3Regular;
  color: white;
  margin-left: 30px;
}

h3, .h3, h4, .h4 {
    opacity: .9;
    margin-top: 1.5rem;
    margin-left: 30px;
}

h6 {
  font-family: HurmeGeometricSans3Bold;
  color: #00975F;
}

.btn-outline-secondary:hover {
  color: white;
  background-color: transparent;
  border-color: transparent;
  text-decoration: underline;
}

.btn-outline-secondary:active{
  color: white;
  background-color: transparent;
  border-color: transparent
}

.quarto-layout-panel {
    margin-bottom: 0em;
}

/*********************************************************************************************/
/* Download button */
.btn-download-body {
  color: #00975a;
  background: white;
  border: 2px solid #00975f;
  text-align: center;
  width: 50%;
  border-width: medium;
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
  text-decoration: none;
}

.btn-download-body:hover {
  color: white;
  background: #00975a;
  border: 2px solid #00975f;
  text-align: center;
  width: 50%;
  border-width: medium;
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
}

.btn-download-side {
  color: #00975a;
  background: white;
  border: 2px solid #00975f;
  text-align: center;
  width: 100% !important
  border-width: medium;
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
  text-decoration: none;
}

.btn-download-side:hover {
  color: white;
  background: #00975a;
  border: 2px solid #00975f;
  text-align: center;
  width: 100% !important;
  border-width: medium;
  padding-top: 10px;
  padding-bottom: 10px;
  display: block;
}


/*********** h3 title above story maps ********/
.h3.hanchord{
  height: 10px;
}




/*********** story maps displays ************/

#storymap-display {
  max-width: 60%; /* Make the entire container narrower, adjust % as you want */
  margin-left: auto;  /* Center horizontally */
  margin-right: auto;
}

#storymap-display .column {
  padding: 1rem;
  box-sizing: border-box;
}

/* Force equal height columns using flex layout */
.storymap-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Title + button block gets a fixed height */
.storymap-item h3,
.storymap-item .btn {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Wrap title + button in a div to control height */
.storymap-item > *:first-child {
  min-height: 4.5rem; /* Adjust as needed to match your tallest title + button combo */
}

/* Image styling */
.storymap-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: auto; /* Ensures it stays at the bottom of the column */
  max-height: 300px; /* Optional: limit height */
}

/**** title of the story map****/
#storymap-display h3.anchor {
  min-height: 3rem;  /* or whatever works for your tallest title */
  margin-bottom: 0.5rem;
}

.title-box {
  min-height: 6rem;       /* Fixed height to keep spacing */
  max-height: 7rem;
  overflow: hidden;       /* Hide overflow text if too long */
  display: flex;
  align-items: center;    /* Vertically center text */
  padding: 0 0.5rem;
  box-sizing: border-box;
  
  /* Make transparent — no background or border */
  background-color: transparent;
  border: none;
}

#storymap-display h3.anchor {
  font-size: 10px; /* or whatever size you want */
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}