/* Homepage complete catalogue: grouped like a developer workspace rather than
 * a stack of anonymous grey lists. The tools stay fully visible for browsing
 * and internal linking; hierarchy comes from category headers and rhythm. */

.kiv-home-catalog-intro {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 30px 0 12px;
    padding: 20px 22px 19px 25px;
    overflow: hidden;
    border-radius: 6px;
    background: #1d2c26;
    color: #eef6f1;
    scroll-margin-top: 78px;
}

.kiv-home-catalog-intro::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #42c17b;
    content: '';
}

.kiv-home-catalog-intro::after {
    position: absolute;
    right: -52px;
    bottom: -83px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(107, 209, 151, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(107, 209, 151, .025);
    content: '';
}

.kiv-home-catalog-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.kiv-home-catalog-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #75d59e;
    font-size: 8.5px;
    font-weight: 760;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.kiv-home-catalog-intro h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: 22px;
    font-weight: 720;
    letter-spacing: -.03em;
    line-height: 1.18;
}

.kiv-home-catalog-description {
    max-width: 720px;
    margin: 6px 0 0;
    color: #a9bbb2;
    font-size: 11.5px;
    line-height: 1.55;
}

.kiv-home-catalog-total {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .065);
    color: #bdd0c6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .035em;
    white-space: nowrap;
}

.kiv-home-catalog-total::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4bce84;
    box-shadow: 0 0 0 3px rgba(75, 206, 132, .1);
    content: '';
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section {
    --kiv-catalog-accent: #2d9a62;
    --kiv-catalog-soft: #edf7f1;
    margin: 0 0 11px;
    padding: 0 15px 13px;
    border: 0;
    border-radius: 5px;
    background: #ffffff !important;
    box-shadow: inset 0 -1px 0 #dce5e0;
    -webkit-column-gap: 18px;
    column-gap: 18px;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section h3 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    margin: 0 -15px 7px;
    padding: 10px 14px 9px 16px;
    border: 0;
    background: var(--kiv-catalog-soft);
    color: #344a40;
    line-height: 1.25;
    -webkit-column-span: all;
    column-span: all;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section h3::before {
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 2px;
    background: var(--kiv-catalog-accent);
    content: '';
    transform: rotate(45deg);
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section h3 span:first-of-type {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 710;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kiv-home-catalog-count {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    min-height: 19px;
    margin-left: auto;
    padding: 2px 7px !important;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    color: var(--kiv-catalog-accent) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 8px !important;
    font-weight: 730 !important;
    letter-spacing: .03em !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li {
    display: flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    min-height: 32px;
    margin: 0 0 1px;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1.35;
    white-space: normal;
    -webkit-column-break-inside: avoid;
    break-inside: avoid-column;
    page-break-inside: avoid;
    transition: background-color .14s ease, transform .14s ease;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li:hover,
.footer-nav > .list-inline-bg.kiv-home-catalog-section li:focus-within {
    background: var(--kiv-catalog-soft);
    transform: translateX(2px);
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li > .kiv-home-tool-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border: 0 !important;
    border-radius: 4px;
    background: var(--kiv-catalog-soft) !important;
    color: var(--kiv-catalog-accent) !important;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li:hover > .kiv-home-tool-icon,
.footer-nav > .list-inline-bg.kiv-home-catalog-section li:focus-within > .kiv-home-tool-icon {
    background: #ffffff !important;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li > a {
    min-width: 0;
    color: #46574f;
    font-size: 11.5px;
    font-weight: 520;
    line-height: 1.35;
    text-decoration: none;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li > a:hover,
.footer-nav > .list-inline-bg.kiv-home-catalog-section li > a:focus {
    color: var(--kiv-catalog-accent);
    outline: 0;
    text-decoration: none;
}

.footer-nav > .list-inline-bg.kiv-home-catalog-section li > a:focus-visible {
    outline: 2px solid var(--kiv-catalog-accent);
    outline-offset: 2px;
}

.footer-nav #all-tools-list.kiv-home-catalog-section {
    scroll-margin-top: 78px;
}

html.kiv-shell-dark .kiv-home-catalog-intro {
    background: #16231e;
}

html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section {
    background: #22322c !important;
    box-shadow: inset 0 -1px 0 #394c43;
}

html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section h3 {
    background: #293c33;
    color: #e0ece5;
}

html.kiv-shell-dark .kiv-home-catalog-count {
    background: rgba(15, 25, 21, .28);
    color: #a9d9ba !important;
}

html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section li > a {
    color: #c9d7d0;
}

html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section li:hover,
html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section li:focus-within {
    background: #2a3e35;
}

html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section li:hover > .kiv-home-tool-icon,
html.kiv-shell-dark .footer-nav > .list-inline-bg.kiv-home-catalog-section li:focus-within > .kiv-home-tool-icon {
    background: #32483e !important;
}

@media (max-width: 991px) {
    .kiv-home-catalog-intro {
        margin-top: 24px;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section {
        padding-right: 11px;
        padding-left: 11px;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section h3 {
        margin-right: -11px;
        margin-left: -11px;
    }
}

@media (max-width: 560px) {
    .kiv-home-catalog-intro {
        display: block;
        padding: 18px 16px 17px 19px;
    }

    .kiv-home-catalog-intro h2 {
        font-size: 19px;
    }

    .kiv-home-catalog-total {
        margin-top: 12px;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section {
        margin-bottom: 8px;
        padding-bottom: 9px;
        -webkit-column-count: 1;
        column-count: 1;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section h3 {
        min-height: 41px;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section li {
        min-height: 37px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section li > a {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-nav > .list-inline-bg.kiv-home-catalog-section li {
        transition: none;
    }

    .footer-nav > .list-inline-bg.kiv-home-catalog-section li:hover,
    .footer-nav > .list-inline-bg.kiv-home-catalog-section li:focus-within {
        transform: none;
    }
}
