/* Shaastree Panchang - styles */
.sp-panchang-card {
    --sp-saffron: #e07a1f;
    --sp-maroon: #7a1f2b;
    --sp-gold: #c9932a;
    --sp-cream: #fdf6ec;
    max-width: 560px;
    margin: 1.5em 0;
    border: 1px solid #ecd9b8;
    border-radius: 12px;
    background: var(--sp-cream);
    box-shadow: 0 2px 10px rgba(122, 31, 43, 0.08);
    overflow: hidden;
    font-family: inherit;
}

.sp-panchang-header {
    background: linear-gradient(135deg, var(--sp-maroon), var(--sp-saffron));
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-panchang-date {
    font-size: 1.1em;
    font-weight: 600;
}

.sp-panchang-vaar {
    font-size: 0.95em;
    background: rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 999px;
}

.sp-panchang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.sp-panchang-item {
    padding: 12px 18px;
    border-bottom: 1px solid #ecd9b8;
    border-right: 1px solid #ecd9b8;
    display: flex;
    flex-direction: column;
}

.sp-panchang-item:nth-child(2n) {
    border-right: none;
}

.sp-panchang-item.sp-rahu {
    grid-column: 1 / -1;
    background: #fbeee0;
}

.sp-label {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sp-maroon);
    opacity: 0.75;
    margin-bottom: 2px;
}

.sp-value {
    font-size: 1.02em;
    font-weight: 600;
    color: #3a2418;
}

.sp-panchang-footer {
    padding: 8px 18px;
    font-size: 0.78em;
    color: #8a6f4d;
    background: #f7ead4;
}

.sp-panchang-error {
    padding: 16px 18px;
    color: #7a1f2b;
    font-weight: 600;
}

/* Year table view */
.sp-panchang-year {
    margin: 1.5em 0;
    font-family: inherit;
}

.sp-year-controls {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-year-controls label {
    font-weight: 600;
    color: #7a1f2b;
}

.sp-month-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d9b880;
    background: #fdf6ec;
    font-size: 1em;
    color: #3a2418;
}

.sp-month-block {
    display: none;
}

.sp-month-block.sp-active {
    display: block;
}

.sp-month-title {
    color: #7a1f2b;
    border-bottom: 2px solid #e07a1f;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.sp-table-wrap {
    overflow-x: auto;
}

.sp-panchang-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}

.sp-panchang-table th {
    background: #7a1f2b;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}

.sp-panchang-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #ecd9b8;
    white-space: nowrap;
}

.sp-panchang-table tr:nth-child(even) {
    background: #fbf3e4;
}

.sp-panchang-table tr:hover {
    background: #f5e5c8;
}

@media (max-width: 480px) {
    .sp-panchang-grid {
        grid-template-columns: 1fr;
    }
    .sp-panchang-item:nth-child(2n) {
        border-right: 1px solid #ecd9b8;
    }
}
