@keyframes calc-spin {
    to { transform: rotate(360deg); }
}

@keyframes sb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

@keyframes sb-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ale-results-grid {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
    .ale-results-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Card Container & Form Grid Symmetry */
.sb-form-card {
    background: #FFFDF9;
    border: 1.5px solid #E7E0D6;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sb-form-header {
    margin-bottom: 24px;
    border-bottom: 1px dashed #E7E0D6;
    padding-bottom: 14px;
}
.sb-form-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    color: #B86C10;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
}
.sb-form-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1C1917;
    margin: 0;
}

.sb-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 18px;
    align-items: flex-end;
}
@media (max-width: 900px) {
    .sb-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .sb-form-grid {
        grid-template-columns: 1fr;
    }
}

.ale-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ale-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #44403C;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.ale-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #1C1917;
    border-bottom: 1px solid #FAF4E8;
    transition: background 0.15s ease;
}
.ale-autocomplete-item:hover {
    background: #FAF4E8;
    color: #B86C10;
}

/* Style overrides for inputs matching AstroLeaf standard with high specificity */
html body .ale-form-wrapper .ale-input-wrap {
    position: relative;
    width: 100%;
}

html body .ale-form-wrapper .ale-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #B86C10;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

html body .ale-form-wrapper .ale-input,
html body .ale-form-wrapper select.ale-input,
html body .ale-form-wrapper input.ale-input {
    height: 50px !important;
    border: 1.5px solid #CBD5E1 !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border-radius: 10px !important;
    padding: 0 14px 0 44px !important;
    font-size: 0.92rem !important;
    color: #1E293B !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif) !important;
    box-sizing: border-box !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

html body .ale-form-wrapper .ale-input:focus,
html body .ale-form-wrapper input.ale-input:focus,
html body .ale-form-wrapper select.ale-input:focus {
    border-color: #D97706 !important;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16) !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
}

/* Premium Dropdown Style: Custom vector chevron */
select.ale-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    height: 50px !important;
}
select.ale-input:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

select option {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    font-weight: 600 !important;
}

.input-error, input.input-error, select.input-error {
    border-color: #DC2626 !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Webkit Date & Time Picker styling */
input[type="date"].ale-input,
input[type="time"].ale-input {
    padding-right: 14px !important;
}
.ale-input::-webkit-calendar-picker-indicator {
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    align-self: center !important;
    height: 18px !important;
    width: 18px !important;
    filter: invert(41%) sepia(19%) saturate(1148%) hue-rotate(338deg) brightness(93%) contrast(89%) !important;
    opacity: 0.85 !important;
    transition: filter 0.25s ease, opacity 0.25s ease !important;
}
.ale-input::-webkit-calendar-picker-indicator:hover {
    filter: invert(53%) sepia(51%) saturate(1007%) hue-rotate(345deg) brightness(87%) contrast(92%) !important;
    opacity: 1 !important;
}
.ale-input::-webkit-datetime-edit,
.ale-input::-webkit-datetime-edit-fields-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
}
.ale-input {
    color-scheme: light !important;
}

#clear-pob:hover {
    color: #B86C10 !important;
}

/* Submit Button */
html body .ale-form-wrapper .ale-btn-submit {
    width: 100% !important;
    height: 50px !important;
    background: #F97316 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-family: var(--font-primary, sans-serif) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(184, 108, 16, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}
html body .ale-form-wrapper .ale-btn-submit:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #E67E22 50%, #C2410C 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(184, 108, 16, 0.35) !important;
}
html body .ale-form-wrapper .ale-btn-submit:active {
    transform: translateY(0) !important;
}

/* Executive Summary Stat Cards */
.sb-metric-card {
    background: #FFFDF9;
    border: 1px solid #E7E0D6;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.sb-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(184, 108, 16, 0.08);
    border-color: #D6C7B5;
}
.sb-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #B86C10);
    opacity: 0.8;
}
.sb-metric-card.strongest::before {
    background: linear-gradient(90deg, #10B981, #059669);
}
.sb-metric-card.weakest::before {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}
.sb-metric-card.balance::before {
    background: linear-gradient(90deg, #6366F1, #4F46E5);
}

.sb-metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #78716C;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.sb-metric-name {
    font-family: var(--font-heading, serif);
    font-size: 1.85rem;
    font-weight: 800;
    color: #1C1917;
    line-height: 1.1;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sb-metric-val {
    font-size: 0.9rem;
    color: #57534E;
    font-weight: 600;
}
.sb-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 6px;
}

/* Status Pill Badges */
.sb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.sb-status-strong {
    background: #E6F4EA;
    color: #137333;
    border: 1px solid #CEEAD6;
}
.sb-status-adequate {
    background: #FEF7E0;
    color: #B06000;
    border: 1px solid #FCE8B2;
}
.sb-status-weak {
    background: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}

/* Strength Bar Items */
.sb-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #FAF8F5;
    border: 1px solid #EAE3D9;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.25s ease;
}
.sb-bar-item:hover {
    background: #FFFDF9;
    border-color: #D6C7B5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.sb-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sb-planet-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-planet-symbol {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FAF4E8;
    border: 1px solid #E7E0D6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #B86C10;
}
.sb-planet-name-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1C1917;
}
.sb-bar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-bar-score {
    font-size: 0.82rem;
    font-weight: 600;
    color: #78716C;
}

