/*
 * Clean spacious homepage — Standalone design.
 * Tokens + bilingual rules: dc-tokens.css. Site chrome: dc-site.css.
 */

/* Kill leftover skins / chrome */
body.tdc-ui-clean .mp-dayhead,
body.tdc-ui-clean .mp-page-head__lead + .mp-hero__telugu,
body.tdc-ui-clean .vr-ticker,
body.tdc-ui-clean .mp-home-aside {
  display: none !important;
}

body.tdc-ui-clean .mp-home-wrap {
  display: block;
  max-width: none;
  gap: 0;
}

/* Kill vedic main max-width that nests/offsets homepage content */
body.tdc-ui-clean.tdc-ui-vedic .vr-main.cal-home-sheet,
body.tdc-ui-clean.tdc-ui-vedic .cal-home-sheet.vr-main,
body.tdc-ui-clean .mp-home-main,
body.tdc-ui-clean .vr-main,
body.tdc-ui-clean .cal-home-sheet.vr-main,
body.tdc-ui-clean .main-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/*
 * Chrome bars are full-bleed (like Standalone.html).
 * Only horizontal padding — no max-width on header rails.
 * Page body sections stay constrained separately below.
 */
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;
}

/* Reset old mp-kv grid that breaks timings alignment */
body.tdc-ui-clean .dc-cell.mp-kv,
body.tdc-ui-clean .dc-grid .mp-kv {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  margin: 0 !important;
  align-items: stretch !important;
}

body.tdc-ui-clean .dc-cell .mp-kv__sep {
  display: none !important;
}

body.tdc-ui-clean .dc-cell .mp-kv__label,
body.tdc-ui-clean .dc-cell .mp-kv__value {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

body.tdc-ui-clean .dc-cell .mp-kv__value strong,
body.tdc-ui-clean .dc-cell .cal-trow {
  font-weight: 600;
  font-family: inherit;
}

/* ── Top bar ── */
body.tdc-ui-clean .mp-top-bar,
body.tdc-ui-clean.tdc-has-top-bar .mp-top-bar {
  display: block;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  background: var(--dc-wash) !important;
  border-bottom: 1px solid var(--dc-line) !important;
  box-shadow: none !important;
}

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

/* Top bar quote / lang chrome lives in dc-traditional-header.css (navy). */
body.tdc-ui-clean .mp-top-bar__quote {
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.45;
  font-style: normal;
}

body.tdc-ui-clean .mp-top-bar__quote-text {
  font-family: var(--dc-te) !important;
  font-weight: 400;
  font-style: normal;
}

body.tdc-ui-clean .mp-top-bar__quote-cite {
  font-style: normal;
  font-size: 12px;
}

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

body.tdc-ui-clean .mp-top-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body.tdc-ui-clean .mp-top-bar__clock {
  font: 13px/1 var(--dc-mono);
}

/* ── Site header ── */
body.tdc-ui-clean .site-header,
body.tdc-ui-clean.tdc-ui-vedic .site-header {
  display: block;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--dc-line) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.tdc-ui-clean .site-header__inner,
body.tdc-ui-clean.tdc-ui-vedic .site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  min-height: 66px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.tdc-ui-clean .site-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

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;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--dc-maroon);
}

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

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

body.tdc-ui-clean .site-nav,
body.tdc-ui-clean.tdc-ui-vedic .site-nav {
  margin-left: auto !important;
  flex: 0 1 auto !important;
  justify-content: flex-end !important;
}

/* Sticky header sits below the top bar while top bar is in view */
body.tdc-ui-clean.tdc-ui-vedic .site-header,
body.tdc-ui-clean .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

body.tdc-ui-clean .site-nav ul,
body.tdc-ui-clean .site-nav .menu {
  gap: 4px 8px !important;
}

