/**
 * AstroLeaf Enterprise - Jaimini Chara Dasha Calculator Stylesheet
 * Version: 22.0.0
 * Minimal, theme-harmonized layout with collapsible details and side-by-side comparisons.
 */

:root {
    --cd-saffron: #D97706;
    --cd-saffron-light: #FBBF24;
    --cd-saffron-dark: #B45309;
    --cd-saffron-bg: rgba(217, 119, 6, 0.08);
    --cd-maroon: #65250C;
    --cd-maroon-dark: #4A1A08;
    --cd-cream-bg: #FFFBF4;
    --cd-card-bg: #FFFFFF;
    --cd-border-color: #E6DFD5;
    --cd-text-main: #1E293B;
    --cd-text-muted: #64748B;
    --cd-good: #16A34A;
    --cd-warn: #D97706;
}

html body {
    background-color: var(--cd-cream-bg) !important;
    color: var(--cd-text-main) !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

/* Spinner Animation */
@keyframes cd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes udSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Minimal Card Structure */
.cd-minimal-card {
    background: #FFFFFF;
    border: 1px solid var(--cd-border-color);
    border-radius: 14px;
    padding: 20px;
    margin: 14px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Hero Metric Banner */
.cd-hero {
    background: #FFF8EA;
    border: 1.5px solid #FDE68A;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.cd-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E6DFD5;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cd-maroon);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cd-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.cd-metric {
    background: #FFFFFF;
    border: 1px solid var(--cd-border-color);
    border-radius: 10px;
    padding: 12px 14px;
    transition: transform 0.15s ease;
}

.cd-metric:hover {
    border-color: var(--cd-saffron);
}

.cd-metric .label {
    color: var(--cd-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cd-metric .value {
    margin-top: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--cd-maroon);
}

/* Interactive Details Accordions */
.cd-details {
    border-top: 1px solid var(--cd-border-color);
    padding-top: 14px;
    margin-top: 16px;
}

.cd-details summary {
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cd-maroon);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    padding: 4px 0;
}

.cd-details summary::-webkit-details-marker {
    display: none;
}

.cd-details summary::after {
    content: "▼";
    font-size: 0.75rem;
    color: var(--cd-text-muted);
    transition: transform 0.2s ease;
}

.cd-details[open] summary::after {
    transform: rotate(180deg);
}

/* Tables & Horizontal Scroll Container */
.cd-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--cd-border-color);
    border-radius: 10px;
    margin-top: 10px;
}

.cd-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: #FFFFFF;
    font-size: 0.88rem;
}

.cd-table th, .cd-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--cd-border-color);
    text-align: left;
}

.cd-table th {
    background: #F8FAFC;
    color: var(--cd-maroon);
    font-weight: 700;
    position: sticky;
    top: 0;
}

.cd-table tr.active-row {
    background-color: #FFF8EA !important;
    font-weight: 700;
}

.cd-table tr:hover td {
    background-color: #FFFDF8;
}

/* Callout Notes */
.cd-note {
    background: #FFFDF9;
    border: 1px solid #FDE68A;
    color: #854D0E;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 12px 0;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .cd-metric-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .cd-minimal-card {
        padding: 14px;
    }

    .cd-table {
        font-size: 0.82rem;
    }

    .cd-table th, .cd-table td {
        padding: 8px 10px;
    }
}

/* HIGH-SPECIFICITY FAQ ACCORDION OVERRIDES */
html body .pkr-faq-section,
html body .vng-faq-section {
    max-width: 840px !important;
    margin: 40px auto 60px auto !important;
    padding: 0 !important;
    text-align: center !important;
    background: transparent !important;
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

html body .pkr-faq-container,
html body .vng-faq-container {
    max-width: 840px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

html body .pkr-faq-item,
html body .vng-faq-entry {
    background: #FFF8EA !important;
    background-color: #FFF8EA !important;
    border: 1.5px solid #E4D5C1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

html body .pkr-faq-item.active,
html body .vng-faq-entry.active,
html body .vng-faq-entry:has(.vng-faq-toggle[aria-expanded="true"]) {
    background: #FFFDF8 !important;
    background-color: #FFFDF8 !important;
    border-color: #C98A58 !important;
}

html body .pkr-faq-question,
html body .vng-faq-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 16px 20px !important;
    color: #682B12 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    box-sizing: border-box !important;
    gap: 14px !important;
}

html body .faq-icon,
html body .vng-faq-symbol {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: #65250C !important;
    background: #FFFDF8 !important;
    border-radius: 50% !important;
    border: 1px solid #D8C3AB !important;
    font-family: Arial, sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

html body .pkr-faq-item.active .faq-icon,
html body .vng-faq-entry.active .vng-faq-symbol,
html body .pkr-faq-item.active .vng-faq-symbol {
    color: #FFFFFF !important;
    background: #65250C !important;
    border-color: #65250C !important;
    transform: none !important;
}

html body .pkr-faq-answer,
html body .vng-faq-answer {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 20px 18px 20px !important;
    color: #4A4A4A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 0.96rem !important;
    line-height: 1.7 !important;
    box-sizing: border-box !important;
}

html body .pkr-faq-answer p,
html body .vng-faq-answer p {
    color: #4A4A4A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 0.96rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

html body .pkr-faq-answer[hidden],
html body .vng-faq-answer[hidden],
html body .pkr-faq-item:not(.active) .pkr-faq-answer[hidden],
html body .vng-faq-entry:not(.active) .pkr-faq-answer[hidden] {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

