.vcal-main {
  margin-top: 50px;
}
.vcal-intro {
  margin-bottom: 28px;
}
.vcal-site-note {
  max-width: 800px;
  margin: 12px auto 0;
  color: #607d8b;
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: center;
}
.vcal-site-note + .vcal-site-note {
  margin-top: 16px;
}
.vcal-site-note a {
  color: var(--dark-purple);
  font-weight: 600;
  text-underline-offset: 3px;
}
.vcal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 24px;
  margin: 28px 0;
}
.vcal-stack {
  display: grid;
  align-content: start;
  gap: 24px;
}
.vcal-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.vcal-panel-body {
  padding: 25px;
}
.vcal-panel-heading {
  margin: 0 0 15px;
  color: var(--dark-purple);
  font-size: 1.15rem;
  font-weight: 600;
}
.vcal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.vcal-field label,
.vcal-month-field span,
.vcal-metric-label {
  display: block;
  margin-bottom: 6px;
  color: #607d8b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.vcal-select,
.vcal-button,
.vcal-icon-button {
  min-height: 44px;
  border: 1px solid #e1bee7;
  border-radius: 8px;
  font: inherit;
}
.vcal-select {
  width: 100%;
  padding: 0 12px;
  outline: none;
  background: #fff;
  color: #263238;
}
.vcal-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.12);
}
.vcal-button,
.vcal-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  background: #f3e5f5;
  color: var(--dark-purple);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vcal-button:hover,
.vcal-button:focus-visible,
.vcal-icon-button:hover,
.vcal-icon-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 31, 162, 0.2);
}
.vcal-button-primary {
  border: none;
  background: linear-gradient(135deg, #7b1fa2, #4a0072);
  color: #fff;
}
.vcal-button-saffron {
  border: none;
  background: linear-gradient(135deg, var(--gold), #ff9800);
  color: #1a237e;
}
.vcal-date-line {
  margin-bottom: 4px;
  color: #607d8b;
}
.vcal-gaurabda {
  margin: 5px 0 14px;
  color: var(--dark-purple);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}
.vcal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.vcal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #e1bee7;
  border-radius: 14px;
  background: #f3e5f5;
  color: var(--dark-purple);
  font-size: 0.76rem;
  font-weight: 700;
}
.vcal-badge-ekadashi { background: #f1f8e9; color: #33691e; }
.vcal-badge-parana { background: #fff8e1; color: #8d5600; }
.vcal-badge-festival,
.vcal-badge-appearance,
.vcal-badge-disappearance { background: #fff3e0; color: #8a4800; }
.vcal-status {
  margin: 0 0 18px;
  padding: 14px 15px;
  border-left: 4px solid #558b2f;
  border-radius: 0 8px 8px 0;
  background: #f1f8e9;
  color: #33691e;
}
.vcal-status-parana { border-left-color: var(--gold); background: #fff8e1; color: #7a5000; }
.vcal-status-pre_ekadashi,
.vcal-status-festival { border-left-color: #ff9800; background: #fff3e0; color: #7a3e00; }
.vcal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.vcal-metric {
  min-height: 85px;
  padding: 13px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fbf7fc;
}
.vcal-metric-value {
  display: block;
  margin-top: 3px;
  color: #263238;
  font-weight: 600;
}
.vcal-events {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.vcal-event {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.vcal-event:last-child { border-bottom: 0; }
.vcal-event-title,
.vcal-practice,
.vcal-upcoming-title,
.vcal-month-tithi { color: #263238; font-weight: 600; }
.vcal-event-description,
.vcal-upcoming-meta,
.vcal-year-heading p,
.vcal-month-sun,
.vcal-disclaimer,
.vcal-source-line { color: #607d8b; }
.vcal-parana {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #ffe082;
  border-radius: 8px;
  background: #fff8e1;
}
.vcal-parana-time {
  display: block;
  color: #8d5600;
  font-size: 1.55rem;
  font-weight: 700;
}
.vcal-practice {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}
.vcal-practice-source {
  display: inline-block;
  margin-top: 14px;
  color: var(--dark-purple);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.vcal-practice-source:hover,
.vcal-practice-source:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcal-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.vcal-upcoming-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.vcal-upcoming-row:last-child { border-bottom: 0; }
.vcal-upcoming-date,
.vcal-month-date { color: var(--purple); font-size: 0.83rem; font-weight: 700; }
.vcal-year-panel { margin-bottom: 24px; }
.vcal-year-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.vcal-year-heading p { margin: 4px 0 0; font-size: 0.86rem; }
.vcal-month-controls {
  display: grid;
  grid-template-columns: 44px minmax(210px, 1fr) 44px;
  align-items: end;
  gap: 8px;
}
.vcal-icon-button {
  width: 44px;
  padding: 0;
  font-size: 1.4rem;
}
.vcal-month-list { border-top: 1px solid var(--border); }
.vcal-month-day {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: start;
  min-height: 60px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
}
.vcal-month-day-special {
  border-left: 3px solid var(--gold);
  background: #fffaf0;
}
.vcal-month-observance { margin-top: 3px; color: #6a1b9a; font-size: 0.88rem; }
.vcal-month-sun { font-size: 0.82rem; text-align: right; }
.vcal-disclaimer {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
}
.vcal-source-line { margin-top: 10px; font-size: 0.78rem; }
.vcal-loading,
.vcal-error { padding: 22px; color: #7e57c2; }
.vcal-error { color: #c62828; }
.vcal-mini {
  width: 100%;
  margin: 42px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.vcal-mini h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 10px;
  color: var(--dark-purple);
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 500;
}
.vcal-mini h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7b1fa2, #ff9800);
}
.vcal-mini-lines { display: grid; gap: 6px; margin-bottom: 14px; }
.vcal-mini-line { color: #546e7a; }
.vcal-mini-line strong { color: var(--dark-purple); }
.vcal-mini a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 21px;
  background: linear-gradient(135deg, #7b1fa2, #4a0072);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 820px) {
  .vcal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vcal-main { margin-top: 35px; }
  .vcal-toolbar,
  .vcal-metrics { grid-template-columns: 1fr; }
  .vcal-panel-body { padding: 20px; }
  .vcal-actions .vcal-button { width: 100%; }
  .vcal-year-heading { display: block; }
  .vcal-month-controls { margin-top: 14px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .vcal-month-day { grid-template-columns: 82px minmax(0, 1fr); gap: 9px; padding: 10px 4px; }
  .vcal-month-sun { display: none; }
  .vcal-mini { padding-top: 26px; }
}
