h1, h2, h3, h4, h5 {
  text-transform: none;
  scroll-margin-top: 3em;
}
body {
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Google Custom Search Engine (CSE) overrides 
   ========================================================================== */

/* 1. Main Searchbox Wrapper */
.searchbox {
  margin: 10px 0 !important;
}

/* 2. Google's injected container (This kills the massive whitespace) */
.gsc-control-cse {
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  border: none !important;
}

/* 3. Strip layout margins/padding from Google's archaic tables */
form.gsc-search-box,
table.gsc-search-box,
.gsc-search-box-tools table.gsc-search-box td {
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* 4. Input field styling */
input.gsc-input {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  padding: 8px !important;
  box-shadow: none !important;
}

/* 5. Button styling */
button.gsc-search-button,
.gsc-search-button-v2 {
  background-color: #007bff !important;
  border: 1px solid #007bff !important;
  border-radius: 3px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
}
.gsc-search-button-v2 svg {
  fill: #fff !important;
}

/* 6. Results Formatting (Globally scoped so it works in Google's overlay) */
.gsc-result-info {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #666 !important;
  padding-left: 0 !important;
}

.gs-result {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eee !important;
}

.gs-title {
  color: #0066cc !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  margin-bottom: 2px !important;
}

.gs-title:hover {
  text-decoration: underline !important;
}

.gs-snippet {
  color: #555 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin-top: 2px !important;
}

/* 7. HIDE BREADCRUMBS (Globally scoped) */
.gsc-url-top,
.gsc-url-bottom,
.gs-visibleUrl,
.gs-visibleUrl-short {
  display: none !important;
}