/* css styles */
@font-face {
  font-family: 'Font Awesome 6 Free - Positron';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("_extensions/quarto-ext/fontawesome/assets/webfonts/fa-solid-900.woff2");
}

/* Add gear icon before links with href starting with "positron://settings" */
a[href^="positron://settings"]::before {
  content: "\f013"; /* Unicode for gear in Font Awesome */
  font-family: 'Font Awesome\ 6 Free - Positron';
}

/* Navbar list item aligment issues  */

nav .nav-item:not(.compact) {
  margin-bottom: -6px !important;
}

.navbar-brand img {
  height: 40px;  /* Adjust as needed */
  width: auto;
}

#top-bar-download-btn {
  margin-top: -7px
}

/* Keyboard shortcuts */
kbd {
    padding: .2rem .4rem;
}

/* Add margin-top spacing between H1 and the meta description*/
.description {
  margin-top: 1.75rem !important;
}

/* Keyboard shortcut styles 
.quarto-dark .kbd {
  color: #ffffff !important;
}
*/

/* Footer */

.posit-footer-logo {
  margin-right: 5px;
}

/* Custom card styling */

/* Custom card grid - responsive layout (Welcome page - 3 columns) */
.custom-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Small mobile - better spacing */
@media (min-width: 480px) {
  .custom-card-grid {
    gap: 1.25rem;
    margin: 2rem auto;
  }
}

/* Tablet and up - 2 columns */
@media (min-width: 768px) {
  .custom-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
  }
}

/* Desktop and up - 3 columns */
@media (min-width: 1024px) {
  .custom-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    padding: 0 2rem;
  }
}

/* Large desktop - more spacing */
@media (min-width: 1200px) {
  .custom-card-grid {
    gap: 2.5rem;
    padding: 0;
  }
}

/* Features page specific grid - 2 columns max */
.features-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Small mobile - better spacing for features */
@media (min-width: 480px) {
  .features-card-grid {
    gap: 1.25rem;
    margin: 2rem auto;
  }
}

/* Tablet and up - 2 columns for features */
@media (min-width: 768px) {
  .features-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
  }
}

/* Desktop and up - still 2 columns for features */
@media (min-width: 1024px) {
  .features-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    padding: 0 2rem;
  }
}

/* Large desktop - more spacing for features */
@media (min-width: 1200px) {
  .features-card-grid {
    gap: 2.5rem;
    padding: 0;
  }
}

.custom-card {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(87, 89, 89, 0.08);
  border: 1px solid #3276B5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

/* Small mobile - slightly more padding */
@media (min-width: 480px) {
  .custom-card {
    padding: 1.5rem;
  }
}

/* Tablet and up - more padding */
@media (min-width: 768px) {
  .custom-card {
    padding: 1.75rem;
  }
}

/* Desktop and up - full padding */
@media (min-width: 1024px) {
  .custom-card {
    padding: 2rem;
  }
}

.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(87, 89, 89, 0.12);
}

/* Focus states for accessibility */
.custom-card:focus-within {
  outline: 2px solid #3E72A2;
  outline-offset: 4px;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(87, 89, 89, 0.12);
}


.custom-card-icon-container {
  position: relative;
  margin-bottom: .5rem;
}

.custom-card-title {
  margin-bottom: 1rem;
}

.custom-card-icon {
  width: 45px;
  height: 45px;
  background: #3276B5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Small mobile - slightly larger icons */
@media (min-width: 480px) {
  .custom-card-icon {
    width: 50px;
    height: 50px;
  }
}

/* Tablet and up - larger icons */
@media (min-width: 768px) {
  .custom-card-icon {
    width: 55px;
    height: 55px;
  }
}

/* Desktop and up - full size icons */
@media (min-width: 1024px) {
  .custom-card-icon {
    width: 60px;
    height: 60px;
  }
}

.custom-card-icon i {
  font-size: 1.5rem;
  color: white;
}


.custom-card-description {
  color: #595959;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  flex-grow: 1;
}

/* Responsive font sizing */
@media (min-width: 480px) {
  .custom-card-description {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .custom-card-description {
    font-size: 1rem;
  }
}


/* Hide anchor links for welcome cards */
.custom-card-title .anchor-link,
.custom-card-title .anchor,
.custom-card-title a[href^="#"] {
  display: none !important;
}

/* Make entire card clickable */
.custom-card-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.custom-card-wrapper:hover {
  transform: translateY(-4px);
}

.custom-card-wrapper:hover .custom-card {
  box-shadow: 0 8px 30px rgba(87, 89, 89, 0.12);
  background-color: #E8F1FB; /* Light grey background on hover */
  border-color: #3E72A2; /* Action blue border on hover */
}