/* 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; min-width: 0; }  /* else the flex item grows to the text width on phones */
.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; }
/* Accessible Homestead seal: a sunken Win2000 status field (reads as a label,
   not a button) with a green check. White on #1e7b1e is 5.4:1. */
.gm-seal {
  display: inline-flex; align-items: center; gap: .35em; padding: 0 .5em 0 .25em; vertical-align: middle;
  background: #f2f8f0; color: #000; font-weight: bold; white-space: nowrap;
  border: 1px solid #808080; box-shadow: inset 1px 1px #404040;
}
.gm-seal__icon { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; font-size: .9em; line-height: 1; background: #1e7b1e; color: #fff; border: 1px solid #0d4d0d; }

/* 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; }

/* Blog (blog.html, blog-<post>.html): plain, so the member's look comes through. */
.gm-blognav { font-size: .9em; }
.gm-blogdate { font-size: .9em; font-style: italic; margin-top: 0; }  /* no opacity: it would cut contrast on member colors */
.gm-blogentry { border-bottom: 1px dotted currentColor; padding-bottom: .5rem; margin-bottom: 1rem; }
.gm-comments { margin: 2rem 0 1rem; padding: 1rem; border: 3px ridge #808080; background: #fffff0; color: #000; }
.gm-comments a { color: #0000cc; }
.gm-comments h2 { margin-top: 0; }
.gm-comment { border-bottom: 1px dotted #808080; margin-bottom: .75rem; }
.gm-comment__by { margin-bottom: .25rem; font-weight: bold; }
a.gm-btn { display: inline-block; color: #000; text-decoration: none; }

/* Clip art never wider than the screen (dividers are 400px); keeps the aspect ratio. */
img.gm-asset { max-width: 100%; height: auto; }

/* <gm-critter>: a Canal Critter. Pixel art stays crisp when zoomed. */
.gm-critter img { image-rendering: pixelated; vertical-align: middle; }
