/* THE HERALD — global announcement banner (profiles-banner lane).
 * Design: hidden_files/profiles-banner-DESIGN.md §4.
 * Site tokens mirrored from styles.css so the module stands alone on any
 * host page: --gold #c9a227, --gold-lt #e8c35a, --bone #ece0c4, --ink #0c0716.
 * Floors: item text .85rem Cinzel at full bone (opacity 1 — reading text),
 * dismiss target 40x40 (the bar's full height). */
.kg-herald {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: stretch;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(180deg, #17102a 0%, #0c0716 55%, #08040f 100%);
  border-top: 1px solid rgba(201, 162, 39, .42);
  border-bottom: 1px solid rgba(201, 162, 39, .42);
  color: #ece0c4;
  font-family: 'Cinzel', serif;
  pointer-events: none; /* never blocks play (§4.3) */
}
.kg-herald-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 .8rem;
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0c0716;
  background: linear-gradient(180deg, #e8c35a, #c9a227);
  white-space: nowrap;
}
.kg-herald-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.kg-herald-track {
  display: flex;
  flex: 0 0 auto;
  white-space: nowrap;
  animation: kg-herald-scroll 30s linear infinite;
}
.kg-herald:hover .kg-herald-track, .kg-herald:focus-within .kg-herald-track { animation-play-state: paused; }
/* The reserved slot (ticker component batch): exactly the bar's box,
 * so swapping slot -> bar moves nothing on the page. */
.kg-herald-slot { height: 40px; }
.kg-herald-pass { display: inline-flex; align-items: center; }
.kg-herald-item {
  font-size: .85rem;
  letter-spacing: .06em;
  padding: 0 .4rem;
  white-space: nowrap;
}
.kg-herald-ico { color: #e8c35a; }
.kg-herald-sep { color: rgba(201, 162, 39, .9); padding: 0 .6rem; font-size: .7rem; }
.kg-herald-x {
  pointer-events: auto; /* the one interactive pixel of the bar */
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #ece0c4;
  font-size: .85rem;
  cursor: pointer;
  opacity: .95;
}
.kg-herald-x:hover, .kg-herald-x:focus-visible { color: #e8c35a; opacity: 1; }
/* Reduced motion: static rotation (§4.4) */
.kg-herald-static { flex: 1 1 auto; display: flex; align-items: center; overflow: hidden; padding-left: .6rem; }
.kg-herald-static .kg-herald-item { display: none; }
.kg-herald-static .kg-herald-item.is-current { display: block; overflow: hidden; text-overflow: ellipsis; }
@keyframes kg-herald-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .kg-herald-track { animation: none; }
}
@media (max-width: 640px) {
  .kg-herald-badge { display: none; } /* the ribbon keeps its full width for names on phones */
  .kg-herald-item { font-size: .82rem; }
}
