.bc-section,
.bc-app {
    color: #111;
    font-family: inherit;
}

.bc-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 20px;
}

.bc-section h1,
.bc-app h2,
.bc-app h3 {
    letter-spacing: 0;
}

.bc-lead,
.bc-app-header p {
    max-width: 760px;
    color: #49443b;
    font-size: 18px;
    line-height: 1.7;
}

.bc-app {
    max-width: 1080px;
    margin: 32px auto;
    padding: 32px;
    border: 1px solid #e8decd;
    background: #fffdf9;
}

.bc-app-header {
    margin-bottom: 28px;
}

.bc-kicker {
    margin: 0 0 8px;
    color: #9a793f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bc-field,
.bc-checkbox {
    display: grid;
    gap: 8px;
}

.bc-field-full {
    margin-top: 16px;
}

.bc-field span,
.bc-checkbox span {
    color: #2a2723;
    font-size: 14px;
    font-weight: 650;
}

.bc-field input,
.bc-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d8cbb7;
    background: #fff;
    color: #111;
    padding: 10px 12px;
    font: inherit;
}

.bc-field textarea {
    resize: vertical;
}

.bc-diagnostic-domains {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.bc-domain {
    border: 1px solid #e4d8c7;
    background: #fff;
    padding: 18px;
}

.bc-domain legend {
    padding: 0 8px;
    color: #111;
    font-weight: 800;
}

.bc-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 24px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1ebe2;
}

.bc-range-row:last-child {
    border-bottom: 0;
}

.bc-range-row span {
    color: #38332c;
    line-height: 1.45;
}

.bc-range-row strong {
    color: #9a793f;
    text-align: right;
}

.bc-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.bc-checkbox {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    margin: 18px 0;
}

.bc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.bc-button:hover,
.bc-button:focus {
    background: #9a793f;
    border-color: #9a793f;
    color: #fff;
}

.bc-card-grid,
.bc-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bc-card,
.bc-score-card,
.bc-aid-card {
    border: 1px solid #e3d7c4;
    background: #fff;
    padding: 20px;
    color: #111;
    text-decoration: none;
}

.bc-card span {
    font-size: 18px;
    font-weight: 750;
}

.bc-score-card span {
    display: block;
    min-height: 42px;
    color: #4a443b;
    font-weight: 650;
}

.bc-score-card strong {
    display: block;
    margin: 8px 0;
    color: #111;
    font-size: 34px;
    line-height: 1;
}

.bc-meter {
    height: 8px;
    overflow: hidden;
    background: #f0e7da;
}

.bc-meter i {
    display: block;
    height: 100%;
    background: #9a793f;
}

.bc-report-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.bc-analysis,
.bc-next-step {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8decd;
}

.bc-aid-list {
    display: grid;
    gap: 16px;
}

.bc-aid-card h3 {
    margin-top: 0;
}

.bc-aid-card dl {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 8px 16px;
}

.bc-aid-card dt {
    color: #9a793f;
    font-weight: 750;
}

.bc-aid-card dd {
    margin: 0;
}

.bc-text-link {
    color: #111;
    font-weight: 750;
    text-decoration-color: #9a793f;
}

.bc-admin .bc-score-grid {
    margin: 20px 0;
}

@media (max-width: 900px) {
    .bc-form-grid,
    .bc-diagnostic-domains,
    .bc-choice-grid,
    .bc-card-grid,
    .bc-score-grid {
        grid-template-columns: 1fr;
    }

    .bc-range-row {
        grid-template-columns: 1fr;
    }

    .bc-range-row strong {
        text-align: left;
    }

    .bc-aid-card dl {
        grid-template-columns: 1fr;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .bc-report,
    .bc-report * {
        visibility: visible;
    }

    .bc-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        border: 0;
        background: #fff;
    }

    .bc-report-actions {
        display: none;
    }
}