/* Nav hover chrome finalized in dc-traditional-header.css (no weight bump). */
body.tdc-ui-clean .site-nav a,
body.tdc-ui-clean .site-nav__link {
  font-family: var(--dc-sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* ── Info strip (bottom header) ── */
body.tdc-ui-clean .dc-info-strip {
  display: block;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--dc-line);
  background: #fff;
  font-size: 13px;
  color: var(--dc-mute);
}

body.tdc-ui-clean .dc-info-strip__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body.tdc-ui-clean .dc-info-strip__item strong {
  font-weight: 600;
  color: var(--dc-ink);
  margin-right: 6px;
  font-family: var(--dc-sans);
}

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

body.tdc-ui-clean .dc-info-strip__item span {
  color: var(--dc-ink);
  font-weight: 500;
}

body.tdc-ui-clean .dc-info-strip__sep {
  color: var(--dc-line);
}

/* ── Page content rail (same edges as chrome) ──
 * The daily sheet and the .tdc-sec sections set their own rail, in
 * tdc-sheet.css and tdc-sections.css respectively, so that they align with
 * each other. Only the remaining page furniture is constrained here. */
body.tdc-ui-clean .dc-hero,
body.tdc-ui-clean .mp-page-head,
body.tdc-ui-clean .dc-section {
  max-width: var(--dc-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--dc-pad-x) !important;
  padding-right: var(--dc-pad-x) !important;
  box-sizing: border-box !important;
}

/* ── Hero ── */
body.tdc-ui-clean .dc-hero,
body.tdc-ui-clean .mp-page-head {
  padding-top: var(--dc-section-y);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--dc-line);
  text-align: left;
}

body.tdc-ui-clean .mp-page-head__title,
body.tdc-ui-clean .dc-hero__title {
  font-family: var(--dc-sans) !important;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--dc-ink);
}

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;
  color: var(--dc-ink);
}

body.tdc-ui-clean .mp-page-head__lead,
body.tdc-ui-clean .dc-hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--dc-mute);
  margin: 0 0 32px;
  max-width: 640px;
}

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: 17px;
  font-weight: 500;
  color: var(--dc-mute);
  line-height: 1.7;
}

body.tdc-ui-clean .dc-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

body.tdc-ui-clean .dc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dc-burgundy);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
}

body.tdc-ui-clean .dc-hero__cta:hover {
  background: var(--dc-burgundy-dark);
  color: #fff !important;
}

body.tdc-ui-clean .dc-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dc-ink);
  border-bottom: 1px solid var(--dc-ink);
  padding-bottom: 2px;
  text-decoration: none;
}

body.tdc-ui-clean .dc-hero__link:hover {
  color: var(--dc-burgundy);
  border-color: var(--dc-burgundy);
}

body.tdc-ui-clean .vr-sec-head__aside {
  margin-top: 20px;
}

/* ── Calendar block ── */
body.tdc-ui-clean .cal-home-sheet__calendar,
body.tdc-ui-clean #today.cal-home-sheet__calendar {
  padding-top: var(--dc-section-y) !important;
  padding-bottom: var(--dc-section-y) !important;
  border-bottom: 1px solid var(--dc-line);
  background: transparent !important;
}

body.tdc-ui-clean .dc-today .dc-section,
body.tdc-ui-clean section#panchangam.dc-section {
  padding: 0;
  border: none;
  max-width: none;
}

body.tdc-ui-clean .dc-today-head {
  display: block;
  margin: 0 0 8px;
}

body.tdc-ui-clean .dc-today-head .dc-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-burgundy);
}

body.tdc-ui-clean .dc-today-head .dc-kicker .lang-te-only {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}

/* Date bar chrome owned by dc-vedic-sheet.css */
body.tdc-ui-clean #cal-date-bar .vr-date-nav__group {
  margin-left: 0;
}

/* ── Slip — open, spacious, no boxy borders ── */
body.tdc-ui-clean .dc-slip,
body.tdc-ui-clean #sheet-card {
  border: none !important;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none !important;
  margin: 0;
  padding: 0;
}

body.tdc-ui-clean .dc-slip__caption {
  padding: 12px 14px;
  margin: 0 0 8px;
  background: var(--dc-wash);
  border: none;
  border-radius: 6px;
  border-bottom: none;
  font-family: var(--dc-te) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--dc-ink);
}

/* Monoline field icons — Phosphor (i.ph) + zodiac SVG */
body.tdc-ui-clean .dc-cell__icon,
body.tdc-ui-clean .dc-strip__icon,
body.tdc-ui-clean .pc-icon.dc-cell__icon,
body.tdc-ui-clean .pc-icon.dc-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: var(--dc-mute);
  vertical-align: -2px;
  line-height: 1;
}

