/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* Donate button */
.main-navigation .main-nav ul li.second-chance-donate > a {
  background: #c92a4b;
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 6px 0;
  line-height: 1.4;
}

/* Darker Donate button on hover, focus and its active page */
.main-navigation .main-nav ul li.second-chance-donate > a:hover,
.main-navigation .main-nav ul li.second-chance-donate > a:focus,
.main-navigation .main-nav ul li.second-chance-donate.current-menu-item > a {
  background: #a61e3c;
  color: #fff;
}

/* Desktop screens */
@media (min-width: 1025px) {

  /* Wider menu area with space underneath */
  #site-navigation .inside-navigation {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
    padding-bottom: 40px !important;
    box-sizing: border-box;
  }

  /* Space between Donate and search */
  #site-navigation .menu-bar-items {
    margin-left: 24px;
  }

  /* Dropdown background, border and shadow */
  .main-navigation .main-nav ul ul {
    background: #fff;
    border: 1px solid #e9dfd8;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  /* Space around each dropdown link */
  .main-navigation .main-nav ul ul li a {
    padding: 12px 14px;
    line-height: 1.45;
    border-radius: 6px;
  }
}

/* Help the menu fit on smaller laptops */
@media (min-width: 1025px) and (max-width: 1279px) {
  #site-navigation .main-nav > ul > li > a {
    font-size: 18px;
    padding-inline: 10px;
  }

  /* Smaller gap before search */
  #site-navigation .menu-bar-items {
    margin-left: 12px;
  }
}

/* Keep the search box attached to its icon */
.sc-header-search {
  position: relative;
  flex: 0 0 auto;
}

/* Search icon */
.sc-header-search > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #c92a4b;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

/* Remove the browser's default arrow */
.sc-header-search > summary::-webkit-details-marker {
  display: none;
}

/* Show keyboard users which control is selected */
.sc-header-search > summary:focus-visible {
  outline: 2px solid #c92a4b;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Search box beneath the icon */
.sc-header-search > form {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(380px, calc(100vw - 40px));
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #eee7e2;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

/* Let the search field fill the available space */
.sc-header-search form label {
  flex: 1;
  min-width: 0;
}

/* Search text field */
.sc-header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 10px;
  font-size: 16px;
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Search button */
.sc-header-search button {
  flex-shrink: 0;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.4;
  background: #c92a4b;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

/* Darker Search button on hover and keyboard focus */
.sc-header-search button:hover,
.sc-header-search button:focus-visible {
  background: #a61e3c;
}

/* Hide search on phones and tablets */
@media (max-width: 1024px) {
  .sc-header-search {
    display: none !important;
  }
}

/* Space above categories */
.entry-meta {
  margin-bottom: 25px;
}

/* Space above post navigation */
.post-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-bottom: 10px;
}

.post-navigation a {
  background: #fbf7f2;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #eee;
  color: #c92a4b;
  font-weight: 500;
  flex: 1;
  display: block;
  line-height: 1.4;
  overflow: visible;
}

.post-navigation a:hover {
  background: #f3eaea;
  border-color: #c92a4b;
}

/* Hide default floating arrows */
.post-navigation .nav-previous .gp-icon,
.post-navigation .nav-next .gp-icon {
  display: none;
}

/* Add arrows inside buttons */
.post-navigation .nav-previous a:before {
  content: "← ";
}

.post-navigation .nav-next a:after {
  content: " →";
}

.cat-links:before {
  content: "Category:";
  margin-right: 6px;
  color: #777;
  font-size: 0.85rem;
}

.cat-links {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 25px;
}

.cat-links .gp-icon {
  display: none;
}

.cat-links a {
  background: #fbf7f2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #eee;
  color: #c92a4b;
}

.cat-links a:hover {
  background: #c92a4b;
  color: #fff;
}

.entry-content p {
  margin-bottom: 1.4em;
  line-height: 1.7;
}

.entry-content h2 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.entry-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.entry-content img {
  margin: 25px 0;
  border-radius: 8px;
}

.single-post article.category-living .entry-header .entry-meta,
.single-post article.category-stories .entry-header .entry-meta,
.single-post article.category-people .entry-header .entry-meta,
.single-post article.category-recipes .entry-header .entry-meta {
  display: none !important;
}