/* Homepage header accent and edge-to-edge temple name preview ticker. */
.home-page {
  --site-gutter: clamp(12px, 1.2vw, 24px);
}

.home-page .home-pad {
  padding-inline: clamp(14px, 1.4vw, 28px);
}

.home-page .home-hero {
  column-gap: clamp(24px, 4vw, 66px);
}

.home-page .home-header {
  padding-inline: clamp(14px, 1.4vw, 28px);
  background: linear-gradient(115deg, #fffefa 0%, #fff 52%, #fffcf5 100%);
  border-bottom: 1px solid #eadbbd;
  box-shadow: 0 2px 11px rgba(119, 84, 23, .04);
}

.home-page .home-brand > span {
  background: #fffaf0;
  color: #b7852f;
  border: 1px solid #d7b979;
}

.home-page .home-nav a:first-child {
  position: relative;
  color: #8d5d1b !important;
  font-weight: 700;
}

.home-page .home-nav a:first-child::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -25px;
  background: #bc8c34;
  border-radius: 100px;
}

.temple-ticker {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 62px;
  overflow: hidden;
  background: #fffcf6;
  border-bottom: 1px solid #eee1cb;
  box-shadow: inset 0 4px 14px rgba(179, 130, 45, .025);
  font-family: 'Noto Sans Telugu', system-ui, sans-serif;
}

.temple-ticker-label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  z-index: 1;
  padding: 0 clamp(13px, 1.9vw, 31px);
  background: #fffcf6;
  color: #91601c;
  font-weight: 700;
  font-size: clamp(12px, .95vw, 15px);
  white-space: nowrap;
  border-right: 1px solid #ddc79e;
}

.temple-ticker-label small {
  display: inline-block;
  margin-left: 5px;
  font-size: 8px;
  font-weight: 700;
  color: #9d8969;
  letter-spacing: .08em;
  vertical-align: 1px;
}

.ticker-live-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bd8c29;
  box-shadow: 0 0 0 6px #f7ecd2;
  flex-shrink: 0;
}

.temple-ticker-viewport {
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 19px, black calc(100% - 19px), transparent 100%);
}

.temple-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: temple-scroll 210s linear infinite;
  will-change: transform;
}

.temple-ticker-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(21px, 2.3vw, 38px);
  padding-right: clamp(21px, 2.3vw, 38px);
}

.temple-ticker-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: #44413e;
  font-size: clamp(12px, .92vw, 15px);
  font-weight: 500;
  line-height: 1.2;
}

.temple-ticker-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  background: #fff8eb;
  border: 1px solid #d9b97d;
  color: #d3b77e;
  border-radius: 8px;
}

.temple-ticker-image svg { width: 25px; height: 25px; }

@keyframes temple-scroll { to { transform: translateX(-50%); } }

.temple-ticker:hover .temple-ticker-track,
.temple-ticker:focus-within .temple-ticker-track {
  animation-play-state: paused;
}

@media (max-width: 700px) {
  .temple-ticker { height: 56px; }
  .temple-ticker-label { padding-inline: 12px; gap: 9px; }
  .temple-ticker-label small { display: block; margin-left: 0; margin-top: 2px; }
  .temple-ticker-item { font-size: 12px; }
  .temple-ticker-image { width: 30px; height: 30px; border-radius: 7px; }
  .temple-ticker-image svg { width: 22px; height: 22px; }
  .home-page .home-pad { padding-inline: 14px; }
}

@media (max-width: 420px) {
  .temple-ticker-label { max-width: 130px; white-space: normal; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .temple-ticker-viewport { overflow-x: auto; mask-image: none; }
  .temple-ticker-track { animation: none; will-change: auto; }
  .temple-ticker-set[aria-hidden='true'] { display: none; }
}
