/*
 * Traditional Telugu calendar — three-tier header chrome.
 * Top (navy) → Main (white, spacious) → Bottom glance (contrasting wash).
 * Loads after clean/site CSS so these rules win for chrome only.
 */

/* Hide duplicate ticker — bottom header is .dc-info-strip */
body.tdc-ui-clean .vr-ticker {
  display: none !important;
}

/* Full-bleed rails */
body.tdc-ui-clean .dc-chrome-rail,
body.tdc-ui-clean.tdc-has-top-bar .mp-top-bar__inner,
body.tdc-ui-clean.tdc-ui-vedic .site-header__inner,
body.tdc-ui-clean .site-header__inner,
body.tdc-ui-clean .mp-top-bar__inner,
body.tdc-ui-clean .dc-info-strip__inner {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--dc-pad-x) !important;
  padding-right: var(--dc-pad-x) !important;
  box-sizing: border-box !important;
}

/* =========================================================================
 * 1. Top Header — navy bar (quote / clock / language)
 * ========================================================================= */

body.tdc-ui-clean .mp-top-bar,
body.tdc-ui-clean.tdc-has-top-bar .mp-top-bar {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  background: var(--dc-navy) !important;
  border-bottom: 1px solid #0e2a48 !important;
  box-shadow: none !important;
  color: var(--dc-cream);
  font-family: var(--dc-sans);
}

body.tdc-ui-clean .mp-top-bar__inner,
body.tdc-ui-clean.tdc-has-top-bar .mp-top-bar__inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  min-height: 38px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.tdc-ui-clean .mp-top-bar__quote {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  flex: 1 1 240px;
  font-size: 13px;
  line-height: 1.4;
  font-style: normal !important;
  color: #ffc600 !important;
}

body.tdc-ui-clean .mp-top-bar__quote-mark {
  color: #ffc600 !important;
  flex-shrink: 0;
}

body.tdc-ui-clean .mp-top-bar__quote-mark .pc-icon {
  color: #ffc600 !important;
}

body.tdc-ui-clean .mp-top-bar__quote-text {
  color: #ffc600 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

body.tdc-ui-clean .mp-top-bar__quote-cite {
  color: rgba(255, 198, 0, 0.7) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 12px;
}

body.tdc-ui-clean .mp-top-bar__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dc-cream);
  flex-shrink: 0;
}

body.tdc-ui-clean .mp-top-bar__location,
body.tdc-ui-clean .mp-top-bar__pin {
  display: none !important;
}

body.tdc-ui-clean .mp-top-bar__dot {
  color: rgba(255, 253, 246, 0.4) !important;
}

body.tdc-ui-clean .mp-top-bar__clock {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 253, 246, 0.85);
  font-weight: 500;
}

/* Language toggle — navy chrome with gold active */
body.tdc-ui-clean .mp-top-bar .mp-top-bar__lang,
body.tdc-ui-clean .mp-top-bar .utility-bar__lang {
  display: inline-flex !important;
  border: 1px solid rgba(255, 253, 246, 0.3) !important;
  border-radius: 4px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.tdc-ui-clean .mp-top-bar .utility-bar__lang-btn,
body.tdc-ui-clean .mp-top-bar .vr-lang__btn {
  appearance: none;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 253, 246, 0.75) !important;
  font-family: var(--dc-sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1;
  padding: 5px 10px !important;
  cursor: pointer;
  box-shadow: none !important;
}

body.tdc-ui-clean .mp-top-bar .utility-bar__lang-btn + .utility-bar__lang-btn,
body.tdc-ui-clean .mp-top-bar .vr-lang__btn + .vr-lang__btn {
  border-left: 1px solid rgba(255, 253, 246, 0.3) !important;
}

body.tdc-ui-clean .mp-top-bar .utility-bar__lang-btn.is-active,
body.tdc-ui-clean .mp-top-bar .vr-lang__btn.is-active {
  background: #ffc600 !important;
  color: var(--dc-navy) !important;
}

body.tdc-ui-clean .mp-top-bar .utility-bar__lang-btn[data-lang="te"],
body.tdc-ui-clean .mp-top-bar .vr-lang__btn[data-lang="te"] {
  font-family: var(--dc-te) !important;
}

/* =========================================================================
 * 2. Main Header — white, bigger, spacious
 * ========================================================================= */

body.tdc-ui-clean .site-header,
body.tdc-ui-clean.tdc-ui-vedic .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--dc-line) !important;
  box-shadow: none !important;
  color: var(--dc-ink);
}

