/* Spooky Isles publication masthead — WPVibe draft */
:root {
  --si-header-green: #05590d;
  --si-header-green-dark: #034709;
  --si-header-green-hover: #0a6f14;
  --si-header-cream: #f7f7f2;
  --si-header-border: rgba(255,255,255,.18);
}

#masthead,
#site-navigation,
.navigation-clone {
  display: none !important;
}

.si-news-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100%;
  background: var(--si-header-green);
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.admin-bar .si-news-header {
  top: 32px;
}

.si-news-header__inner {
  width: min(100% - 40px, 1200px);
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 48px;
  align-items: center;
  column-gap: 20px;
}

.si-news-header__brand {
  display: flex;
  align-items: center;
  justify-self: start;
  line-height: 1;
}

.si-news-header__brand img {
  display: block;
  width: 250px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.si-news-header__desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 2px;
  min-width: 0;
}

.si-news-header__desktop-nav > a,
.si-more-menu > summary {
  min-height: 88px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  text-decoration: none !important;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 4px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}

.si-news-header__desktop-nav > a:hover,
.si-news-header__desktop-nav > a:focus-visible,
.si-more-menu > summary:hover,
.si-more-menu > summary:focus-visible,
.si-more-menu[open] > summary {
  background: var(--si-header-green-dark);
  border-bottom-color: #fff;
}

.si-more-menu,
.si-header-search,
.si-mobile-menu {
  position: relative;
  margin: 0;
}

.si-more-menu > summary,
.si-header-search > summary,
.si-mobile-menu > summary {
  list-style: none;
}

.si-more-menu > summary::-webkit-details-marker,
.si-header-search > summary::-webkit-details-marker,
.si-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.si-more-menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.si-more-menu__panel {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dedede;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.si-more-menu__panel a {
  display: block;
  padding: 11px 12px;
  color: #202020 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
}

.si-more-menu__panel a:hover,
.si-more-menu__panel a:focus-visible {
  color: var(--si-header-green) !important;
  background: #f2f5f1;
}

.si-news-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  margin: 0;
}

.si-header-search > summary {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  border-radius: 2px;
}

.si-header-search > summary:hover,
.si-header-search > summary:focus-visible,
.si-header-search[open] > summary {
  background: var(--si-header-green-dark);
}

.si-header-search svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.si-header-search__panel {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  width: min(360px, calc(100vw - 30px));
  padding: 14px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.si-header-search__panel form {
  display: flex;
  gap: 8px;
  margin: 0;
}

.si-header-search__panel input[type="search"] {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #bdbdbd;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.si-header-search__panel button {
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--si-header-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.si-news-header__mobile-row,
.si-mobile-strip,
.si-mobile-menu {
  display: none;
}

@media (min-width: 981px) {
  #secondary-navigation .inside-navigation {
    min-height: 34px;
  }

  #secondary-navigation .main-nav > ul > li > a {
    line-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 14px;
  }

  .si-news-header__inner {
    min-height: 84px;
    grid-template-columns: 265px minmax(0, 1fr) 48px;
  }

  .si-news-header__brand img {
    width: 265px;
    max-height: 78px;
  }

  .si-news-header__desktop-nav > a,
  .si-more-menu > summary {
    min-height: 84px;
  }

  .si-anniv-sitebar a {
    padding: 7px 24px !important;
    gap: 12px !important;
  }

  .si-anniv-sitebar img {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  body.page-id-109033 .si-home {
    padding-top: 12px !important;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .si-news-header__inner {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 205px minmax(0, 1fr) 44px;
    column-gap: 10px;
  }

  .si-news-header__brand img {
    width: 205px;
  }

  .si-news-header__desktop-nav > a,
  .si-more-menu > summary {
    padding-inline: 8px;
    font-size: 12.5px;
    letter-spacing: .02em;
  }
}

@media (max-width: 980px) {
  .si-news-header {
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
  }

  .admin-bar .si-news-header {
    top: 46px;
  }

  .si-news-header__inner {
    width: 100%;
    min-height: 0;
    display: block;
  }

  .si-news-header__brand,
  .si-news-header__desktop-nav,
  .si-news-header__actions {
    display: none;
  }

  .si-news-header__mobile-row {
    min-height: 60px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
  }

  .si-mobile-menu {
    display: block;
    position: static;
  }

  .si-mobile-menu > summary {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 2px;
  }

  .si-mobile-menu > summary:hover,
  .si-mobile-menu > summary:focus-visible,
  .si-mobile-menu[open] > summary {
    background: var(--si-header-green-dark);
  }

  .si-mobile-menu__icon,
  .si-mobile-menu__icon::before,
  .si-mobile-menu__icon::after {
    width: 24px;
    height: 2px;
    display: block;
    background: #fff;
    content: "";
  }

  .si-mobile-menu__icon {
    position: relative;
  }

  .si-mobile-menu__icon::before {
    position: absolute;
    top: -7px;
    left: 0;
  }

  .si-mobile-menu__icon::after {
    position: absolute;
    top: 7px;
    left: 0;
  }

  .si-mobile-menu__panel {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 8px 14px 14px;
    background: var(--si-header-green-dark);
    border-top: 1px solid var(--si-header-border);
    box-shadow: 0 12px 24px rgba(0,0,0,.2);
  }

  .si-mobile-menu__panel a {
    display: block;
    padding: 13px 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .015em;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .si-mobile-menu__panel a:last-child {
    border-bottom: 0;
  }

  .si-news-header__mobile-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  .si-news-header__mobile-logo img {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
  }

  .si-news-header__mobile-search {
    justify-self: end;
  }

  .si-news-header__mobile-search .si-header-search__panel {
    top: 52px;
    right: 8px;
  }

  .si-mobile-strip {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    border-top: 1px solid var(--si-header-border);
    background: var(--si-header-green);
  }

  .si-mobile-strip::-webkit-scrollbar {
    display: none;
  }

  .si-mobile-strip a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .015em;
    text-transform: uppercase;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.12);
  }

  .si-mobile-strip a:hover,
  .si-mobile-strip a:focus-visible {
    background: var(--si-header-green-dark);
  }
}

@media (max-width: 600px) {
  .admin-bar .si-news-header {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .si-news-header__desktop-nav > a,
  .si-more-menu > summary {
    transition: none;
  }
}
