.site-shared-masthead {
  --header-ivory: #fff8e9;
  --header-sindoor: #9d130d;
  --header-deep-red: #5b0807;
  --header-gold: #e1b844;
  --header-brass: #a06a12;
  --header-line: rgba(128, 80, 15, 0.28);
  --header-serif: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, serif;
  --header-body: "Anek Devanagari", sans-serif;
  --header-hand: "Kalam", cursive;
  --header-height: 82px;
  position: sticky;
  top: -34px;
  z-index: 9998;
  width: 100%;
  color: var(--header-deep-red);
  font-family: var(--header-body);
  font-size: 16px;
  line-height: 1.2;
}

.site-shared-masthead,
.site-shared-masthead * { box-sizing: border-box; }
.site-shared-masthead a { color: inherit; text-decoration: none; }
.site-shared-masthead button { font: inherit; }
.site-shared-masthead p { margin: 0; }
body.site-shared-header-mounted { padding-top: 0 !important; }

.site-shared-masthead .top-strip {
  position: relative;
  z-index: 2;
  min-height: 34px;
  color: #fff3d6;
  background: var(--header-deep-red);
  font-size: 13px;
}
.site-shared-masthead .top-strip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--header-deep-red);
}
.site-shared-masthead .top-strip__inner {
  width: min(1240px, calc(100% - 80px));
  min-height: 34px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-shared-masthead .top-strip__group { display: flex; align-items: center; gap: 22px; }
.site-shared-masthead .top-strip__group > * + * { position: relative; }
.site-shared-masthead .top-strip__group > * + *::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--header-gold);
}
.site-shared-masthead .top-strip__mantra {
  font-family: var(--header-hand);
  color: #f2d588;
}

