.masthead .site-search input {
  padding: 4px 10px;
  width: 175px;
}

.form-horizontal .help-block {
  margin-left: 130px;
  margin-bottom: 1em;
  margin-top: -15px;
  padding-top: 0;
}
@media (max-width: 767px) {
  .form-horizontal .help-block {
    margin-left: 180px;
  }
}
@media (max-width: 480px) {
  .form-horizontal .help-block {
    margin-left: 0;
  }
}

/* lcrnz repeating */

.control-repeating .checkbox.btn {
  display: inline-block;
  position: relative;
  top: 0;
  left: 5px;
  height: 1px;
  width: 10px;
  padding: 3px 8px;

  -webkit-border-radius: 15px;
          border-radius: 15px;
  line-height: 21px;
}

.control-repeating .checkbox.btn input {
  display: none;
  width: auto;
}

@media (max-width: 767px) {
  .form-horizontal .control-repeating:first-child .controls input {
    width: 87%;
  }
}

/* Login form */
.lcnz-login .form-actions {
  border: 0 none;
}

/* =====================================================
   NZBH Custom Theme - Brand Colors and Layout
   ===================================================== */

/* Hero section background - use .homepage .hero for specificity over CKAN's main.css */
.hero,
.homepage .hero { 
  background: lightsteelblue url("/images/homepage-background.jpg") no-repeat center center;
  background-size: cover;
}
.masthead .navigation {
  margin-right: 0;
}

/* =====================================================
   Button Formatting
   ===================================================== */
.btn-primary {
  background-color: #8A8A59;
  background-image: none;
}
a.btn-primary:hover {
  background-color: #656649;
  background-image: none;
}
button.btn.btn-primary:hover {
  background-color: #656649;  
  background-image: none;
}

/* =====================================================
   Links
   ===================================================== */
a {
  color: #8A8A59; 
}
a:hover {
  color: #B21E28; 
}

/* =====================================================
   The "account masthead" bar across the top of the site
   ===================================================== */

/* The user login bar */
.account-masthead {
  background-color: #656649;
}

/* The "bubble" containing the number of new notifications. */
.account-masthead .account .notifications a span {
  background-color: black;
}
/* The text and icons in the user account info. */
.account-masthead .account ul li a {
  color: rgba(255, 255, 255, 0.6);
}
/* The user account info text and icons, when the user's pointer is hovering
   over them. */
.account-masthead .account ul li a:hover {
  color: rgba(255, 255, 255, 0.7);
  background-color: black;
}

/* =====================================================
   The main masthead bar that contains the site logo, nav links, and search
   ===================================================== */

.masthead {
  background-color: #8A8A59; /* = RGB (138, 138, 89) */
  min-height: 55px;
  padding: 0 !important; /* Override CKAN 2.10's 0.5rem padding */
}

/* Logo sizing to match CKAN 2.8 */
.masthead .navbar .logo img {
  max-height: 50px;
}

/* Navigation container padding */
.masthead .navbar {
  padding: 5px 0;
}

/* The "navigation pills" in the masthead (the links to Datasets,
   Organizations, etc) when the user's pointer hovers over them. */
.masthead .navigation .nav-pills li a:hover {
  background-color: rgb(48, 48, 48);
  color: white;
}
/* The "active" navigation pill (for example, when you're on the /dataset page
   the "Datasets" link is active). */
.masthead .navigation .nav-pills li.active a {
  background-color: rgb(74, 74, 74);
}
/* The "box shadow" effect that appears around the search box when it
   has the keyboard cursor's focus. */
.masthead input[type="text"]:focus {
  -webkit-box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
  box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
}

/* Remove the feature image */
div.hero section.featured.media-overlay {
  display: none;
}

/* Style up front page - use div for CKAN 2.10+, header for CKAN 2.8 */
div.hero header,
div.hero .module-promotion > div:first-child {
  background-image: url("/images/Square_image1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 264px;
  padding-top: 15px;
  padding-bottom: 75px;
  border-radius: 3px;
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 2px black;
  text-align: center;
  line-height: 120%;
}

/* Style the search box - override CKAN 2.10 default teal colors */
.homepage .module-search .module-content,
.homepage .module-search .search-form,
.homepage .module-search form.module-content {
  background-color: #8A8A59;
  border-radius: 3px 3px 0 0;
  border-bottom: none;
  padding: 20px;
}

.homepage .module-search .tags {
  background-color: #656649;
  border-radius: 0 0 3px 3px;
  padding: 10px 15px 15px 15px;
  overflow: hidden; /* Clear floated children */
}

.homepage .module-search .tags h3,
.homepage .module-search .tags .h3 {
  display: block;
  float: left;
  font-size: 14px;
  line-height: 24px;
  padding: 2px 8px 2px 0;
  margin: 5px 10px 0 0;
  color: white;
}

/* Tags pill styling */
.homepage .module-search .tags .tag {
  display: block;
  float: left;
  margin: 5px 10px 5px 0;
  background-color: #f6f6f6;
  color: #111;
  padding: 2px 12px;
  border: 1px solid #ddd;
  border-radius: 100px;
  line-height: 20px;
}

.homepage .module-search .tags .tag:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

/* Search heading */
.homepage .module-search .heading {
  margin-top: 0;
  margin-bottom: 7px;
  font-size: 24px;
  line-height: 40px;
  color: white;
}

/* ====================================
   The footer at the bottom of the site
   ==================================== */

.site-footer,
body {
  background-color: #656649;
}
/* The text in the footer. */
.site-footer,
.site-footer label,
.site-footer small {
  color: rgba(255, 255, 255, 0.6);
}
/* The link texts in the footer. */
.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}

/* ====================================
   Homepage Stats Section - match CKAN 2.8 styling
   ==================================== */
.homepage .stats,
.homepage .module-stats {
  margin-top: 20px;
}

.homepage .stats h3,
.homepage .module-stats h3 {
  margin: 0 0 10px 0;
}

.homepage .stats ul,
.homepage .module-stats ul,
.homepage .module-stats .card ul {
  margin: 0;
  list-style: none;
}

.homepage .stats ul li,
.homepage .module-stats ul li,
.homepage .module-stats .card ul li {
  float: left;
  width: 25%;
  font-weight: 300;
}

.homepage .stats ul li a,
.homepage .module-stats ul li a,
.homepage .module-stats .card ul li a {
  display: block;
}

/* Large stat numbers like production */
.homepage .stats ul li a b,
.homepage .module-stats ul li a b,
.homepage .module-stats .card ul li a b {
  display: block;
  font-size: 35px;
  line-height: 1.5;
}

.homepage .stats ul li a:hover,
.homepage .module-stats ul li a:hover,
.homepage .module-stats .card ul li a:hover {
  text-decoration: none;
}

/* Box styling to match CKAN 2.8 */
.homepage .box .inner,
.homepage .module-stats .card {
  padding: 20px 25px;
}

/* ====================================
   Additional Bootstrap 5 overrides for CKAN 2.10
   ==================================== */

/* Container width to match CKAN 2.8 Bootstrap 2 (940px) */
.container,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 940px;
}

/* At tablet size, use fluid width like Bootstrap 2 */
@media (max-width: 979px) {
  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: none;
    width: auto;
  }
}

/* Account masthead spacing */
.account-masthead {
  min-height: 30px;
}

/* Masthead navigation pills */
.masthead .nav-pills > li > a,
.masthead .navigation .nav-pills li a {
  padding: 8px 12px;
}

/* Container consistency */
.homepage [role=main] {
  padding: 20px 0;
}
