/* Homepage visitor map (data: GA4 Data API, country-level aggregates only). */
.gavm { margin: 2.5rem 0 0; }
.gavm h2 { margin: 0 0 .35rem; }
.gavm-sub { margin: 0 0 1rem; font-size: .9rem; color: #666; }
.gavm-wrap { position: relative; }
.gavm-map { width: 100%; }
.gavm-map svg { display: block; width: 100%; height: auto; }
.gavm-map path { fill: #eef0f2; stroke: #fff; stroke-width: .5; transition: fill .12s ease; }
.gavm-map path.v1 { fill: #dbe5f1; }
.gavm-map path.v2 { fill: #b8cce4; }
.gavm-map path.v3 { fill: #8db3e2; }
.gavm-map path.v4 { fill: #4f81bd; }
.gavm-map path.v5 { fill: #17365d; }
.gavm-map path.on { stroke: #17365d; stroke-width: 1.1; }

.gavm-tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  transform: translate(-50%, -125%); transition: opacity .1s ease;
  background: #17365d; color: #fff; border-radius: 3px;
  padding: .35rem .6rem; font-size: .85rem; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gavm-tip.show { opacity: 1; }
.gavm-tip b { display: block; font-weight: bold; }

.gavm-foot {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  align-items: flex-start; justify-content: space-between; margin-top: 1rem;
}
.gavm-legend { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: #666; }
.gavm-legend i { display: block; width: 26px; height: 11px; }
.gavm-top { margin: 0; padding: 0; list-style: none; font-size: .9rem;
            display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
            gap: .2rem 1.5rem; flex: 1 1 100%; }
.gavm-top li { display: flex; justify-content: space-between; gap: 1rem;
               padding: .22rem 0; border-bottom: 1px dotted #e6e6e6; }
.gavm-top span:last-child { color: #17365d; font-weight: bold; white-space: nowrap; }
.gavm-note { flex: 1 1 100%; margin: .35rem 0 0; font-size: .78rem; color: #8a8a8a; }
@media (max-width: 600px) { .gavm-legend { order: 2; } }

/* Sidebar usage block (same visitors.json as the map). */
#ojs-usage-stats { font-size: .9rem; }
#ojs-usage-stats dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; }
#ojs-usage-stats dt { margin: 0; color: #555; }
#ojs-usage-stats dd { margin: 0; text-align: right; font-weight: bold; color: #17365d; white-space: nowrap; }
#ojs-usage-stats .ous-since { margin: .55rem 0 0; font-size: .75rem; color: #8a8a8a; }
