.chfb-wrap,
.chfb-wrap * {
    box-sizing: border-box;
}

.chfb-wrap {
    --chfb-green: #2f7415;
    --chfb-green-dark: #245b10;
    --chfb-green-soft: #f2f8ee;
    --chfb-border: #dfe5db;
    --chfb-text: #202421;
    --chfb-muted: #626961;
    --chfb-surface: #ffffff;
    color: var(--chfb-text);
    font-family: inherit;
    line-height: 1.5;
    width: 100%;
}

.chfb-intro {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    margin: 0 0 28px;
    background: var(--chfb-green-soft);
    border: 1px solid #d7e7cf;
    border-radius: 12px;
}

.chfb-intro-icon,
.chfb-archive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--chfb-green);
}

.chfb-intro p {
    margin: 0;
}

.chfb-intro-title {
    font-weight: 700;
    font-size: 16px;
}

.chfb-year,
.chfb-archive-year {
    margin: 0 0 30px;
}

.chfb-year-title {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0 0 14px;
    color: var(--chfb-green-dark);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    line-height: 1.2;
}

.chfb-year-title svg {
    display: block;
}

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

.chfb-card {
    display: grid;
    grid-template-columns: minmax(105px, 36%) 1fr;
    gap: 16px;
    min-width: 0;
    padding: 14px;
    background: var(--chfb-surface);
    border: 1px solid var(--chfb-border);
    border-radius: 12px;
    box-shadow: 0 3px 13px rgba(19, 34, 15, 0.07);
}

.chfb-cover {
    min-width: 0;
}

.chfb-cover-image,
.chfb-cover-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 0.72;
    border-radius: 4px;
}

.chfb-cover-image {
    height: auto;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.chfb-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: #eef2eb;
    color: var(--chfb-green);
}

.chfb-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chfb-card-title {
    margin: 2px 0 9px;
    font-size: 17px;
    line-height: 1.35;
    color: var(--chfb-text);
}

.chfb-number {
    display: inline-block;
    margin: 0 0 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e8f2e2;
    color: #285d16;
    font-weight: 700;
    font-size: 17px;
}

.chfb-period {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 13px;
    color: #474d48;
    font-size: 16px;
}

.chfb-period svg {
    width: 17px;
    height: 17px;
}

.chfb-download,
.chfb-archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 14px;
    border: 2px solid var(--chfb-green);
    border-radius: 7px;
    background: var(--chfb-green);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.chfb-download:hover,
.chfb-download:focus-visible,
.chfb-archive-button:hover,
.chfb-archive-button:focus-visible {
    background: var(--chfb-green-dark);
    border-color: var(--chfb-green-dark);
    color: #fff !important;
}

.chfb-download:focus-visible,
.chfb-archive-button:focus-visible,
.chfb-table-download:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.chfb-download-disabled {
    background: #707670;
    border-color: #707670;
    cursor: not-allowed;
}

.chfb-size {
    margin: 8px 0 0;
    color: var(--chfb-muted);
    font-size: 12px;
}

.chfb-archive-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 34px;
    padding: 18px 20px;
    background: var(--chfb-green-soft);
    border: 1px solid #cfe0c6;
    border-radius: 12px;
}

.chfb-archive-cta-text {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.chfb-archive-cta-text strong,
.chfb-archive-cta-text span {
    display: block;
}

.chfb-archive-cta-text strong {
    margin-bottom: 2px;
}

.chfb-archive-cta-text span:not(.chfb-archive-icon) {
    color: var(--chfb-muted);
}

.chfb-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--chfb-border);
    border-radius: 10px;
    background: #fff;
}

.chfb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.chfb-table th,
.chfb-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e8e3;
    vertical-align: middle;
}

.chfb-table th {
    background: #f4f8f1;
    color: #222;
    font-weight: 700;
}

.chfb-table tr:last-child td {
    border-bottom: 0;
}

.chfb-number-inline {
    margin: 0;
    white-space: nowrap;
}

.chfb-table-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--chfb-green-dark) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.chfb-table-download:hover {
    color: #173b0b !important;
}

.chfb-muted,
.chfb-empty {
    color: var(--chfb-muted);
}

.chfb-empty {
    padding: 18px;
    border: 1px solid var(--chfb-border);
    border-radius: 10px;
    background: #fff;
}

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

@media (max-width: 720px) {
    .chfb-grid {
        grid-template-columns: 1fr;
    }

    .chfb-card {
        grid-template-columns: 112px 1fr;
    }

    .chfb-archive-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .chfb-archive-button {
        width: 100%;
    }

    .chfb-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .chfb-table,
    .chfb-table thead,
    .chfb-table tbody,
    .chfb-table tr,
    .chfb-table td {
        display: block;
        width: 100%;
    }

    .chfb-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .chfb-table tr {
        margin-bottom: 12px;
        padding: 8px 14px;
        border: 1px solid var(--chfb-border);
        border-radius: 10px;
        background: #fff;
    }

    .chfb-table td {
        display: grid;
        grid-template-columns: minmax(90px, 34%) 1fr;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid #ecefec;
    }

    .chfb-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #303530;
    }

    .chfb-table tr td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 440px) {
    .chfb-card {
        grid-template-columns: 96px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .chfb-download {
        width: 100%;
    }

    .chfb-intro {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chfb-download,
    .chfb-archive-button {
        transition: none;
    }
}