/*
 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
*/

html {
  height: 100%;
}
/*
body {
  min-height: 100vh;
  margin: 0;

  display: flex;
  flex-direction: column;
}

Main GP wrapper 
.site {
  flex: 1 0 auto;
}

/* Footer stays at bottom */
.site-footer {
  flex-shrink: 0;
}

.wp-block-navigation-link a {
  transition: 0.2s all ease-in-out;
}

.wp-block-navigation-link a:hover {
  color: #D45B20!important;
}

@media (max-width: 426px) {

  /* ---------------------------------
     FULL SCREEN MODAL CONVERSION
  ---------------------------------- */

  .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0;
    z-index: 9999;
    background: transparent !important;
  }

  .wp-block-navigation__responsive-close {
    position: fixed;
    inset: 0;
    display: block;
  }

  .wp-block-navigation__responsive-dialog {
    position: fixed !important;
    inset: 0;
    width: 100vw;
    height: 100dvh; /* handles mobile address bar */
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;

    display: flex;
    flex-direction: column;

    background-color: #485F93 !important;
  }

  /* -----------------------------
     FORCE CLOSE BUTTON VISIBILITY
  ------------------------------ */

  .wp-block-navigation__responsive-container-close {
    position: fixed !important;
    top: 1rem;
    right: 1rem;
    z-index: 10001; /* above dialog */
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wp-block-navigation__responsive-container-close svg {
    width: 28px;
    height: 28px;
    fill: #ffffff !important;
  }

  /* Safety net: ensure dialog never covers it */
  .wp-block-navigation__responsive-dialog {
    z-index: 10000;
  }

  /* ---------------------------------
     CONTENT SCROLLING
  ---------------------------------- */

  .wp-block-navigation__responsive-container-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 4rem; /* space for close button */
  }

  /* ---------------------------------
     CLOSE BUTTON POSITION
  ---------------------------------- */

  .wp-block-navigation__responsive-container-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
  }

}

.gb-side-accents {
  position: relative;
}

.gb-side-accents::before,
.gb-side-accents::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 20%;          /* controls border length */
  width: 2px;           /* border thickness */
  background-color: #485F93;
}

.gb-side-accents::before {
  left: -.75rem;
}

.gb-side-accents::after {
  right: -.75rem;
}

@media screen and (max-width: 426px) {
  .gb-side-accents {
  display: none;
}
}

/* Reset counter */
.wp-block-footnotes {
  counter-reset: footnote;
  padding-left: 0;
}

/* Inline layout */
.wp-block-footnotes li {
  display: inline;
  counter-increment: footnote;
  white-space: nowrap;
}

/* Inject the number */
.wp-block-footnotes li::before {
  content: counter(footnote) ". ";
  font-weight: inherit;
}

/* Add comma + space */
.wp-block-footnotes li::after {
  content: ", ";
}

/* Remove comma on last item */
.wp-block-footnotes li:last-child::after {
  content: "";
}