body.tdc-ui-clean i.pc-icon.ph {
  font-style: normal;
  font-weight: normal;
  speak: never;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.tdc-ui-clean i.pc-icon.ph::before {
  line-height: 1;
}

body.tdc-ui-clean .dc-cell--bad .dc-cell__icon,
body.tdc-ui-clean .dc-cell__icon--band-bad,
body.tdc-ui-clean .dc-info-strip__item--accent .dc-strip__icon,
body.tdc-ui-clean .vr-now-rahu .dc-cell__icon {
  color: var(--dc-burgundy);
}

body.tdc-ui-clean .dc-cell--good .dc-cell__icon,
body.tdc-ui-clean .dc-cell__icon--band-good {
  color: var(--dc-good);
}

body.tdc-ui-clean .dc-kicker .dc-cell__icon,
body.tdc-ui-clean .dc-kicker .dc-band-icon {
  color: var(--dc-burgundy);
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

body.tdc-ui-clean .dc-festival-line .dc-cell__icon,
body.tdc-ui-clean .dc-kicker .dc-cell__icon {
  color: var(--dc-burgundy);
}

body.tdc-ui-clean .dc-slip__band .dc-cell__icon,
body.tdc-ui-clean .vd-sheet__band .dc-cell__icon {
  margin-right: 4px;
  color: var(--dc-cream);
}

body.tdc-ui-clean .dc-info-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

body.tdc-ui-clean .dc-info-strip__item .dc-strip__icon {
  margin-right: 2px;
}

body.tdc-ui-clean .dc-slip__date {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 32px 0 28px;
  border: none;
  border-bottom: 1px solid var(--dc-line);
  flex-wrap: wrap;
}

body.tdc-ui-clean .dc-slip__day {
  font-family: var(--dc-sans);
  font-size: clamp(52px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--dc-burgundy);
}

body.tdc-ui-clean .dc-slip__month {
  font-family: var(--dc-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dc-ink);
}

body.tdc-ui-clean .dc-slip__weekday {
  font-size: 15px;
  color: var(--dc-mute);
  margin-top: 6px;
  font-weight: 500;
}

body.tdc-ui-clean .dc-slip__weekday .te,
body.tdc-ui-clean .dc-slip__weekday [lang="te"] {
  font-family: var(--dc-te) !important;
  color: var(--dc-ink);
  font-weight: 600;
}

/* Core + timings grids — equal columns, gap only */
body.tdc-ui-clean .dc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
  padding: 32px 0;
  border: none;
  margin: 0;
}

body.tdc-ui-clean .dc-grid--timings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  padding: 8px 0 8px;
  align-items: start;
}

body.tdc-ui-clean .dc-cell {
  padding: 0 !important;
  border: none !important;
  margin: 0;
  min-width: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.tdc-ui-clean .dc-cell__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 2px;
  font-family: var(--dc-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--dc-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  line-height: 1.3;
}

body.tdc-ui-clean .dc-cell__label .telugu,
body.tdc-ui-clean .dc-cell__label .lang-te-only {
  font-family: var(--dc-te) !important;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 16px;
  font-weight: 500;
  color: var(--dc-ink);
}

body.tdc-ui-clean .dc-cell__value {
  font-family: var(--dc-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dc-ink);
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

body.tdc-ui-clean .dc-cell__value .telugu,
body.tdc-ui-clean .dc-cell__value .lang-te-only,
body.tdc-ui-clean .dc-cell__value [lang="te"] {
  font-family: var(--dc-te) !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--dc-ink);
  line-height: 1.45;
}

body.tdc-ui-clean .dc-cell__end {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--dc-soft);
  margin-top: 4px;
}

body.tdc-ui-clean .dc-cell__value--bad,
body.tdc-ui-clean .dc-cell--bad .dc-cell__value,
body.tdc-ui-clean .dc-cell--bad .dc-cell__value strong,
body.tdc-ui-clean .dc-cell--bad .cal-ttime {
  color: var(--dc-bad) !important;
}

