/* Village of Hazelton: automatic header menu and section lists */

.vh-nav__menu { display: block; }
.vh-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.vh-menu__item { position: relative; display: flex; align-items: center; gap: 2px; margin: 0; }
.vh-menu__link { padding: 10px 0; color: var(--vh-navy, #14212e); font-size: 17px; font-weight: 600; text-decoration: none; }
.vh-menu__link:hover, .vh-menu__item.is-current > .vh-menu__link { color: var(--vh-navy, #14212e); text-decoration: underline; text-decoration-color: var(--vh-gold, #d9a441); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.vh-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--vh-navy, #14212e); cursor: pointer; }
.vh-menu__toggle:hover { background-color: var(--vh-soft-grey, #f1eee8); }
.vh-menu__toggle:focus-visible, .vh-menu__link:focus-visible, .vh-menu__sublink:focus-visible { outline: 3px solid var(--vh-gold, #d9a441); outline-offset: 2px; border-radius: 6px; }
.vh-menu__toggle svg { transition: transform 0.15s; }
.vh-menu__item.is-open .vh-menu__toggle svg { transform: rotate(180deg); }

.vh-menu__panel { display: none; position: absolute; top: 100%; left: -14px; z-index: 300; min-width: 280px; padding: 10px; border-radius: 12px; background-color: #ffffff; box-shadow: 0 18px 40px rgba(20, 33, 46, 0.18); }
.vh-menu__item.is-open .vh-menu__panel { display: block; }
.vh-menu__sub { margin: 0; padding: 0; list-style: none; }
.vh-menu__sub li { margin: 0; }
.vh-menu__sublink { display: block; padding: 10px 14px; border-radius: 8px; color: var(--vh-navy, #14212e); font-size: 16px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.vh-menu__sublink:hover { background-color: var(--vh-cream, #f4f1eb); color: var(--vh-navy, #14212e); }
.vh-menu__sublink.is-current { background-color: var(--vh-navy, #14212e); color: #ffffff; font-weight: 600; }
.vh-menu__sublink--all { font-weight: 700; color: var(--vh-gold-text, #8a6a1f); }

/* Desktop: open on hover as well as on click */
@media (min-width: 1024px) {
  .vh-menu__item.has-sub:hover .vh-menu__panel, .vh-menu__item.has-sub:focus-within .vh-menu__panel { display: block; }
  .vh-menu__item.has-sub:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}

/* Tablet and phone: the menu sits inside the Menu panel, sections open like an accordion */
@media (max-width: 1023px) {
  .vh-nav__menu { width: 100%; }
  .vh-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .vh-menu__item { flex-wrap: wrap; justify-content: space-between; }
  .vh-menu__link { flex: 1 1 auto; padding: 14px 4px; font-size: 18px; }
  .vh-menu__link:hover, .vh-menu__item.is-current > .vh-menu__link { text-underline-offset: 6px; }
  .vh-menu__toggle { width: 44px; height: 44px; background-color: var(--vh-soft-grey, #f1eee8); }
  .vh-menu__panel { position: static; flex: 0 0 100%; min-width: 0; margin: 0 0 8px; padding: 6px; border-radius: 10px; background-color: var(--vh-cream, #f4f1eb); box-shadow: none; }
  .vh-menu__sublink { padding: 12px 14px; font-size: 17px; }
  .vh-menu__sublink:hover { background-color: #ffffff; }
}

/* Section landing pages: list of the pages in that section */
.vh-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 40px; }
.vh-index__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 12px; background-color: var(--vh-cream, #f4f1eb); color: var(--vh-navy, #14212e); text-decoration: none; transition: background-color 0.15s; }
.vh-index__item:hover { background-color: var(--vh-navy, #14212e); color: #ffffff; }
.vh-index__body { display: block; }
.vh-index__title { display: block; font-family: 'Newsreader', Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.25; }
.vh-index__sub { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--vh-muted, #4a5866); }
.vh-index__item:hover .vh-index__sub { color: var(--vh-footer-text, #c7d0da); }
.vh-index__arrow { font-size: 22px; transition: transform 0.15s; }
.vh-index__item:hover .vh-index__arrow { color: var(--vh-gold, #d9a441); transform: translateX(4px); }
