h2 {
  font-size: 30px;
}

html {
  color-scheme: light;
}

/* Search dropdown: theme hover uses white text on --code-bg, but we set --code-bg to light grey */
.search_result:not(.passive):hover {
  background-color: rgb(0, 80, 200);
  color: #ffffff;
}

/* Keyboard-selected search result (matches hover style) */
.search_result.search_active {
  background-color: rgb(0, 80, 200);
  color: #ffffff;
}

/* Header styling - restore nice grey background with proper contrast */
.nav_header {
  background-color: #e8e8e8 !important;
}

.nav {
  color: #333333 !important;
}

/* Make icons dark on grey header background */
.nav_header .follow svg,
.nav_header .follow svg use,
.nav_header .follow .icon,
.nav_header .follow .icon svg,
.nav_header .follow a svg,
.nav_header .follow a .icon svg {
  fill: #333333 !important;
  color: #333333 !important;
}

.nav_header .follow a {
  color: #333333 !important;
}

/* Hide LinkedIn text link in desktop nav (icon remains in header) */
@media (min-width: 770px) {
  .nav_parent:has(a[title="LinkedIn"]) {
    display: none;
  }
}

/* Homepage mobile: button grid instead of hamburger nav */
.home-mobile-tools {
  display: none;
}

@media (max-width: 769px) {
  html.home .home-mobile-tools {
    display: block;
    padding: 3.35rem 1.5rem 0;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  html.home .home-mobile-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  html.home .home-mobile-search {
    margin-top: 1.125rem;
  }

  html.home .home-mobile-search .search {
    max-width: none;
    margin: 0;
  }

  html.home .content {
    padding-top: 0.5rem !important;
  }

  html.home .posts {
    margin-top: 0;
  }

  html.home .sidebar .search {
    display: none;
  }

  html.home .home-mobile-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    color: rgb(0, 80, 200);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  html.home .home-mobile-nav__btn:hover {
    color: rgb(0, 40, 100);
    border-color: rgb(0, 80, 200);
  }

  /* Hide hamburger and slide-out nav on homepage mobile */
  html.home .nav_close {
    display: none !important;
  }

  html.home .nav_body {
    display: none !important;
  }

  html.home .nav_brand {
    width: 100%;
  }

  /* Hamburger icon: dark on grey header */
  .nav_close svg {
    fill: #333 !important;
  }

  /* Mobile drawer: light background, readable links */
  .nav_body {
    background-color: #fff !important;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
  }

  .nav_body .nav_item {
    color: rgb(0, 80, 200) !important;
  }

  .nav_body .nav_parent.nav_active {
    background-color: #f0f0f0;
  }

  /* LinkedIn text link in drawer; hide duplicate icon */
  .nav_body .follow a[href*="linkedin"] {
    display: none;
  }
}

.navbar-default .navbar-brand {
   color: rgb(0,80,200);
   font-size: 35px;
}

.navbar-brand:hover {
  color: rgb(0,40,100);
}

a {
  color: rgb(0,80,200);
}

a:hover {
  color: rgb(0,40,100);
}

.label-primary {
    background-color: #bbbbbb;
}

.copyright {
  padding-left:200px;
}

/* Code blocks: readable dark text on light background */
.highlight pre {
  color: #333 !important;
}
.highlight .ln, .highlight .lnt, .highlight .lntd:first-child pre {
  color: rgba(0,0,0,0.35) !important;
}
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.software-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.software-thumb {
  max-width: 180px;
  margin-bottom: 0.9rem;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background-color: #f7f7f7;
  overflow: hidden;
}

.software-thumb img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.software-item h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.software-item p:last-child {
  margin-bottom: 0;
}