body.tdc-ui-clean .site-header__inner,
body.tdc-ui-clean.tdc-ui-vedic .site-header__inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  min-height: 66px !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  background: transparent !important;
}

body.tdc-ui-clean .site-logo,
body.tdc-ui-clean .site-logo:hover {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dc-maroon) !important;
}

/* Restore calendar mark (vr-home hides .site-logo__mark on vedic). */
body.tdc-ui-clean .site-logo__mark,
body.tdc-ui-clean.tdc-ui-vedic .site-logo__mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--dc-maroon) !important;
}

body.tdc-ui-clean .site-logo__svg,
body.tdc-ui-clean.tdc-ui-vedic .site-logo__svg {
  display: block !important;
  width: 32px;
  height: 32px;
  color: inherit;
}

body.tdc-ui-clean .site-logo__day {
  font-family: var(--dc-display), "Laila", Georgia, serif !important;
}

body.tdc-ui-clean .site-logo:hover .site-logo__mark {
  color: var(--dc-burgundy-dark, #611723) !important;
}

body.tdc-ui-clean .site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

body.tdc-ui-clean .site-logo__title,
body.tdc-ui-clean .site-title,
body.tdc-ui-clean .site-header a.site-title {
  color: var(--dc-maroon) !important;
  font-family: var(--dc-display), "Laila", Georgia, serif !important;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem) !important;
  font-weight: 700;
  letter-spacing: -0.015em !important;
  line-height: 1.15;
  text-transform: none;
}

body.tdc-ui-clean .site-logo:hover .site-logo__title {
  color: var(--dc-burgundy-dark, #611723) !important;
}

body.tdc-ui-clean .site-nav-toggle {
  color: var(--dc-navy) !important;
  background: transparent !important;
  border: 1px solid var(--dc-line) !important;
  border-radius: 4px;
  box-shadow: none !important;
  padding: 8px 10px;
}

body.tdc-ui-clean .site-nav-toggle__icon {
  color: var(--dc-navy);
}

body.tdc-ui-clean .site-nav,
body.tdc-ui-clean .primary-nav {
  font-family: var(--dc-sans);
}

body.tdc-ui-clean .site-nav ul:not(.site-nav__dropdown),
body.tdc-ui-clean .site-nav .menu,
body.tdc-ui-clean .site-nav__list,
body.tdc-ui-clean .primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.tdc-ui-clean .site-nav__dropdown {
  display: none !important;
}
body.tdc-ui-clean .site-nav__item--dropdown.is-open .site-nav__dropdown {
  display: block !important;
}

body.tdc-ui-clean .site-nav a,
body.tdc-ui-clean .site-nav__link,
body.tdc-ui-clean .primary-nav a {
  display: inline-block;
  font-family: var(--dc-sans), "Roboto", system-ui, sans-serif !important;
  color: var(--dc-navy) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  padding: 10px 14px !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.tdc-ui-clean .site-nav a:hover,
body.tdc-ui-clean .site-nav__link:hover,
body.tdc-ui-clean .primary-nav a:hover {
  color: var(--dc-maroon) !important;
  font-weight: 500 !important;
  background: rgba(128, 0, 32, 0.04) !important;
}

body.tdc-ui-clean .site-nav .current-menu-item > a,
body.tdc-ui-clean .site-nav__link.is-active,
body.tdc-ui-clean .primary-nav .current-menu-item > a,
body.tdc-ui-clean .current-menu-item > a {
  color: var(--dc-maroon) !important;
  font-weight: 500 !important;
  background: rgba(128, 0, 32, 0.04) !important;
}

/* ── Dropdown menu overrides (must beat !important rules above) ── */
body.tdc-ui-clean .site-nav__dropdown a,
body.tdc-ui-clean .site-nav .site-nav__dropdown-link {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  padding: 9px 16px !important;
  text-align: left !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body.tdc-ui-clean .site-nav__dropdown a:hover,
body.tdc-ui-clean .site-nav .site-nav__dropdown-link:hover,
body.tdc-ui-clean .site-nav .site-nav__dropdown-link.is-active {
  background: #f5e6c8 !important;
  color: var(--dc-maroon, #7a1e2e) !important;
  box-shadow: none !important;
}

/* Mobile open panel on white */
@media (max-width: 768px) {
  body.tdc-ui-clean .site-nav.is-open,
  body.tdc-ui-clean .site-nav[data-open="true"],
  body.tdc-ui-clean #site-nav.is-open {
    background: #ffffff !important;
    border-top: 1px solid var(--dc-line);
    justify-content: flex-start !important;
    padding: 6px 8px 10px !important;
  }

  body.tdc-ui-clean .site-nav.is-open ul,
  body.tdc-ui-clean .site-nav.is-open .menu,
  body.tdc-ui-clean .site-nav.is-open .site-nav__list {
    gap: 2px !important;
    flex-wrap: nowrap !important;
  }

  body.tdc-ui-clean .site-nav.is-open a,
  body.tdc-ui-clean #site-nav.is-open a {
    color: var(--dc-navy) !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
    padding: 8px 14px !important;
  }

  body.tdc-ui-clean .site-nav.is-open .site-nav__dropdown-toggle {
    padding: 8px 14px !important;
  }
}

/* =========================================================================
 * 3. Bottom Header — glance strip (more contrast)
 * ========================================================================= */

body.tdc-ui-clean .dc-info-strip {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--dc-paper-deep) !important;
  border-top: 1px solid var(--dc-line) !important;
  border-bottom: 1px solid var(--dc-line) !important;
  box-shadow: none !important;
  font-family: var(--dc-sans);
}

body.tdc-ui-clean .dc-info-strip__inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  min-height: 52px;
}

