/*
 * Site-wide clean chrome + inner-page rhythm.
 * Tokens live in dc-tokens.css. Homepage slip styles stay in vr-clean-home.css.
 */

/* ---------------------------------------------------------------------------
 * Full-bleed chrome (top bar, header)
 * --------------------------------------------------------------------------- */

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 {
  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;
}

/*
 * Chrome colors live in dc-traditional-header.css (yellow / navy / maroon).
 * Keep only structural rail rules here.
 */

/* ---------------------------------------------------------------------------
 * Inner page layout — single content column, same max width as home
 * --------------------------------------------------------------------------- */

body.tdc-ui-clean:not(.home) .page-layout {
  display: block;
  max-width: var(--dc-max);
  margin: 0 auto;
  padding: 32px var(--dc-pad-x) 64px;
  gap: 0;
}

body.tdc-ui-clean:not(.home) .page-layout .main-content,
body.tdc-ui-clean:not(.home) .main-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Sidebar out of the clean single-column path */
body.tdc-ui-clean:not(.home) .page-layout > .sidebar,
body.tdc-ui-clean:not(.home) .page-layout > aside,
body.tdc-ui-clean:not(.home) .mp-home-aside {
  display: none !important;
}

/* ---------------------------------------------------------------------------
 * Page hero / section kickers (festivals, muhurtham, rahu, calendar)
 * --------------------------------------------------------------------------- */

body.tdc-ui-clean:not(.home) .festivals-hero {
  margin: 0 0 40px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--dc-line);
  background: none;
}

body.tdc-ui-clean:not(.home) .festivals-hero__inner {
  max-width: none;
  padding: 0;
}

body.tdc-ui-clean:not(.home) .festivals-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--dc-ink);
}

body.tdc-ui-clean:not(.home) .festivals-hero__year {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--dc-burgundy);
}

body.tdc-ui-clean:not(.home) .festivals-hero__tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--dc-mute);
}

body.tdc-ui-clean:not(.home) .festivals-hero__tagline-te {
  color: var(--dc-ink);
  font-weight: 600;
}

body.tdc-ui-clean:not(.home) .festivals-hero__tagline-en::before {
  content: none;
}

body.tdc-ui-clean:not(.home) .festivals-hero__lead {
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--dc-mute);
}

body.tdc-ui-clean:not(.home) .festivals-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .muhurtham-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .rahu-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .rasi-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .month-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .about-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .year-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .good-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .contact-page .festivals-hero__inner,
body.tdc-ui-clean:not(.home) .day-page .festivals-hero__inner {
  text-align: center;
}

body.tdc-ui-clean:not(.home) .festivals-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .muhurtham-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .rahu-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .rasi-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .month-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .about-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .year-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .good-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .contact-page .festivals-hero__title,
body.tdc-ui-clean:not(.home) .day-page .festivals-hero__title {
  justify-content: center;
}

@media (min-width: 640px) {
  body.tdc-ui-clean:not(.home) .festivals-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .muhurtham-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .rahu-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .rasi-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .month-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .about-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .year-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .good-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .contact-page .festivals-hero__title,
  body.tdc-ui-clean:not(.home) .day-page .festivals-hero__title {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

body.tdc-ui-clean:not(.home) .festivals-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .muhurtham-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .rahu-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .rasi-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .month-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .about-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .year-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .good-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .contact-page .festivals-hero__tagline,
body.tdc-ui-clean:not(.home) .day-page .festivals-hero__tagline {
  justify-content: center;
}

body.tdc-ui-clean:not(.home) .festivals-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .muhurtham-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .rahu-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .rasi-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .month-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .about-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .year-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .good-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .contact-page .festivals-hero__lead,
body.tdc-ui-clean:not(.home) .day-page .festivals-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

body.tdc-ui-clean:not(.home) .festivals-hero__lead-te {
  display: block;
  margin-bottom: 6px;
  color: var(--dc-ink);
  font-weight: 500;
}

body.tdc-ui-clean:not(.home) .festivals-hero__related {
  margin-top: 16px;
  font-size: 0.9rem;
}

body.tdc-ui-clean:not(.home) .festivals-hero__related a {
  color: var(--dc-burgundy);
  font-weight: 600;
  text-decoration: none;
}

body.tdc-ui-clean:not(.home) .festivals-hero__related a:hover {
  text-decoration: underline;
}

/* Breadcrumbs */
body.tdc-ui-clean:not(.home) .tdc-breadcrumbs {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  color: var(--dc-mute);
}

body.tdc-ui-clean:not(.home) .tdc-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.tdc-ui-clean:not(.home) .tdc-breadcrumbs a {
  color: var(--dc-mute);
  text-decoration: none;
}

body.tdc-ui-clean:not(.home) .tdc-breadcrumbs a:hover {
  color: var(--dc-burgundy);
}

body.tdc-ui-clean:not(.home) .tdc-breadcrumbs__te {
  color: var(--dc-ink);
  font-weight: 600;
}

/* Section rhythm */
body.tdc-ui-clean:not(.home) .home-section {
  margin: 0 0 40px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

body.tdc-ui-clean:not(.home) .home-section__title,
body.tdc-ui-clean:not(.home) .home-section h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
}

/* Festivals month bars reuse .home-section__title — keep them compact */
body.tdc-ui-clean:not(.home) .festivals-page .card__header-inner .home-section__title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dc-cream, #fffdf6);
}

body.tdc-ui-clean:not(.home) .home-section__kicker,
body.tdc-ui-clean:not(.home) .section-kicker {
  display: block;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-burgundy);
}

