﻿.da-fc {
    padding: 38px 0 60px;
    color: var(--ui-ink, #151c2b);
}

    .da-fc a {
        color: var(--ui-accent, #2563eb);
        text-underline-offset: 3px;
    }

.da-fc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    color: var(--ui-muted, #647084);
    font-size: 12px;
}

    .da-fc-breadcrumb a {
        text-decoration: none;
    }

.da-fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.da-fc-eyebrow {
    margin: 0 0 16px;
    color: var(--ui-accent, #2563eb);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.da-fc-header h1 {
    margin: 0;
    font-size: clamp(30px, 3.3vw, 46px);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

    .da-fc-header h1 > span {
        color: var(--ui-accent, #2563eb);
    }

.da-fc-description {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--ui-muted, #647084);
    font-size: 14px;
    line-height: 1.8;
}

.da-fc-counter {
    display: flex;
    flex: 0 0 156px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 14px;
    background: var(--ui-primary-soft, #e8efff);
    color: var(--ui-accent, #2563eb);
    text-align: center;
}

    .da-fc-counter strong {
        font-size: 36px;
        line-height: 1.1;
    }

    .da-fc-counter span {
        margin-top: 10px;
        font-size: 11px;
    }

.da-fc-notice {
    padding: 14px 18px;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 10px;
    background: var(--ui-panel-soft, #eef2f8);
    color: var(--ui-muted, #647084);
    font-size: 13px;
}

.da-fc-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 15px;
    background: var(--ui-panel, #ffffff);
}

.da-fc-wide {
    grid-column: span 2;
}

.da-fc-field {
    min-width: 0;
}

    .da-fc-field label {
        display: block;
        margin-bottom: 9px;
        color: var(--ui-ink, #151c2b);
        font-size: 12px;
        font-weight: 700;
    }

    .da-fc-field input,
    .da-fc-field select {
        display: block;
        width: 100%;
        min-height: 46px;
        padding: 11px 13px;
        border: 1px solid var(--ui-border, #e0e6ef);
        border-radius: 8px;
        background: var(--ui-bg, #f5f7fb);
        color: var(--ui-ink, #151c2b);
        font: inherit;
        font-size: 13px;
    }

        .da-fc-field input::placeholder {
            color: var(--ui-muted, #647084);
            opacity: 1;
        }

.da-fc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--ui-primary, #2563eb);
    border-radius: 8px;
    background: var(--ui-primary, #2563eb);
    color: #ffffff !important;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .da-fc-button:hover {
        filter: brightness(1.08);
    }

.da-fc-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 20px;
    font-size: 12px;
}

    .da-fc-results p {
        margin: 0;
    }

        .da-fc-results p > span {
            margin-left: 5px;
            color: var(--ui-muted, #647084);
        }

.da-fc-empty {
    padding: 48px 24px;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 15px;
    background: var(--ui-panel, #ffffff);
    text-align: center;
}

    .da-fc-empty h2 {
        margin: 0 0 12px;
        font-size: 23px;
    }

    .da-fc-empty p {
        margin: 0 0 24px;
        color: var(--ui-muted, #647084);
        font-size: 14px;
        line-height: 1.8;
    }

.da-fc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
}

.da-fc-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 15px;
    background: var(--ui-panel, #ffffff);
}

.da-fc-card-main {
    padding: 20px;
}

.da-fc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.da-fc-maker {
    color: var(--ui-accent, #2563eb);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
}

.da-fc-tag {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 6px;
    background: var(--ui-panel-soft, #eef2f8);
    font-size: 11px;
    white-space: nowrap;
}

.da-fc-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ui-panel-soft, #eef2f8);
}

    .da-fc-media img {
        display: block;
        width: 100%;
        height: 100%;
        padding: 16px;
        object-fit: contain;
    }

.da-fc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px;
    color: var(--ui-muted, #647084);
    font-size: 11px;
}

    .da-fc-placeholder svg {
        width: 68px;
        height: 68px;
    }

.da-fc-card h2 {
    min-height: 52px;
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.da-fc-specs,
.da-fc-detail-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.da-fc-specs {
    padding-top: 20px;
    border-top: 1px solid var(--ui-border, #e0e6ef);
}

    .da-fc-specs > div,
    .da-fc-detail-specs > div {
        min-width: 0;
    }

    .da-fc-specs dt,
    .da-fc-detail-specs dt {
        margin-bottom: 6px;
        color: var(--ui-muted, #647084);
        font-size: 11px;
        font-weight: 400;
    }

    .da-fc-specs dd,
    .da-fc-detail-specs dd {
        margin: 0;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

        .da-fc-detail-specs dd > small {
            display: block;
            margin-top: 4px;
            color: var(--ui-muted, #647084);
            font-size: 10px;
            font-weight: 400;
        }

.da-fc-details {
    margin-top: 24px;
    border-top: 1px solid var(--ui-border, #e0e6ef);
}

.da-fc-detail {
    border-bottom: 1px solid var(--ui-border, #e0e6ef);
}

    .da-fc-detail:last-child {
        border-bottom: 0;
    }

    .da-fc-detail > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 0;
        color: var(--ui-ink, #151c2b);
        font-size: 12px;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
    }

        .da-fc-detail > summary::-webkit-details-marker {
            display: none;
        }

        .da-fc-detail > summary::after {
            content: "+";
            margin-left: auto;
            color: var(--ui-accent, #2563eb);
            font-size: 18px;
        }

    .da-fc-detail[open] > summary::after {
        content: "−";
    }

.da-fc-count {
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--ui-panel-soft, #eef2f8);
    color: var(--ui-muted, #647084);
    font-size: 10px;
}

.da-fc-detail-body {
    padding: 2px 0 16px;
}

    .da-fc-detail-body h3 {
        margin: 18px 0 10px;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.6;
    }

.da-fc-subcard {
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid var(--ui-border, #e0e6ef);
    border-radius: 10px;
    background: var(--ui-panel-soft, #eef2f8);
}

    .da-fc-subcard:last-child {
        margin-bottom: 0;
    }

    .da-fc-subcard h3 {
        margin-top: 0;
    }

.da-fc-detail-wide {
    grid-column: 1 / -1;
}

.da-fc-notes,
.da-fc-muted {
    margin: 10px 0 16px;
    color: var(--ui-muted, #647084);
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.da-fc-notes {
    white-space: pre-line;
}

.da-fc-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--ui-border, #e0e6ef);
    font-size: 10px;
}

    .da-fc-source-row span {
        color: var(--ui-muted, #647084);
    }

.da-fc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    border-top: 1px solid var(--ui-border, #e0e6ef);
    background: var(--ui-panel-soft, #eef2f8);
    font-size: 11px;
}

    .da-fc-card-footer > div {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .da-fc-card-footer > div > span {
            color: var(--ui-muted, #647084);
            font-size: 10px;
        }

    .da-fc-card-footer strong {
        font-size: 10px;
        font-weight: 500;
    }

    .da-fc-card-footer a {
        font-weight: 700;
        text-decoration: none;
    }

.da-fc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

    .da-fc-pagination a,
    .da-fc-pagination > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
        padding: 9px 12px;
        border: 1px solid var(--ui-border, #e0e6ef);
        border-radius: 8px;
        background: var(--ui-panel, #ffffff);
        font-size: 12px;
        text-decoration: none;
    }

    .da-fc-pagination .is-current {
        border-color: var(--ui-primary, #2563eb);
        background: var(--ui-primary, #2563eb);
        color: #ffffff;
    }

.da-fc-footnote {
    margin-top: 30px;
    color: var(--ui-muted, #647084);
    font-size: 12px;
    line-height: 1.9;
}

    .da-fc-footnote p {
        margin: 0 0 10px;
    }

.da-fc a:focus-visible,
.da-fc button:focus-visible,
.da-fc input:focus-visible,
.da-fc select:focus-visible,
.da-fc summary:focus-visible {
    outline: 3px solid var(--ui-accent, #2563eb);
    outline-offset: 4px;
}

@media (max-width: 1150px) {
    .da-fc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .da-fc-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .da-fc {
        padding-top: 26px;
    }

    .da-fc-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .da-fc-counter {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 14px;
        min-height: 0;
        padding: 14px 18px;
    }

        .da-fc-counter strong {
            font-size: 28px;
        }

        .da-fc-counter span {
            margin-top: 0;
        }

    .da-fc-filters,
    .da-fc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .da-fc-wide {
        grid-column: auto;
    }

    .da-fc-filters {
        padding: 17px;
    }

    .da-fc-media {
        height: 240px;
    }
}
