/* Ethan J. Hulbert — reusable 2026 site header */

.ejh-site-header-2026,
.ejh-menu-overlay-2026 {
  --ejh-2026-ink: #111;
  --ejh-2026-green: #294f38;
  --ejh-2026-green-dark: #173524;
  --ejh-2026-link: #174f8c;
  --ejh-2026-link-hover: #7d266f;
  --ejh-2026-citrus: #ff8a00;
  --ejh-2026-section-hover: #fff3e8;
  --ejh-2026-paper: #fff;
  --ejh-2026-panel: #f5f5f2;
  --ejh-2026-line: #deded9;
}

.ejh-site-header-2026,
.ejh-menu-overlay-2026,
.ejh-menu-overlay-2026 * {
  box-sizing: border-box;
}

.ejh-site-header-2026 {
  position: relative;
  z-index: 50;
  width: 100%;
  background: #fff;
  border-bottom: 7px solid var(--ejh-2026-green);
}

.ejh-header-inner-2026 {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.ejh-logo-link-2026 {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.ejh-logo-2026 {
  display: block;
  width: min(258px, 42vw);
  height: auto;
  margin: 0 !important;
  max-height: none !important;
}

.ejh-menu-button-2026,
.ejh-menu-close-2026,
.ejh-submenu-toggle-2026 {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ejh-2026-ink);
  font: inherit;
  cursor: pointer;
}

.ejh-menu-button-2026 {
  position: fixed;
  top: 21px;
  right: max(10px, calc((100vw - 1180px) / 2 - 12px));
  z-index: 9997;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid var(--ejh-2026-green);
  border-radius: 4px;
  background: #fff;
  opacity: .77;
  font-family: Lato, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ejh-menu-button-2026:hover,
.ejh-menu-button-2026:focus-visible {
  background: #f0f3f0;
}

.ejh-menu-button-2026:focus-visible,
.ejh-menu-close-2026:focus-visible,
.ejh-submenu-toggle-2026:focus-visible,
.ejh-nav-2026 a:focus-visible {
  outline: 3px solid var(--ejh-2026-green);
  outline-offset: 3px;
}

.ejh-menu-icon-2026 {
  width: 23px;
  display: grid;
  gap: 4px;
}

.ejh-menu-icon-2026 span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.ejh-menu-overlay-2026[hidden] {
  display: none !important;
}

.ejh-menu-overlay-2026 {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ejh-menu-scrim-2026 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 17, 17, .32);
  cursor: default;
}

.ejh-menu-panel-2026 {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 24px auto;
  padding: 28px 30px 34px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

.ejh-menu-panel-head-2026 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 5px solid var(--ejh-2026-green);
}

.ejh-menu-title-2026 {
  margin: 0;
  color: #111;
  font-family: Lora, Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: normal;
}

.ejh-menu-close-2026 {
  padding: 8px 0;
  font-family: Lato, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.ejh-menu-open-2026 {
  /* Keep the browser scrollbar and page width stable while the overlay is open. */
  overflow: auto;
}

.ejh-nav-2026,
.ejh-nav-2026 ul,
.ejh-nav-2026 li {
  margin: 0;
  padding: 0;
  letter-spacing: normal;
}

.ejh-nav-2026 ul {
  list-style: none;
}

.ejh-menu-list-2026 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* Every top-level menu item reads as a section/card. For the cleanest
   layout, make all top-level items parent headings in WP (e.g. START HERE). */
.ejh-menu-list-2026 > li {
  min-width: 0;
  padding: 18px 20px 19px;
  background: #eeeeea;
  border: 1px solid #c4c4bd;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(17, 17, 17, .03);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

@media (min-width: 800px) {
  .ejh-menu-list-2026 > li:hover {
    background: #ffe7d2;
    border-color: #dfa774;
    box-shadow: 0 4px 12px rgba(92, 57, 22, .11);
  }
}

.ejh-nav-2026 a {
  text-decoration: none;
  letter-spacing: normal;
}

/* Group headings: black, editorial, visibly not the same treatment as links. */
.ejh-menu-list-2026 > li > a {
  display: inline-block;
  margin: 0 0 10px;
  color: #111;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

/* If a standalone top-level link still exists, make it visibly clickable. */
.ejh-menu-list-2026 > li:not(.menu-item-has-children) > a {
  margin-bottom: 0;
  color: var(--ejh-2026-link);
  text-decoration: none;
}

.ejh-menu-list-2026 > li:not(.menu-item-has-children) > a:hover,
.ejh-menu-list-2026 > li:not(.menu-item-has-children) > a:focus-visible {
  color: var(--ejh-2026-link-hover);
  text-decoration: none;
}

.ejh-menu-list-2026 > li:not(.menu-item-has-children) > a:active {
  color: var(--ejh-2026-citrus);
}

.ejh-menu-list-2026 .sub-menu {
  display: block;
  position: static;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ejh-menu-list-2026 .sub-menu li {
  margin: 0 !important;
  padding: 0;
}

.ejh-menu-list-2026 .sub-menu a {
  display: block;
  padding: 6px 0;
  color: var(--ejh-2026-link);
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.ejh-menu-list-2026 .sub-menu a:hover,
.ejh-menu-list-2026 .sub-menu a:focus-visible {
  color: var(--ejh-2026-link-hover);
  text-decoration: none;
}

.ejh-menu-list-2026 .sub-menu a:active {
  color: var(--ejh-2026-citrus);
}

.ejh-menu-list-2026 > .menu-item-has-children > a[href="#"] {
  pointer-events: none;
  cursor: default;
}

.ejh-submenu-toggle-2026 {
  display: none;
}

.ejh-menu-setup-note-2026 {
  padding: 16px;
  border: 1px dashed var(--ejh-2026-green);
  font: 16px/1.5 Lato, Arial, sans-serif;
  letter-spacing: normal;
}

/* Keep the chair easter egg self-contained even after the legacy CSS is eventually dismantled. */
.chair-image {
  position: fixed;
  display: none;
  width: 250px;
  transition: opacity .2s ease;
  pointer-events: none;
}

@media (max-width: 799px) {
  .ejh-site-header-2026 {
    border-bottom-width: 6px;
  }

  .ejh-header-inner-2026 {
    width: min(100% - 24px, 720px);
    min-height: 88px;
    gap: 14px;
    padding: 9px 0;
  }

  .ejh-logo-2026 {
    width: min(218px, 55vw);
    transform: translateX(-8px);
  }

  .ejh-menu-button-2026 {
    top: 23px;
    right: 12px;
    min-height: 42px;
    padding: 8px 10px;
  }

  .ejh-menu-button-label-2026 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ejh-menu-panel-2026 {
    width: calc(100vw - 20px);
    max-width: none;
    max-height: calc(100vh - 20px);
    margin: 10px;
    padding: 20px 14px 24px;
    border-radius: 7px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
  }

  .ejh-menu-panel-head-2026 {
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 2px 14px;
    border-bottom-width: 4px;
  }

  .ejh-menu-title-2026 {
    font-size: clamp(25px, 8vw, 31px);
  }

  .ejh-menu-close-2026 {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .ejh-menu-list-2026 {
    display: block;
  }

  .ejh-menu-list-2026 > li {
    position: relative;
    margin: 0 0 11px;
    padding: 0;
    overflow: hidden;
    background: var(--ejh-2026-panel);
    border: 1px solid var(--ejh-2026-line);
    border-radius: 7px;
  }

  .ejh-menu-list-2026 > li:last-child {
    margin-bottom: 0;
  }

  .ejh-menu-list-2026 > li > a {
    display: block;
    margin: 0;
    padding: 14px 48px 14px 14px;
    font-size: 18px;
    line-height: 1.2;
  }

  .ejh-menu-list-2026 > li:not(.menu-item-has-children) > a {
    padding-right: 14px;
  }

  .ejh-menu-list-2026 > .menu-item-has-children > a[href="#"] {
    pointer-events: auto;
    cursor: pointer;
  }

  .ejh-submenu-toggle-2026 {
    display: grid;
    place-items: center;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 1px solid #cfcfca;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
  }

  .ejh-submenu-toggle-2026 span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-1px);
  }

  .ejh-menu-list-2026 .sub-menu {
    display: none;
    margin: 0 !important;
    padding: 4px 14px 13px !important;
    border-top: 1px solid #deded9;
    background: #fff !important;
  }

  .ejh-menu-list-2026 .menu-item-has-children.is-open-2026 > .sub-menu {
    display: block;
  }

  .ejh-menu-list-2026 .sub-menu a {
    padding: 9px 2px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chair-image {
    transition: none;
  }
}