body.tdc-ui-clean .dc-cell__value--good,
body.tdc-ui-clean .dc-cell--good .dc-cell__value,
body.tdc-ui-clean .dc-cell--good .dc-cell__value strong,
body.tdc-ui-clean .dc-cell--good .cal-ttime {
  color: var(--dc-good) !important;
}

body.tdc-ui-clean .dc-cell.is-active,
body.tdc-ui-clean .dc-cell .cal-trow.is-active {
  background: transparent;
  box-shadow: none;
}

body.tdc-ui-clean .dc-cell.is-active .dc-cell__value,
body.tdc-ui-clean .dc-cell .cal-trow.is-active .cal-ttime {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Band label aligned with grid content */
body.tdc-ui-clean .dc-slip__band {
  padding: 36px 0 20px;
  margin: 8px 0 0;
  font-family: var(--dc-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--dc-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: none;
  border-top: 1px solid var(--dc-line);
}

body.tdc-ui-clean .dc-slip__band .telugu,
body.tdc-ui-clean .dc-slip__band .lang-te-only {
  font-family: var(--dc-te) !important;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-weight: 600;
  color: var(--dc-ink);
}

body.tdc-ui-clean .dc-festival-line,
body.tdc-ui-clean .dc-now {
  padding: 24px 0 0;
  margin-top: 24px;
  border: none;
  border-top: 1px solid var(--dc-line);
  font-size: 15px;
  color: var(--dc-mute);
}

body.tdc-ui-clean .dc-festival-line .telugu,
body.tdc-ui-clean .dc-festival-line .lang-te-only {
  font-family: var(--dc-te) !important;
  font-weight: 600;
  color: var(--dc-ink);
}

body.tdc-ui-clean .dc-festival-line strong {
  color: var(--dc-burgundy);
  font-weight: 700;
  font-family: var(--dc-te), var(--dc-sans);
}

body.tdc-ui-clean .dc-now .vr-live__title {
  font-weight: 600;
  color: var(--dc-ink);
  margin-right: 8px;
}

body.tdc-ui-clean .dc-now .vr-live__detail {
  color: var(--dc-soft);
}

body.tdc-ui-clean .vr-now-rahu,
body.tdc-ui-clean .cal-classic-alert {
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--dc-burgundy);
  font-weight: 600;
}

body.tdc-ui-clean .mp-viewing-banner,
body.tdc-ui-clean .vr-viewing-banner {
  display: none !important;
}

body.tdc-ui-clean .mp-weekday-note {
  display: none !important;
}

/* ── Rasi ── */
body.tdc-ui-clean .dc-rasi-block,
body.tdc-ui-clean details#rasi {
  margin-top: 64px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

body.tdc-ui-clean .mp-rasi-summary,
body.tdc-ui-clean #rasi > summary {
  list-style: none;
  cursor: default;
  pointer-events: none;
  margin-bottom: 28px;
}

body.tdc-ui-clean #rasi > summary::-webkit-details-marker {
  display: none;
}

body.tdc-ui-clean .dc-rasi-grid,
body.tdc-ui-clean .mp-rasi-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

body.tdc-ui-clean #rasi:not([open]) .mp-rasi-grid {
  display: grid !important;
}

/* ── Monthly CTA ── */
body.tdc-ui-clean .dc-monthly-cta {
  border: none;
  border-radius: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: transparent;
}

body.tdc-ui-clean .dc-monthly-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dc-ink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

body.tdc-ui-clean .dc-monthly-cta__btn:hover {
  background: #000;
  color: #fff !important;
}

/* ── Footer — quiet wash ── */
body.tdc-ui-clean .site-footer {
  border-top: 1px solid var(--dc-line);
  background: var(--dc-wash);
  margin-top: 0;
}

@media (max-width: 900px) {
  body.tdc-ui-clean .dc-grid,
  body.tdc-ui-clean .dc-grid--timings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }

  body.tdc-ui-clean .dc-rasi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.tdc-ui-clean {
    --dc-pad-x: 20px;
    --dc-section-y: 48px;
  }

  body.tdc-ui-clean .dc-grid,
  body.tdc-ui-clean .dc-grid--timings {
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
  }

  body.tdc-ui-clean .dc-slip__day {
    font-size: 52px;
  }

  body.tdc-ui-clean .site-nav ul {
    gap: 16px !important;
  }

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