/* Global stylesheet. Keep the existing numeric-grid stylesheet.
   No rules override numeric fields, grid widths, guidance shadows or row borders. */
.ff-cost-of-capital {
    --notice-text: #465264;
    --notice-title: #253241;
    --notice-info: #116471;
    --notice-info-bg: #f5f8f9;
    --notice-warning: #905411;
    --notice-warning-bg: #fff7eb;
    --notice-danger: #a93650;
    --notice-danger-bg: #fff1f4;
    --notice-success: #276d47;
    --notice-success-bg: #eff7f2;
    --notice-focus: #116471;
    background: #fff;
    border-radius: 16px;
    padding: 26px 28px;
    min-height: 60vh;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

    .ff-cost-of-capital > .ff-cc-notices {
        display: grid;
        gap: 10px;
    }

.ff-cc-notices > .rz-alert {
    margin: 0 0 6px;
}

.ff-cost-of-capital > .ff-cc-tabs {
    min-width: 0;
    flex: 1;
}

    .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 28px;
        overflow-x: auto;
        overflow-y: hidden;
        border: 0;
        background: transparent;
        margin: 0 0 26px;
    }

        .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-nav > li {
            flex: 0 0 auto;
            border: 0;
            border-bottom: 2px solid transparent;
            border-radius: 0;
            background: transparent;
            margin: 0;
        }

            .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-nav > li > a {
                padding: 16px 0;
                font-size: 13px;
                color: #607579;
                white-space: nowrap;
                background: transparent;
            }

            .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-nav > li.rz-tabview-selected {
                border-bottom-color: #236f70;
            }

                .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-nav > li.rz-tabview-selected > a {
                    color: #236f70;
                    font-weight: 600;
                }

    .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-panels {
        padding: 0;
        border: 0;
        background: transparent;
        min-width: 0;
    }

        .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-panels > .rz-tabview-panel {
            padding: 0;
            min-width: 0;
        }

.ff-cc-equity-content {
    min-width: 0;
}

.ff-cost-of-equity {
    min-width: 0;
    container: ff-cost-of-equity / inline-size;
}

    .ff-cost-of-equity > .ff-ce-action-strip {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        background: #fafbfc;
        padding: 20px 23px;
        border-radius: 10px;
        margin-bottom: 25px;
    }

.ff-ce-action-strip > .ff-ce-action-copy {
    min-width: 0;
}

.ff-ce-action-copy > .ff-ce-eyebrow {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #607579;
    margin: 0 0 7px;
    line-height: 1.6;
}

.ff-ce-action-copy > .ff-ce-action-description {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
    color: #45605a;
}

.ff-ce-action-strip > .ff-ce-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.ff-cost-of-equity > .ff-ce-grid-scroll {
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
    padding: 3px 2px 14px;
}

    .ff-cost-of-equity > .ff-ce-grid-scroll:focus-visible {
        outline: 2px solid #236f70;
        outline-offset: 3px;
    }
/* Result spacing only; original bold-numeric class remains authoritative. */
.ff-cost-of-equity .ff-ce-result-row {
    margin-top: 16px;
}

.ff-cost-of-capital > .ff-cc-sources {
    margin-top: 28px;
    padding-top: 21px;
    border-top: 1px solid #e2e9e5;
}

.ff-cc-sources > h6 {
    font-size: 11px;
    font-weight: 600;
    color: #607579;
    margin: 0 0 10px;
    line-height: 1.6;
}

.ff-cc-sources > .ff-cc-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 27px;
}

.ff-cc-source-list > p {
    color: #607579;
    font-size: 11px;
    line-height: 1.8;
    margin: 0;
}

    .ff-cc-source-list > p > a {
        color: #35685f;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .ff-cc-source-list > p > a:hover {
            color: #204b43;
        }

        .ff-cc-source-list > p > a:focus-visible {
            outline: 2px solid #236f70;
            outline-offset: 3px;
        }

.ff-cc-sources > .ff-cc-legal,
.ff-cc-sources > .ff-cc-copyright {
    font-size: 10px;
    line-height: 1.7;
    color: #71817d;
    margin: 11px 0 0;
}

@container ff-cost-of-equity (max-width: 850px) {
    .ff-cost-of-equity > .ff-ce-action-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .ff-ce-action-strip > .ff-ce-actions {
        flex-shrink: 1;
    }
}

@media (max-width: 650px) {
    .ff-cost-of-capital {
        padding: 18px 14px;
    }

        .ff-cost-of-capital > .ff-cc-tabs > .rz-tabview-nav {
            gap: 22px;
            margin-bottom: 20px;
        }

    .ff-cost-of-equity > .ff-ce-action-strip {
        padding: 19px 17px;
    }

    .ff-cc-sources > .ff-cc-source-list {
        display: block;
    }

    .ff-cc-source-list > p {
        margin-bottom: 5px;
    }
}

/* Interest-manager notice stays outside the horizontally scrolling numeric grid. */
.ff-cost-of-equity > .ff-im-notices {
    margin-top: 16px;
}

.ff-im-notices > .rz-alert {
    margin: 0;
}
