/* Base styles for every member page: platform bar + built-in widgets only.
   Members style everything else themselves. */
.gm-skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; }
.gm-skip:focus { left: 1rem; z-index: 2147483647; }
#gm-main:focus { outline: none; }

.gm-bar {
  position: relative; z-index: 2147483647; clear: both;
  margin-top: 2rem; padding: .5rem 1rem;
  background: #000080; color: #fff;
  font: 14px/1.5 Verdana, Tahoma, sans-serif; text-align: center;
}
.gm-bar p { margin: 0; }
.gm-bar a { color: #fff; }
.gm-bar a:focus-visible { outline: 3px solid #ffcc00; outline-offset: 2px; }

/* Marquee: CSS-only, pausable via the checkbox, static for reduced motion. */
.gm-marquee { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; }
.gm-marquee__toggle { margin: 0; }
.gm-marquee__btn { font-size: .8125rem; white-space: nowrap; cursor: pointer; }
.gm-marquee__viewport { overflow: hidden; flex: 1; }
.gm-marquee__track { display: inline-block; white-space: nowrap; padding-left: 100%;
  animation: gm-scroll-left var(--gm-speed, 12s) linear infinite; }
.gm-marquee--right .gm-marquee__track { animation-name: gm-scroll-right; }
.gm-marquee--alternate .gm-marquee__track { padding-left: 0; animation-name: gm-bounce; animation-direction: alternate; }
.gm-marquee--slow { --gm-speed: 20s; }
.gm-marquee--fast { --gm-speed: 6s; }
.gm-marquee__toggle:checked ~ .gm-marquee__viewport .gm-marquee__track { animation-play-state: paused; }
.gm-marquee__toggle:focus-visible { outline: 3px solid #ffcc00; outline-offset: 2px; }
@keyframes gm-scroll-left { to { transform: translateX(-100%); } }
@keyframes gm-scroll-right { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes gm-bounce { to { transform: translateX(calc(-100% + 100cqw)); } }
.gm-marquee__viewport { container-type: inline-size; }

/* Blink: four blinks then stays visible (under WCAG 2.2.2's 5 seconds). */
.gm-blink { animation: gm-blink 1s steps(1, end) 4; }
@keyframes gm-blink { 50% { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .gm-marquee__track, .gm-blink { animation: none !important; padding-left: 0; white-space: normal; transform: none; }
  .gm-marquee__toggle, .gm-marquee__btn { display: none; }
}

/* Screen-reader-only text */
.gm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gm-badge { background: #ffcc00; color: #000; padding: 0 .4rem; font-weight: bold; }

/* Hit counter */
.gm-counter { font: 16px Verdana, sans-serif; }
.gm-counter__digits { font-family: "Courier New", monospace; font-weight: bold; letter-spacing: .1em; padding: .1rem .3rem; }
.gm-counter--odometer .gm-counter__digits { background: #000; color: #fff; border: 2px inset #808080; }
.gm-counter--lcd .gm-counter__digits { background: #1a2a12; color: #9cff6a; border: 2px solid #444; }
.gm-counter--plain .gm-counter__digits { font-weight: bold; }

/* Guestbook */
.gm-guestbook { margin: 1.5rem 0; padding: 1rem; border: 3px ridge #808080; background: #fffff0; color: #000; }
.gm-guestbook a { color: #0000cc; }
.gm-guestbook h2, .gm-guestbook h3 { margin-top: 0; }
.gm-field { margin-bottom: .75rem; }
.gm-field label { display: block; font-weight: bold; }
.gm-field input, .gm-field textarea { font: inherit; width: 100%; max-width: 30rem; padding: .25rem; border: 2px inset #808080; background: #fff; color: #000; }
.gm-error { color: #a00000; font-weight: bold; margin: .25rem 0 0; }
.gm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gm-btn, .gm-midi__btn {
  font: inherit; cursor: pointer; color: #000; background: #c0c0c0; padding: .25rem .9rem;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
}
.gm-btn:active, .gm-midi__btn:active { border-color: #404040 #fff #fff #404040; }
.gm-btn:focus-visible, .gm-midi__btn:focus-visible,
.gm-field input:focus-visible, .gm-field textarea:focus-visible { outline: 3px solid #ffcc00; outline-offset: 2px; box-shadow: 0 0 0 5px #000; }
.gm-guestbook__form { margin-bottom: 1.5rem; }
.gm-guestbook__entries { list-style: none; padding: 0; }
.gm-guestbook__entries li { border-top: 1px dashed #808080; padding: .5rem 0; }
.gm-guestbook__meta { margin: 0; font-size: .875rem; }

/* MIDI player */
.gm-midi { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gm-midi__icon { font-size: 1.25rem; }
.gm-midi__status { font-size: .875rem; }

/* Neighborhood ring in the GeoMillCities bar */
.gm-ring { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