body.tdc-ui-clean .dc-info-strip__item {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-size: 14px;
  line-height: 1.3;
  color: var(--dc-ink);
}

/* Title vs value — clear hierarchy */
body.tdc-ui-clean .dc-info-strip__item strong {
  font-weight: 700;
  color: var(--dc-navy) !important;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.tdc-ui-clean .dc-info-strip__item > span:not(.dc-box-icon):not(.lang-en-only):not(.lang-te-only),
body.tdc-ui-clean .dc-info-strip__item .lang-en-only,
body.tdc-ui-clean .dc-info-strip__item .lang-te-only {
  color: var(--dc-ink) !important;
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body.tdc-ui-clean .dc-info-strip__item--accent strong {
  color: var(--dc-maroon) !important;
}

body.tdc-ui-clean .dc-info-strip__item--accent > span:last-child {
  color: var(--dc-maroon) !important;
  font-weight: 700;
}

body.tdc-ui-clean .dc-info-strip__sep {
  color: #c4b08c !important;
  font-weight: 400;
  user-select: none;
}

/* Icons — larger, no box border / white fill */
body.tdc-ui-clean .dc-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  flex-shrink: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--dc-navy);
  padding: 0;
}

body.tdc-ui-clean .dc-box-icon .pc-icon,
body.tdc-ui-clean .dc-box-icon .dc-strip__icon {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  color: inherit;
  display: block;
}

body.tdc-ui-clean .dc-info-strip__item--accent .dc-box-icon {
  border: none !important;
  background: transparent !important;
  color: var(--dc-maroon);
}

