/* JamaicaRepo site header menu (shared by every page). */
.jr-nav { position: sticky; top: 0; z-index: 50; background: #1C4B35; height: 52px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif; box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.jr-nav .nav-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 900; color: #fff; text-decoration: none; white-space: nowrap; }
.jr-nav .nav-logo em { font-style: normal; color: #E8A020; }
.jr-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.jr-links li { list-style: none; }
.jr-links a, .jr-head { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px;
  font: 500 14px/1 'DM Sans', system-ui, sans-serif; color: rgba(255,255,255,0.88); text-decoration: none;
  background: none; border: 0; cursor: pointer; }
.jr-links a:hover, .jr-head:hover, .jr-links a[aria-current="page"] { color: #E8A020; }
.jr-links a:focus-visible, .jr-head:focus-visible, .jr-toggle:focus-visible { outline: 3px solid #E8A020; outline-offset: 1px; }
.jr-head::after { content: ''; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.jr-group { position: relative; }
.jr-group ul { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; margin: 0; padding: 6px 0;
  background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.jr-group:hover ul, .jr-group:focus-within ul, .jr-group.open ul { display: block; }
.jr-group ul a { color: #1C4B35; border-radius: 0; padding: 0 16px; }
.jr-group ul a:hover, .jr-group ul a[aria-current="page"] { background: #FDF6E8; color: #1C4B35; }
.jr-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35); background: none; color: #fff; font: 600 14px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; }
@media (max-width: 820px) {
  .jr-nav { padding: 0 18px; }
  .jr-toggle { display: flex; }
  .jr-links { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 0 14px; background: #1C4B35; box-shadow: 0 10px 20px rgba(0,0,0,0.25); max-height: calc(100vh - 52px); overflow-y: auto; }
  .jr-nav.open .jr-links { display: flex; }
  .jr-links a, .jr-head { padding: 0 18px; border-radius: 0; }
  .jr-head { color: #E8A020; font-weight: 700; cursor: default; }
  .jr-head::after { display: none; }
  .jr-group ul { display: block; position: static; min-width: 0; padding: 0; background: none; box-shadow: none; }
  .jr-group ul a { color: rgba(255,255,255,0.88); padding-left: 34px; }
  .jr-group ul a:hover, .jr-group ul a[aria-current="page"] { background: rgba(255,255,255,0.06); color: #E8A020; }
}

/* Keep the menu above sticky page bars (e.g. the homepage filter bar, z-index 100)
   but below pop-up dialogs (z-index 1000) and the cookie bar. The doubled class
   beats page styles that set .topnav { z-index: 100 }. */
.jr-nav.topnav { position: sticky; top: 0; z-index: 900; }
@media (max-width: 820px) {
  .jr-links { max-height: calc(100vh - 52px); max-height: calc(100dvh - 52px); overscroll-behavior: contain; }
  html.jr-menu-open, html.jr-menu-open body { overflow: hidden; }
}
