 

/*-- scss:rules --*/

/* import fonts */

/* @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');



/*   Right-side TOC list hidden by Bootstrap collapse
   ========================================================= */

/* On desktop, always show the TOC list */
@media (min-width: 767px) {
  nav#TOC > ul.collapse {
    display: block !important;
  }

  nav#TOC .toc-actions > ul.collapse {
    display: block !important;
  }
}

/* hide an element on screens wider than 767px (desktop/tablet) */
@media screen and (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* show on smaller screens */
@media screen and (max-width: 767px) {
  .mobile-only {
    display: block !important;
  }
}


/* this will apply to all elements, overwritable below */
.content {
  font-family: Arial, Helvetica, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
  font-optical-sizing: auto;

  /* font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings:
    "wdth" 100; */
}



/* Page titles */
h1, h2{
  /* color: var(--ciesin-accent); */
  font-family: Inter Tight, sans-serif;
}

h1 {
  font-weight: 600;
  border-bottom: 1px solid var(--ciesin-accent);
  padding-bottom: 0.3em;
  font-size: 1.25rem;
}

/* Subtitles */
.quarto-title p.subtitle {
  color: var(--ciesin-muted);
  font-style: italic;
}

/* Section headers */
h2 {
  border-left: 4px solid var(--ciesin-accent);
  padding-left: 0.5em;
  margin-top: 1.5rem;
  font-size: 1rem;
}

h3 {
  padding-left: 0.75em;
  margin-top: 1.5rem;
  font-size: 1rem;
}


/* md section breaks */
hr {
  border-top: 1px solid var(--ciesin-accent); /* Adds a new top border */
  margin-top: 2em;
  margin-bottom: 2em;

}


p {
  margin-bottom: 1rem;
}

ul {
  list-style-type: square;
  padding-left: 1.5em;
}

a {
  color: var(--ciesin-accent);
  text-decoration: underline;
  font-weight: 500;
}

/* Navigation bar */

.navbar {
  background-color: var(--ciesin-nav);
}

.navbar a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  padding-right: 1rem;
}

/* override default navbar submenu dropdowns */
.navbar-nav .dropdown-menu {
  /* flush snap — removes the default 0.125rem Popper gap */

  /* colours */
  --bs-dropdown-bg: var(--ciesin-nav);
  --bs-dropdown-color: rgba(255, 255, 255, 0.92);
  --bs-dropdown-link-color: rgba(255, 255, 255, 0.92);
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-dropdown-link-active-color: #ffffff;
  --bs-dropdown-link-active-bg: rgba(255, 255, 255, 0.20);

  /* shape */
  --bs-dropdown-border-width: 0;
  --bs-dropdown-border-radius: 0;

  /* item sizing */
  --bs-dropdown-item-padding-x: 1.1rem;
  --bs-dropdown-item-padding-y: 0.45rem;

  margin-top: 8px !important;

  --bs-dropdown-min-width: 0;
  min-width: max-content !important;
  /* width: max-content; */

}

.navbar-nav .dropdown-item {
  white-space: nowrap;
}

/* icon-only items (contact dropdown) */
.navbar-nav .dropdown-item .bi {
  font-size: 1rem;
}

/* mobile nav submenu */
@media (max-width: 575.98px) {
  .navbar-nav .dropdown-menu {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
  }

  .navbar-nav .dropdown-item {
    padding-left: 1.75rem;
  }
}

/* styling for code blocks */

.sourceCode {
  border-left: 0.2rem solid var(--ciesin-code-border);
  /* background-color: var(--ciesin-code-bg); */
  max-width: 100%;
  overflow-x: auto;
  background-color: none;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

pre, code {
  font-family: "IBM Plex Mono", monospace;
}


/* scroll within the element if needed, not full viewport */
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* parenthesis after section numbers? */
/* .header-section-number::after {
  content: ")";
} */

/* homepage cards gallery */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  position: relative;
  width: 100%;
  height: 18rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--ciesin-brand);
  box-shadow: 0 2px 10px var(--ciesin-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* optional arbitrarily selected background colors for grid */
/* .card:nth-child(2) { background-color: #174278; }
.card:nth-child(3) { background-color: #1e5cb8; }
.card:nth-child(4) { background-color: #163d70; } */

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px var(--ciesin-shadow-hover);
}

/* full-bleed image — always behind the overlay */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.card > p {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.card > p > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* text overlay — always above the image */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.25rem 1.4rem;
  background: linear-gradient(
    to top,
    rgba(8, 20, 45, 0.82) 0%,
    rgba(8, 20, 45, 0.30) 55%,
    transparent 100%
  );
  z-index: 2;
}

.card-overlay h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  padding: 0;
  border: none;
}

.card-overlay p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

/* stretched-link = full card clickable */
.card-overlay a.stretched-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.card:hover .card-overlay a.stretched-link {
  color: #ffffff;
  text-decoration: none;
}

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


/* mobile / responsive styling */

h1.quarto-secondary-nav-title {
  font-size: 0.9rem;
  border-bottom: none;
  /* padding: 0;
  margin: 0; */
}

/* buttons + widgets */

/* .quarto-btn-toggle.btn {
  height: 0.9rem;
  width: auto;
} */

/* .bi.bi-layout-text-sidebar-reverse {
  font-size: 0.5rem;
  padding: none;
  margin: none;
} */

.btn.btn-primary {
  font-family: Inter Tight, sans-serif;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 0px;
  background-color: var(--text-color);
  color: var(--background-color);
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Theme-aware logo on home page */
.ciesin-logo-dark  { display: none; }
.ciesin-logo-light { display: block; }

body.quarto-dark .ciesin-logo-light { display: none; }
body.quarto-dark .ciesin-logo-dark  { display: block; }

/* Sidebar nav hierarchy */

/* top-level standalone items and section headers */
.sidebar-item-section > .sidebar-item-container .sidebar-item-text {
  font-weight: 600;
  font-size: 0.8rem;
  /* text-transform: uppercase; */
  letter-spacing: 0.04em;
  color: var(--bs-body-color);
  opacity: 0.85;
}

/* child items nested inside a section */
.sidebar-section .sidebar-item > .sidebar-item-container .sidebar-item-text {
  font-weight: 400;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bs-body-color);
  opacity: 0.75;
}

/* active (currently viewed) sidebar item */
.sidebar-item .sidebar-link.active .menu-text,
.sidebar-item .sidebar-link.active {
  font-weight: 600;
  color: var(--ciesin-accent) !important;
  opacity: 1;
}

/* footer */

.page-footer {
  border-top: 1px solid var(--ciesin-footer-rule);
  padding: 0.9rem 0;
  font-size: 0.875rem;
  color: inherit;
}

.page-footer a {
  color: inherit;
  text-decoration: underline;
}

/* override back to top popup, was getting covered by footer */
#quarto-back-to-top {
  position: fixed !important;
  color: #ffffff !important;
  background-color: var(--ciesin-nav) !important;
  z-index: 9999 !important;
}
