/* A translucent surface with edge highlights over the live page. */
.glass-bar {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  background: #f7f8f2;
  box-shadow: inset 0 1px 1px white, inset 0 -1px 2px rgba(83, 108, 77, .22),
              0 0 0 1px rgba(64, 87, 61, .12), 0 8px 26px rgba(35, 58, 41, .13);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-bar {
    background: linear-gradient(116deg, rgba(255,255,255,.84), rgba(233,243,228,.37) 34%, rgba(255,255,255,.46) 66%, rgba(255,245,216,.65));
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
  }
}
header.legal-bar {
  position: sticky;
  top: 10px;
  z-index: 5;
  padding: 8px 18px;
  margin-block: 12px 20px;
}
.legal-bar .brand img { width: 40px; height: 40px; }
html { scroll-padding-top: 96px; }
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .glass-bar {
    background: Canvas;
    color: CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media print {
  header.legal-bar { position: static; box-shadow: none; }
}

.nav.glass-bar { position: relative; isolation: isolate; }
.glass-bar::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 125px 36px at var(--shine-x, 78%) 0%, rgba(255,255,255,.95), transparent),
              linear-gradient(to bottom, rgba(255,255,255,.45), transparent 32%);
  box-shadow: inset 0 1px 0 white, inset 1px 0 1px rgba(255,255,255,.75);
  z-index: -1;
}
.legal-bar { isolation: isolate; }
.nav-links a { border-radius: 12px; transition: background-color .18s, color .18s; }
.nav-links a::after { display: none; }
.nav-links a:hover, .nav-links a[aria-current="location"] { background: #48693c17; color: #304d29; }
.nav-links a[aria-current="location"] { box-shadow: inset 0 -2px 0 #719063; }
@media (min-width: 961px) {
  .nav-links { gap: clamp(2px, .6vw, 10px); }
  .nav-links a { padding: 8px clamp(6px, .8vw, 13px); }
}
.zoom-trigger, .screen-toolbar button { cursor: pointer; }
.zoom-trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border: 1px solid #b9c8af; border-radius: 24px; color: #35582c; background: #fafcf7;
  font-weight: 700; margin-block: 8px; min-height: 44px;
}
.zoom-trigger:hover { background: #e9efdf; }
dialog.screen-dialog {
  width: min(1080px, 96vw); max-width: 96vw; max-height: 94vh;
  max-height: 94dvh; padding: 0; overflow: hidden; background: #f5f5ef;
}
.screen-toolbar { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: #fffdf8; }
.screen-toolbar h2 { margin: 0; font-size: clamp(14px, 2vw, 20px); flex: 1; }
#screen-zoom { border: 1px solid #c4cfbe; border-radius: 20px; padding: 6px 12px; min-height: 44px; }
#screen-zoom[aria-pressed="true"] { color: white; background: #46643b; }
.screen-scroll { overflow: auto; max-height: 74vh; max-height: 74dvh; overscroll-behavior: contain; }
.screen-scroll img { display: block; margin-inline: auto; width: auto; max-width: 100%; max-height: 74vh; max-height: 74dvh; object-fit: contain; }
.screen-scroll.original img { max-width: none; max-height: none; }
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .glass-bar::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-links a { transition: none; } }