.sb-track-wrapper {
    position: relative;
    height: 14px;
    background: #EFE9E0;
    border-radius: 7px;
}
.sb-fill-bar {
    height: 100%;
    border-radius: 7px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.sb-fill-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: sb-shimmer 2.5s infinite;
}
.sb-benchmark-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #78716C;
    z-index: 2;
    opacity: 0.65;
}
.sb-benchmark-line::before {
    content: '1.0';
    position: absolute;
    top: -16px;
    left: -8px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #78716C;
}

/* Drill-Down Selector Pills */
.sb-drill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px !important;
    border: 1px solid #E7E0D6;
    background: #FFFDF9;
    font-size: 0.84rem;
    font-weight: 700;
    color: #78716C;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}
.sb-drill-pill:hover {
    border-color: #B86C10;
    color: #B86C10;
    background: #FFF9F2;
}
.sb-drill-pill.active {
    background: linear-gradient(135deg, #1C1917 0%, #2D2825 100%);
    color: #FFFDF9 !important;
    border-color: #1C1917 !important;
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.25);
}

.sub-comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px dashed #E7E0D6;
}
.sub-comp-row:last-child {
    border-bottom: none;
}
.sub-comp-label {
    font-weight: 600;
    color: #78716C;
}
.sub-comp-val {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: #1C1917;
    background: #FAF4E8;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #E7E0D6;
}

/* Custom Accordions for FAQ & Advanced */
details.sb-accordion {
    background: #FFFDF9;
    border: 1.5px solid #E7E0D6;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}
details.sb-accordion:hover {
    border-color: #D6C7B5;
    background: #FFFFFF;
}
details.sb-accordion summary {
    font-weight: 700;
    color: #1C1917;
    font-size: 0.96rem;
    cursor: pointer;
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
details.sb-accordion summary::-webkit-details-marker {
    display: none;
}
details.sb-accordion summary::after {
    content: '›';
    font-size: 1.4rem;
    font-weight: 400;
    color: #B86C10;
    transition: transform 0.25s ease;
    line-height: 1;
}
details.sb-accordion[open] summary::after {
    transform: rotate(90deg);
}
details.sb-accordion[open] {
    box-shadow: 0 4px 16px rgba(184, 108, 16, 0.06);
    border-color: #D97706;
}

/* Interpretation & Remedy Cards */
.sb-interp-box {
    background: #FAF8F5;
    border: 1px solid #E7E0D6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.sb-interp-box.strong {
    border-left: 4px solid #10B981;
    background: #F0FDF4;
}
.sb-interp-box.weak {
    border-left: 4px solid #EF4444;
    background: #FEF2F2;
}
.sb-remedy-card {
    background: #FFFDF9;
    border: 1px solid #E7E0D6;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
/* --- AstroLeaf Standard Educational Article & FAQ Content System --- */
html body .wy-seo-article,
html body .wy-seo-articles {
    margin-top: 50px !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .wy-article-section {
    background: #FFFDF9 !important;
    border: 1px solid #E7E0D6 !important;
    border-radius: 14px !important;
    padding: 36px 40px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 4px 18px rgba(28, 19, 13, 0.02) !important;
}

html body .wy-article-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(184, 108, 16, 0.08) !important;
    color: #B86C10 !important;
    font-family: var(--font-mono, monospace) !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    margin-bottom: 14px !important;
    border: 1px solid rgba(184, 108, 16, 0.2) !important;
}

html body .wy-article-h2 {
    font-family: var(--font-heading, Georgia, serif) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
    margin: 0 0 16px 0 !important;
}

html body .wy-article-body {
    font-size: 0.98rem !important;
    line-height: 1.82 !important;
    color: #44403C !important;
}

html body .wy-article-body p { margin-bottom: 16px !important; }
html body .wy-article-body p:last-child { margin-bottom: 0 !important; }

/* Table Content Styling */
html body .wy-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    font-size: 0.92rem !important;
}

html body .wy-table th,
html body .wy-table td {
    padding: 12px 14px !important;
    border: 1px solid #E7E0D6 !important;
}

html body .wy-table th {
    background: #FAF4E8 !important;
    font-weight: 700 !important;
    color: #1C1917 !important;
}

/* FAQ Accordion Styling */
html body .wy-faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

html body .wy-faq-item {
    border: 1.5px solid #E7E0D6 !important;
    border-radius: 10px !important;
    background: #FAF8F5 !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

html body .wy-faq-item.active {
    border-color: #B86C10 !important;
    background: #FFFDF9 !important;
    box-shadow: 0 4px 14px rgba(184, 108, 16, 0.08) !important;
}

html body .wy-faq-trigger {
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-family: inherit !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #1C1917 !important;
    text-align: left !important;
    cursor: pointer !important;
    outline: none !important;
    gap: 14px !important;
}

html body .wy-faq-icon {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #B86C10 !important;
    transition: transform 0.25s ease !important;
    line-height: 1 !important;
}

html body .wy-faq-item.active .wy-faq-icon {
    transform: rotate(45deg) !important;
    color: #D97706 !important;
}

html body .wy-faq-content {
    display: none;
    padding: 0 20px 18px 20px !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    color: #44403C !important;
    border-top: 1px solid #E7E0D6 !important;
}

html body .wy-faq-item.active .wy-faq-content {
    display: block !important;
}

@media (max-width: 767px) {
    html body .wy-article-section { padding: 24px 20px !important; }
    html body .wy-faq-trigger { padding: 14px 16px !important; font-size: 0.9rem !important; }
}
