
/* === Shared Decade Dropdown & Headline Styles === */

#top-right-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 999;
}

/* Home link */
#top-right-controls a.home-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background: rgba(0,0,0,0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  transition: background 0.2s;
}
#top-right-controls a.home-link:hover {
  background: rgba(255,255,255,0.2);
}

/* Decade dropdown */
#decade-select {
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:0.5rem 2.5rem 0.5rem 0.75rem;
  border-radius:9999px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color:#fff;
  font-size:1rem;
  line-height:1.25rem;
}
#decade-select:focus {
  outline:2px solid rgba(255,255,255,0.6);
  outline-offset:2px;
}
#decade-select option {
  color:#111;
}
#decade-select::-ms-expand {
  display:none;
}
#decade-select {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.2));
  background-position: calc(100% - 18px) calc(50% - 3px),
                      calc(100% - 12px) calc(50% - 3px),
                      0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

/* Headline link colors */
.headlines a {
  color: #fff !important;
  text-decoration: none;
}
.headlines a:hover, .headlines a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.headlines li {
  margin: 0.5rem 0;
}


/* === Wordmark gentle color rotation === */
.wordmark {
  color: #fff !important;
  /* animation removed */: wordmark-fade 6s ease-in-out infinite alternate;
}

  100% { color: rgba(217,184,105,0.35); }
}


/* === Wordmark gentle color rotation (strong selector) === */
.wordmark, .wordmark *, .wordmark a {
  color: #ffffff !important;
  /* animation removed */-name: wordmark-fade;
  /* animation removed */-duration: 6s;
  /* animation removed */-iteration-count: infinite;
  /* animation removed */-direction: alternate;
  /* animation removed */-timing-function: ease-in-out;
  will-change: color;
}

  100% { color: rgba(217,184,105,0.35); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wordmark, .wordmark *, .wordmark a { /* animation removed */: none; }
}


/* === Wordmark multi-stop gold wave === */
.wordmark, .wordmark *, .wordmark a, .wordmark svg, .wordmark svg *, .wordmark [class*="logo"] {
  color: #ffffff;
  fill: currentColor !important;
  -webkit-text-fill-color: currentColor;
  /* animation removed */-name: wordmark-goldwave;
  /* animation removed */-duration: 10s;
  /* animation removed */-iteration-count: infinite;
  /* animation removed */-direction: alternate;
  /* animation removed */-timing-function: ease-in-out;
  will-change: color, fill;
}

  35%  { color: rgba(217,184,105,0.35); }
  50%  { color: rgba(217,184,105,0.55); }
  65%  { color: rgba(217,184,105,0.35); }
  100% { color: #ffffff; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark, .wordmark *, .wordmark a, .wordmark svg, .wordmark svg * {
    /* animation removed */: none !important;
  }
}


/* === Solid gold wordmark === */
.wordmark, .wordmark *, .wordmark a, .wordmark svg, .wordmark svg * {
  color: rgb(217,184,105) !important;
  fill: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
}


/* === Mobile optimizations === */
html, body { margin: 0; }
img, video, canvas, iframe { max-width: 100%; height: auto; }
#main { box-sizing: border-box; padding: 1rem; }
.headlines { padding-left: 1.1rem; }
.headlines li { line-height: 1.35; }

/* Top-right controls responsiveness */
#top-right-controls { position: fixed; top: 12px; right: 12px; gap: 0.5rem; }
#top-right-controls a.home-link { padding: 0.4rem 0.7rem; }
#decade-select { font-size: 0.95rem; padding: 0.45rem 2.2rem 0.45rem 0.65rem; }

/* Avoid overlap with fixed controls on small screens */
@media (max-width: 640px) {
  body { padding-top: 56px; }
}

/* Long lines and tables */
pre, code { white-space: pre-wrap; word-wrap: break-word; }
table { width: 100%; display: block; overflow-x: auto; }
