/* Persistent report controls; the host stylesheet owns report/map visibility. */
body { --report-nav-offset: 96px; }
#report-navigation {
  position: sticky;
  top: var(--report-navigation-top, 0px);
  z-index: 1100;
  background: var(--paper, #f8f6f1);
  color: var(--ink, #242b24);
  border-bottom: 1px solid var(--line, #dddeda);
  box-shadow: 0 3px 10px #242b2408;
  font-size: 1rem;
  line-height: 1.5;
}
#report-navigation[hidden], #report-section-menu[hidden] { display: none !important; }
.report-navigation-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1360px;
  min-height: 76px;
  padding: 12px 36px;
  margin: 0 auto;
}
.report-navigation-place {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
#report-place-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 600;
  color: var(--field, #294b3b);
}
.report-navigation-actions { display: flex; flex: 0 0 auto; gap: 6px; }
#report-navigation button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--field, #294b3b);
  font: inherit;
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 500;
}
#report-navigation button:hover { background: var(--soft, #edf1e9); }
#report-navigation button[aria-pressed="true"],
#report-navigation button[aria-pressed="true"]:hover,
#report-sections-toggle[aria-expanded="true"],
#report-sections-toggle[aria-expanded="true"]:hover,
#report-sections-toggle.report-section-selected,
#report-sections-toggle.report-section-selected:hover {
  background: var(--field, #294b3b);
  color: #fff;
}
#report-navigation #report-change-location {
  flex: 0 0 auto;
  padding-inline: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 400;
}
#report-section-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 36px;
  display: block;
  width: min(520px, calc(100% - 72px));
  /* Reserve space for the site header before the report bar becomes sticky. */
  max-height: min(560px, calc(100dvh - var(--report-nav-offset) - 100px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid var(--line, #dddeda);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px #242b241a;
}
#report-section-menu .report-menu-group { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line, #dddeda); }
#report-section-menu h2 { margin: 0 12px 6px; color: var(--field, #294b3b); font: 650 .875rem/1.5 system-ui, sans-serif; }
#report-section-menu .report-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
#report-section-menu a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--field, #294b3b);
  font-size: .875rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#report-section-menu a:hover { background: var(--soft, #edf1e9); text-decoration: underline; text-underline-offset: 3px; }
#report-navigation :is(button, a):focus-visible { outline: 3px solid #b78535; outline-offset: 3px; }
@media (max-width: 760px) {
  body { --report-nav-offset: 144px; }
  .report-navigation-inner { flex-direction: column; align-items: stretch; gap: 4px; min-height: 116px; padding: 6px 16px 10px; }
  .report-navigation-place { justify-content: space-between; gap: 12px; }
  .report-navigation-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 4px; }
  #report-navigation button { padding-inline: 10px; }
  #report-navigation .report-navigation-actions button { min-width: 0; padding-inline: 4px; font-size: .8125rem; white-space: normal; }
  #report-section-menu { right: 16px; width: calc(100% - 32px); }
}
@media (max-width: 360px) {
  #report-section-menu .report-menu-links { grid-template-columns: minmax(0, 1fr); }
}