@media (max-width: 640px) {
  /* Top bar: centered column layout on mobile */
  body.tdc-ui-clean .mp-top-bar__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: 36px;
    gap: 4px;
  }

  body.tdc-ui-clean .mp-top-bar__quote,
  body.tdc-ui-clean .mp-top-bar__quote-empty {
    flex: 0 1 auto;
    flex-basis: auto;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.tdc-ui-clean .mp-top-bar__meta {
    flex-shrink: 0;
    justify-content: center;
  }

  body.tdc-ui-clean .site-header__inner,
  body.tdc-ui-clean.tdc-ui-vedic .site-header__inner {
    min-height: 60px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  body.tdc-ui-clean .site-logo__mark,
  body.tdc-ui-clean.tdc-ui-vedic .site-logo__mark {
    width: 28px;
    height: 28px;
  }

  body.tdc-ui-clean .site-logo__title {
    font-size: 0.95rem !important;
    letter-spacing: -0.01em !important;
  }

  /* Info strip: 2-column grid, items stack label + value vertically */
  body.tdc-ui-clean .dc-info-strip__inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 !important;
  }

  body.tdc-ui-clean .dc-info-strip__sep {
    display: none !important;
  }

  body.tdc-ui-clean .dc-info-strip__item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    padding: 10px 8px;
    min-width: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--dc-line, #d4c4a8);
  }

  /* Vertical divider on left-column items (Rahu Kalam = 1st, Sunrise = 5th child) */
  body.tdc-ui-clean .dc-info-strip__inner > .dc-info-strip__item:nth-child(1),
  body.tdc-ui-clean .dc-info-strip__inner > .dc-info-strip__item:nth-child(5) {
    border-right: 1px solid var(--dc-line, #d4c4a8);
  }

  /* Last item (Abhijit) spans full width, inline row, centered */
  body.tdc-ui-clean .dc-info-strip__item:last-child {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: none;
    border-right: none;
  }

  body.tdc-ui-clean .dc-info-strip__item .dc-box-icon {
    display: none !important;
  }

  body.tdc-ui-clean .dc-info-strip__item strong {
    font-size: 10px !important;
    color: var(--dc-mute, #5c5346) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  body.tdc-ui-clean .dc-info-strip__item > span:not(.dc-box-icon):not(.lang-en-only):not(.lang-te-only),
  body.tdc-ui-clean .dc-info-strip__item .lang-en-only,
  body.tdc-ui-clean .dc-info-strip__item .lang-te-only {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* =========================================================================
 * Compact centered homepage hero (SEO H1 + short lead, no CTAs)
 * ========================================================================= */

body.tdc-ui-clean .dc-hero,
body.tdc-ui-clean .mp-page-head {
  max-width: var(--dc-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px var(--dc-pad-x) 24px !important;
  border-bottom: 1px solid var(--dc-line) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body.tdc-ui-clean .dc-hero__kicker {
  margin: 0 0 8px;
  font-family: var(--dc-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc-navy);
}

body.tdc-ui-clean .dc-hero__kicker .lang-te-only {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--dc-navy) !important;
}

body.tdc-ui-clean .dc-hero__title,
body.tdc-ui-clean .mp-page-head__title {
  font-family: var(--dc-sans) !important;
  font-size: clamp(22px, 2.6vw, 28px) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  margin: 0 0 8px !important;
  color: var(--dc-maroon) !important;
  max-width: 36em;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.tdc-ui-clean .dc-hero__title .telugu,
body.tdc-ui-clean .dc-hero__title .lang-te-only {
  font-family: var(--dc-te) !important;
  font-weight: 700 !important;
  color: var(--dc-maroon) !important;
}

body.tdc-ui-clean .dc-hero__lead,
body.tdc-ui-clean .mp-page-head__lead {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--dc-mute) !important;
  margin: 0 auto !important;
  max-width: 34em !important;
}

body.tdc-ui-clean .dc-hero__lead .telugu,
body.tdc-ui-clean .dc-hero__lead .lang-te-only {
  font-family: var(--dc-te) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--dc-ink) !important;
  line-height: 1.55 !important;
}

/* CTAs removed from markup — keep hidden if leftover */
body.tdc-ui-clean .dc-hero__actions {
  display: none !important;
}

@media (max-width: 640px) {
  body.tdc-ui-clean .dc-hero,
  body.tdc-ui-clean .mp-page-head {
    padding-top: 20px !important;
    padding-bottom: 18px !important;
  }

  body.tdc-ui-clean .dc-hero__title,
  body.tdc-ui-clean .mp-page-head__title {
    font-size: 22px !important;
  }
}
