.abf-wrap {
    --abf-ink: #172033;
    --abf-muted: #64748b;
    --abf-line: #e2e8f0;
    --abf-card: #ffffff;
    --abf-soft: #f8fafc;
    --abf-brand: #0f766e;
    --abf-brand-dark: #115e59;
    --abf-accent: #f59e0b;
    --abf-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);

    color: var(--abf-ink);
    margin: 32px auto;
    max-width: 1180px;
    padding: 0 18px;
}

.abf-wrap * {
    box-sizing: border-box;
}

.abf-head {
    margin-bottom: 20px;
}

.abf-head h2 {
    color: var(--abf-ink);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.06;
    margin: 0 0 10px;
}

.abf-head p {
    color: var(--abf-muted);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    max-width: 720px;
}

.abf-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.abf-filter {
    align-items: center;
    appearance: none;
    background: var(--abf-soft);
    border: 1px solid var(--abf-line);
    border-radius: 999px;
    color: var(--abf-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 750;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.abf-filter:hover,
.abf-filter:focus-visible {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.abf-filter.is-active {
    background: var(--abf-brand);
    border-color: var(--abf-brand);
    color: #ffffff;
}

.abf-status {
    color: var(--abf-muted);
    font-size: 14px;
    min-height: 20px;
    margin: -8px 0 14px;
}

.abf-wrap.is-loading .abf-grid {
    opacity: 0.58;
    pointer-events: none;
}

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

.abf-card {
    background: var(--abf-card);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.abf-card:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: var(--abf-shadow);
    transform: translateY(-3px);
}

.abf-image-link {
    background: #dbeafe;
    display: block;
    overflow: hidden;
    position: relative;
}

.abf-image {
    aspect-ratio: 16 / 10;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.abf-card:hover .abf-image {
    transform: scale(1.035);
}

.abf-image,
.abf-image-placeholder {
    transition: transform 240ms ease;
}

.abf-image-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 24% 20%, rgba(245, 158, 11, 0.9), transparent 34%),
        linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    font-size: 64px;
    font-weight: 850;
    justify-content: center;
}

.abf-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.abf-meta-row,
.abf-footer {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.abf-meta-row {
    color: var(--abf-muted);
    font-size: 13px;
}

.abf-category {
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    color: var(--abf-brand-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    max-width: 60%;
    overflow: hidden;
    padding: 7px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abf-title {
    font-size: 21px;
    font-weight: 820;
    line-height: 1.22;
    margin: 0;
}

.abf-title a {
    color: var(--abf-ink);
    text-decoration: none;
}

.abf-title a:hover,
.abf-title a:focus-visible {
    color: var(--abf-brand-dark);
}

.abf-excerpt {
    color: var(--abf-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.abf-footer {
    border-top: 1px solid var(--abf-line);
    margin-top: auto;
    padding-top: 14px;
}

.abf-author {
    color: var(--abf-muted);
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abf-read-more {
    align-items: center;
    color: var(--abf-brand-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 850;
    gap: 6px;
    text-decoration: none;
}

.abf-read-more:hover,
.abf-read-more:focus-visible {
    color: var(--abf-accent);
}

.abf-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.abf-load-more {
    align-items: center;
    appearance: none;
    background: var(--abf-ink);
    border: 1px solid var(--abf-ink);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 850;
    justify-content: center;
    min-height: 46px;
    padding: 13px 24px;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.abf-load-more:hover,
.abf-load-more:focus-visible {
    background: var(--abf-brand);
    border-color: var(--abf-brand);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.abf-load-more:disabled,
.abf-load-more.is-disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.abf-empty {
    background: var(--abf-soft);
    border: 1px dashed var(--abf-line);
    border-radius: 8px;
    color: var(--abf-muted);
    margin: 18px 0 0;
    padding: 24px;
    text-align: center;
}

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

@media (max-width: 620px) {
    .abf-wrap {
        margin: 24px auto;
        padding: 0 14px;
    }

    .abf-toolbar {
        gap: 8px;
    }

    .abf-filter {
        flex: 1 1 calc(50% - 8px);
        padding-left: 12px;
        padding-right: 12px;
    }

    .abf-grid {
        grid-template-columns: 1fr;
    }

    .abf-meta-row,
    .abf-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .abf-category {
        max-width: 100%;
    }
}