/* Birth Comparison — brc- prefix */

/* Unit toggle */
.brc-unit-toggle {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(139,123,184,0.20);
    margin-bottom: 10px;
}

.brc-toggle-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: #fff;
    color: #695A80;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.brc-toggle-btn:first-child {
    border-right: 1.5px solid rgba(139,123,184,0.20);
}

.brc-toggle-active {
    background: #8B7BB8;
    color: #fff;
}

.brc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.brc-section-header .brc-section-title {
    margin-bottom: 0;
}

.brc-unit-toggle-results {
    margin-bottom: 0;
}

/* Form field overrides — number/text inputs need full styling */
.calc-form-card input[type="number"],
.calc-form-card input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    color: #3D2F50;
    transition: all 0.2s;
}

.calc-form-card input[type="number"]:focus,
.calc-form-card input[type="text"]:focus {
    outline: none;
    border-color: #8B7BB8;
    box-shadow: 0 0 0 3px rgba(139,123,184,0.10);
}

.calc-form-card > form > div {
    margin-bottom: 14px;
}

/* Form: weight fields side by side */
.brc-weight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.brc-weight-row .field-label {
    display: block;
    margin-bottom: 4px;
}

/* Score circle */
.brc-score-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.brc-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid #8B7BB8;
    background: rgba(139,123,184,0.08);
    margin: 0 auto 12px;
}

.brc-score-number {
    font-size: 42px;
    font-weight: 900;
    color: #8B7BB8;
    line-height: 1;
}

.brc-score-pct {
    font-size: 20px;
    font-weight: 700;
}

.brc-score-label {
    font-size: 20px;
    font-weight: 800;
    color: #3D2F50;
    margin: 0 0 4px;
}

.brc-baby-name {
    font-size: 15px;
    color: #695A80;
    margin: 0 0 16px;
    font-style: italic;
}

/* Section cards */
.brc-section-card {
    margin: 0 auto 20px;
    background: #fff;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    padding: 24px;
}

.brc-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #3D2F50;
    margin: 0 0 16px;
    text-transform: none;
    letter-spacing: 0;
}

/* Arrival card */
.brc-arrival-hero {
    text-align: center;
    margin-bottom: 20px;
}

.brc-arrival-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.brc-arrival-days {
    font-size: 28px;
    font-weight: 900;
    color: #8B7BB8;
    margin: 0 0 4px;
    line-height: 1.2;
}

.brc-arrival-gest {
    font-size: 14px;
    color: #695A80;
    margin: 0 0 16px;
}

.brc-date-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.brc-date-box {
    background: rgba(139,123,184,0.06);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.brc-date-label {
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}

.brc-date-value {
    font-size: 15px;
    font-weight: 800;
    color: #3D2F50;
    margin: 0 0 2px;
}

.brc-date-day {
    font-size: 13px;
    color: #695A80;
    margin: 0;
}

/* Stats comparison table */
.brc-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.brc-stats-table th {
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 0 10px;
    text-align: center;
    border-bottom: 1.5px solid rgba(139,123,184,0.10);
}

.brc-stats-table th:first-child {
    text-align: left;
}

.brc-stats-table td {
    padding: 12px 0;
    font-size: 15px;
    color: #3D2F50;
    text-align: center;
    border-bottom: 1px solid rgba(139,123,184,0.06);
}

.brc-stats-table td:first-child {
    text-align: left;
    font-weight: 700;
}

.brc-stats-table tr:last-child td {
    border-bottom: none;
}

.brc-diff-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.brc-diff-close {
    background: rgba(123,200,184,0.15);
    color: #3d8b7a;
}

.brc-diff-moderate {
    background: rgba(230,180,80,0.15);
    color: #b08820;
}

.brc-diff-far {
    background: rgba(200,100,100,0.15);
    color: #a04040;
}

/* Fun facts grid */
.brc-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.brc-fact-card {
    background: rgba(139,123,184,0.06);
    border: 1.5px solid rgba(139,123,184,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}

.brc-fact-label {
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.brc-fact-values {
    font-size: 15px;
    color: #3D2F50;
    margin: 0 0 8px;
    line-height: 1.4;
}

.brc-fact-values strong {
    font-weight: 800;
}

.brc-fact-indicator {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}

.brc-fact-match {
    background: rgba(123,200,184,0.15);
    color: #3d8b7a;
}

.brc-fact-changed {
    background: rgba(200,140,200,0.15);
    color: #8b5a8b;
}

/* Rhyme card */
.brc-rhyme-day {
    font-size: 15px;
    color: #695A80;
    margin: 0 0 8px;
}

.brc-rhyme-text {
    font-size: 18px;
    font-weight: 800;
    color: #3D2F50;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* First section card after form needs top margin */
.calc-form-card + .brc-section-card {
    margin-top: 24px;
}

/* About / content text */
.brc-content-text {
    font-size: 15px;
    color: #3D2F50;
    line-height: 1.7;
    margin: 0;
}

/* FAQ */
.brc-faq-item {
    margin-bottom: 16px;
}

.brc-faq-item:last-child {
    margin-bottom: 0;
}

.brc-faq-q {
    font-size: 15px;
    font-weight: 800;
    color: #3D2F50;
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: 0;
}

.brc-faq-a {
    font-size: 15px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* Disclaimer */
.brc-disclaimer {
    margin: 12px auto 32px;
    font-size: 13px;
    color: #695A80;
    text-align: center;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
    .brc-score-circle {
        width: 100px;
        height: 100px;
    }

    .brc-score-number {
        font-size: 34px;
    }

    .brc-arrival-days {
        font-size: 24px;
    }

    .brc-date-compare {
        grid-template-columns: 1fr;
    }

    .brc-facts-grid {
        grid-template-columns: 1fr;
    }

    .brc-section-card {
        margin-left: 12px;
        margin-right: 12px;
    }

    .brc-disclaimer {
        margin-left: 12px;
        margin-right: 12px;
    }

    .brc-rhyme-text {
        font-size: 16px;
    }
}
