/* Persistent report controls; the host stylesheet owns report/map visibility. */
:root, body { --report-nav-offset: 96px; }
html:has(body.report-active) { scroll-padding-top: var(--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],
#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;
  cursor: pointer;
}
#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(600px, calc(100% - 72px));
  max-height: min(620px, calc(100dvh - var(--report-nav-offset, 96px) - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid var(--line, #dddeda);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px #242b241a;
}
.report-menu-search {
  position: sticky;
  top: -12px;
  z-index: 2;
  margin: -12px -12px 8px;
  padding: 12px 12px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line, #dddeda);
}
#report-section-filter {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #c5cdc2;
  border-radius: 6px;
  background: #faf9f5;
  color: var(--ink, #242b24);
  font: 400 .875rem/1.4 system-ui, sans-serif;
}
#report-section-filter:focus-visible {
  outline: 3px solid #b78535;
  outline-offset: 2px;
  background: #fff;
}
.report-menu-empty {
  margin: 8px 2px 0;
  font-size: .875rem;
  color: var(--muted, #5c655c);
}
#report-section-menu .report-menu-group {
  margin-top: 6px;
  border-top: 1px solid var(--line, #dddeda);
  padding-top: 6px;
}
#report-section-menu .report-menu-group:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
#report-section-menu .report-menu-group > summary,
#report-section-menu h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--field, #294b3b);
  font: 650 .875rem/1.4 system-ui, sans-serif;
  cursor: pointer;
  list-style: none;
}
#report-section-menu .report-menu-group > summary::-webkit-details-marker { display: none; }
#report-section-menu .report-menu-group > summary::after {
  content: "▾";
  font-size: .8125rem;
  color: var(--muted, #5c655c);
  transition: transform .12s ease;
}
#report-section-menu .report-menu-group:not([open]) > summary::after {
  transform: rotate(-90deg);
}
#report-section-menu .report-menu-group > summary:hover {
  background: var(--soft, #edf1e9);
}
.report-menu-count {
  margin-left: auto;
  margin-right: 4px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted, #5c655c);
}
#report-section-menu .report-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 2px 0 6px;
}
#report-section-menu a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 5px;
  color: var(--field, #294b3b);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#report-section-menu a:hover { background: var(--soft, #edf1e9); text-decoration: underline; text-underline-offset: 3px; }
#report-section-menu a[aria-current="true"] {
  background: #e6efe8;
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--field, #294b3b);
}
#report-section-menu a[data-outside-nation="true"] {
  color: var(--muted, #5c655c);
}
.report-menu-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #cfd6c9;
  background: #f5f7f3;
  color: var(--muted, #556055);
  font: 500 .6875rem/1.35 system-ui, sans-serif;
  white-space: nowrap;
}
#report-section-menu a[data-outside-nation="true"] .report-menu-badge {
  border-color: #d8c8a8;
  background: #fbf6eb;
  color: #6b5322;
}
#report-navigation :is(button, a, summary):focus-visible { outline: 3px solid #b78535; outline-offset: 3px; }
@media (max-width: 760px) {
  :root, body { --report-nav-offset: 136px; }
  .report-navigation-inner { flex-direction: column; align-items: stretch; gap: 4px; min-height: 112px; 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); max-height: min(560px, calc(100dvh - var(--report-nav-offset, 136px) - 16px)); }
}
@media (max-width: 540px) {
  #report-section-menu .report-menu-links { grid-template-columns: minmax(0, 1fr); }
}
