/*
 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: 3.6.1
*/

/* --------------------------------------------------------------------------
   0. THEME TOKENS (remove this block if these already exist elsewhere,
      e.g. in a global :root in your main stylesheet)
   -------------------------------------------------------------------------- */
:root {
  --navy: #0B1F44;
  --coral: #F16A3B;
  --coral-hover: #FF7E52;
  --mist: #AEBEDD;
  --mist-dim: #7E8FB5;
  --line: rgba(255, 255, 255, .10);
  --white: #FFFFFF;
}

/* --------------------------------------------------------------------------
   9. SEARCH WIDGET
   -------------------------------------------------------------------------- */
#search-widget {
  position: relative;
  display: inline-block;
}

#searchform {
  position: relative;
  display: flex;
  align-items: center;
}

#search-bar {
  width: 220px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 40px 7px 16px;
  font-size: 13.5px;
  color: var(--white);
  transition: width .2s ease, background .16s ease, border-color .16s ease;
}

#search-bar::placeholder {
  color: var(--mist-dim);
}

#search-bar:focus {
  outline: none;
  width: 230px;
  background: rgba(255, 255, 255, .10);
  border-color: var(--coral);
}

#search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: transparent;
  padding: 0 !important;
  border: none;
  color: var(--mist);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .16s ease, color .16s ease;
}

#search-button:hover,
#search-button:focus-visible {
  background-color: var(--coral);
  color: var(--white);
  outline: none;
}

#search-button:focus-visible {
  box-shadow: 0 0 0 2px var(--coral-hover);
}

#search-button svg {
  width: 14px;
  height: 14px;
}

#search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 240px;
  border: 1px solid rgba(11, 31, 68, .08);
  border-radius: 12px;
  background-color: var(--white);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 16px 36px -12px rgba(11, 31, 68, .28);
  display: none;
  padding: 6px;
}

#search-suggestions.show {
  display: block !important;
}

.suggestion-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  transition: background-color .14s ease, color .14s ease;
}

.suggestion-item:hover {
  background-color: var(--coral);
  color: var(--white);
}

.suggestion-item.no-results {
  font-style: italic;
  color: #888;
  cursor: default;
}

.suggestion-item.no-results:hover {
  background-color: transparent;
  color: #888;
}