.site-shared-masthead #site-main-header {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--header-height);
  color: var(--header-deep-red);
  background: rgba(255, 249, 235, 0.97);
  border-bottom: 1px solid rgba(112, 56, 13, 0.18);
  box-shadow: 0 8px 32px rgba(69, 22, 7, 0.07);
  backdrop-filter: blur(12px);
}
.site-shared-masthead #site-main-header .site-inner {
  width: min(1380px, calc(100% - 42px));
  height: 100%;
  margin: auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 44px);
}
.site-shared-masthead .site-brand {
  min-width: 284px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-shared-masthead .site-brand__mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(93, 24, 10, 0.18));
}
.site-shared-masthead .site-brand__text { display: grid; line-height: 1; }
.site-shared-masthead .site-brand__name {
  font-family: var(--header-serif);
  font-size: 19px;
  font-weight: 700;
}
.site-shared-masthead .site-brand__sub {
  margin-top: 7px;
  color: var(--header-brass);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.site-shared-masthead .site-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(13px, 1.5vw, 24px);
  white-space: nowrap;
}
.site-shared-masthead .site-nav a {
  position: relative;
  padding: 29px 0 25px;
  color: var(--header-deep-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  border: 0;
}
.site-shared-masthead .site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 2px;
  background: var(--header-sindoor);
  transition: right .25s ease;
}
.site-shared-masthead .site-nav a:hover::after,
.site-shared-masthead .site-nav a.active::after { right: 0; }
.site-shared-masthead .site-actions {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.site-shared-masthead .header-link {
  padding: 10px 12px;
  border: 1px solid rgba(157, 19, 13, .22);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-shared-masthead .header-link:hover { background: #fff; border-color: var(--header-sindoor); }
.site-shared-masthead .header-darshan {
  padding: 11px 15px;
  color: #fff;
  background: var(--header-sindoor);
  border: 1px solid var(--header-sindoor);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-shared-masthead .header-darshan:hover { background: var(--header-deep-red); }
.site-shared-masthead .site-language-switch {
  display: flex;
  border: 1px solid rgba(157, 19, 13, .22);
}
.site-shared-masthead .site-language-switch button {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--header-deep-red);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.site-shared-masthead .site-language-switch button.active,
.site-shared-masthead .site-language-switch button.is-active {
  color: #fff;
  background: var(--header-deep-red);
}
.site-shared-masthead .site-menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-shared-masthead .site-menu span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--header-deep-red);
  transition: transform .25s ease, opacity .25s ease;
}

.site-shared-masthead .announcement-bar {
  position: relative;
  z-index: 0;
  top: 0;
  min-height: 42px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #412319;
  background: #f4d77a;
  border-bottom: 1px solid rgba(91, 8, 7, .22);
}
.site-shared-masthead .announcement-bar__label {
  position: relative;
  z-index: 2;
  min-width: 146px;
  padding: 11px 22px 9px;
  display: grid;
  place-items: center;
  color: #fff9e8;
  background: var(--header-deep-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.site-shared-masthead .announcement-bar__label::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 0;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  border-left: 12px solid var(--header-deep-red);
}
.site-shared-masthead .announcement-bar__track { min-width: 0; flex: 1; overflow: hidden; }
.site-shared-masthead .announcement-bar__content {
  width: max-content;
  min-height: 42px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
  animation: site-header-announcement-scroll 34s linear infinite;
}
.site-shared-masthead .announcement-bar__content span,
.site-shared-masthead .announcement-bar__content a {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.site-shared-masthead .announcement-bar__content a {
  color: var(--header-deep-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-shared-masthead .announcement-bar__content i {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--header-sindoor);
}
.site-shared-masthead .announcement-bar:hover .announcement-bar__content { animation-play-state: paused; }
@keyframes site-header-announcement-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1280px) {
  .site-shared-masthead .site-brand { min-width: 230px; }
  .site-shared-masthead .site-brand__mark { width: 56px; height: 56px; }
  .site-shared-masthead .site-brand__name { font-size: 17px; }
  .site-shared-masthead .site-nav { gap: 12px; }
  .site-shared-masthead .site-nav a { font-size: 11px; }
  .site-shared-masthead .header-link { display: none; }
}

@media (max-width: 1024px) {
  .site-shared-masthead { --header-height: 72px; }
  .site-shared-masthead .top-strip__inner { width: calc(100% - 48px); }
  .site-shared-masthead .top-strip__mantra,
  .site-shared-masthead .top-strip__group a:last-child { display: none; }
  .site-shared-masthead .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 18px 24px 24px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: var(--header-ivory);
    border-top: 1px solid var(--header-line);
    box-shadow: 0 20px 35px rgba(73, 22, 4, .15);
  }
  .site-shared-masthead #site-main-header.open .site-nav { display: grid; }
  .site-shared-masthead .site-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--header-line);
    font-size: 13px;
  }
  .site-shared-masthead .site-nav a::after { display: none; }
  .site-shared-masthead .site-actions { margin-left: auto; }
  .site-shared-masthead #site-main-header .site-menu {
    display: block !important;
    align-items: center;
    justify-content: center;
  }
  .site-shared-masthead #site-main-header.open .site-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-shared-masthead #site-main-header.open .site-menu span:nth-child(2) { opacity: 0; }
  .site-shared-masthead #site-main-header.open .site-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 700px) {
  .site-shared-masthead { top: 0; }
  .site-shared-masthead .top-strip { display: none; }
  .site-shared-masthead .announcement-bar { top: 0; min-height: 42px; }
  .site-shared-masthead .announcement-bar__label { min-width: 86px; padding-inline: 9px; font-size: 8px; }
  .site-shared-masthead .announcement-bar__label::after {
    right: -10px;
    border-top-width: 21px;
    border-bottom-width: 21px;
    border-left-width: 10px;
  }
  .site-shared-masthead .announcement-bar__content { min-height: 42px; padding: 0 20px 0 24px; gap: 18px; animation-duration: 20s; }
  .site-shared-masthead .announcement-bar__content span,
  .site-shared-masthead .announcement-bar__content a { font-size: 11px; line-height: 1; }
  .site-shared-masthead #site-main-header .site-inner { width: calc(100% - 24px); gap: 8px; }
  .site-shared-masthead .site-brand { min-width: 0; flex: 1; gap: 7px; }
  .site-shared-masthead .site-brand__mark { width: 46px; height: 46px; }
  .site-shared-masthead .site-brand__name { font-size: 14px; }
  .site-shared-masthead .site-brand__sub { margin-top: 4px; font-size: 10px; }
  .site-shared-masthead .header-darshan { display: none; }
  .site-shared-masthead .site-language-switch button { min-width: 30px; padding: 0 5px; }
  .site-shared-masthead .site-menu { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shared-masthead .announcement-bar__content { animation: none; }
}