body.tdc-ui-clean:not(.home) .home-section__body {
  padding: 0;
}

/* Jump nav / month chips */
body.tdc-ui-clean:not(.home) .festivals-jump,
body.tdc-ui-clean:not(.home) .timings-jump {
  margin: 0 0 32px;
  padding: 0;
  background: none;
  border: none;
}

body.tdc-ui-clean:not(.home) .festivals-jump__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.tdc-ui-clean:not(.home) .festivals-jump__list a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--dc-line);
  border-radius: 6px;
  color: var(--dc-ink);
  font-family: var(--dc-sans), "Roboto", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  background: var(--dc-wash);
}

body.tdc-ui-clean:not(.home) .festivals-jump__list a:hover {
  border-color: var(--dc-burgundy);
  color: var(--dc-burgundy);
  background: var(--dc-card);
}

/* Lists & tables */
body.tdc-ui-clean:not(.home) table,
body.tdc-ui-clean:not(.home) .muhurtham-table,
body.tdc-ui-clean:not(.home) .timings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

body.tdc-ui-clean:not(.home) th,
body.tdc-ui-clean:not(.home) td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--dc-line);
  text-align: left;
  vertical-align: top;
}

body.tdc-ui-clean:not(.home) th {
  font-weight: 600;
  color: var(--dc-mute);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.tdc-ui-clean:not(.home) .is-good,
body.tdc-ui-clean:not(.home) .timing-good {
  color: var(--dc-good);
}

body.tdc-ui-clean:not(.home) .is-bad,
body.tdc-ui-clean:not(.home) .is-caution,
body.tdc-ui-clean:not(.home) .timing-bad {
  color: var(--dc-bad);
}

/* Festival / list rows */
body.tdc-ui-clean:not(.home) .festival-row,
body.tdc-ui-clean:not(.home) .festivals-list__item,
body.tdc-ui-clean:not(.home) .month-festival {
  border-bottom: 1px solid var(--dc-line);
  padding: 14px 0;
}

/* FAQ */
body.tdc-ui-clean .faq-list,
body.tdc-ui-clean .seo-faq {
  border-top: 1px solid var(--dc-line);
}

body.tdc-ui-clean .faq-item {
  border-bottom: 1px solid var(--dc-line);
  background: none;
  box-shadow: none;
}

body.tdc-ui-clean .faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  color: var(--dc-ink);
  cursor: pointer;
}

body.tdc-ui-clean .faq-item__answer {
  padding: 0 0 16px;
  color: var(--dc-mute);
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
 * Quiet footer
 * --------------------------------------------------------------------------- */

body.tdc-ui-clean .site-footer {
  margin-top: 0;
  padding: 48px 0 32px;
  background: var(--dc-wash);
  border-top: 1px solid var(--dc-line);
  color: var(--dc-mute);
  font-family: var(--dc-sans) !important;
}

body.tdc-ui-clean .site-footer * {
  font-family: var(--dc-sans) !important;
}

body.tdc-ui-clean .site-footer__inner {
  max-width: var(--dc-max);
  margin: 0 auto;
  padding: 0 var(--dc-pad-x);
}

body.tdc-ui-clean .site-footer__heading,
body.tdc-ui-clean .site-footer__brand-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc-ink);
}

body.tdc-ui-clean .site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.tdc-ui-clean .site-footer__links a {
  color: var(--dc-mute);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

body.tdc-ui-clean .site-footer__links li::before {
  color: #000;
}

body.tdc-ui-clean .site-footer__links a:hover {
  color: var(--dc-burgundy);
}

body.tdc-ui-clean .site-footer__brand-blurb {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--dc-mute);
  margin: 0;
}

/* Monthly calendar strip */
body.tdc-ui-clean .site-footer__months {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--dc-line);
}

body.tdc-ui-clean .site-footer__months-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-mute);
  margin: 0 0 12px;
}

body.tdc-ui-clean .site-footer__months-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

body.tdc-ui-clean .site-footer__months-list a {
  font-size: 0.8rem;
  color: var(--dc-mute);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--dc-line);
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

body.tdc-ui-clean .site-footer__months-list a:hover {
  background: var(--dc-maroon);
  color: #fff;
  border-color: var(--dc-maroon);
}

/* Nav calendar dropdown — two-column layout for 12 months */
body.tdc-ui-clean .site-nav__item--dropdown .site-nav__dropdown--calendar {
  min-width: 340px;
  display: none;
}

body.tdc-ui-clean .site-nav__item--dropdown.is-open .site-nav__dropdown--calendar {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

body.tdc-ui-clean .site-nav__item--dropdown.is-open .site-nav__dropdown--calendar .site-nav__dropdown-item:first-child {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--dc-line);
}

body.tdc-ui-clean .site-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--dc-line);
  font-size: 0.75rem;
  color: var(--dc-soft);
  text-align: center;
}

body.tdc-ui-clean .site-footer__bottom p {
  margin: 0 0 4px;
}

/* ---------------------------------------------------------------------------
 * Static about / contact
 * --------------------------------------------------------------------------- */

body.tdc-ui-clean:not(.home) .static-page {
  max-width: none;
}

body.tdc-ui-clean:not(.home) .static-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dc-ink);
}

body.tdc-ui-clean:not(.home) .static-page a {
  color: var(--dc-burgundy);
}
