/**
 * data-sheets-category taxonomy — v1.3
 * Exact extraction from prod inline CSS.
 */

:root {
    --kb-text: #111827;
    --kb-muted: #6b7280;
    --kb-border: #e5e7eb;
    --kb-surface: #ffffff;
    --kb-hover: #f9fafb;
    --kb-green: #096e09;
}

.kb-wrap { max-width: 1060px; margin: 0 auto; padding: 32px 16px; }

.kb-h1 {
    font-size: 25px; line-height: 1.25; margin: 0 0 18px 0;
    font-weight: 800; color: var(--kb-text); text-align: center;
}

.kb-path {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 19px; line-height: 1.35; color: var(--kb-text); margin: 0 0 35px;
}
.kb-path .kb-icon {
    width: 22px; height: 22px; display: inline-block;
    background-size: contain; background-repeat: no-repeat;
    flex: 0 0 22px; opacity: .95; transform: translateY(-1px);
}
.kb-path .kb-folder { background-image: var(--kb-folder-icon); }
.kb-path a { color: inherit; text-decoration: none; }
.kb-path a:hover { color: #0f172a; text-decoration: underline; }
.kb-path strong { font-weight: 700; }
.kb-path .sep { opacity: .6; margin: 0 4px; }

.kb-search { display: flex; justify-content: center; margin: 0 0 26px; }
.kb-search form { display: flex; gap: 10px; flex-wrap: nowrap; max-width: 760px; width: 100%; }
.kb-search input[type="search"] {
    flex: 1 1 auto; min-width: 0; padding: 12px 14px;
    border: 1px solid var(--kb-border); border-radius: 12px;
    font-size: 16px; color: var(--kb-text);
}
.kb-search input[type="search"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(9,110,9,.15); }

.kb-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
@media(min-width:760px) { .kb-grid { grid-template-columns: repeat(2,1fr); } }

.kb-card {
    display: flex; flex-direction: column; min-height: 100%;
    border: 1px solid var(--kb-border); background: var(--kb-surface);
    border-radius: 0; padding: 0; transition: border-color .18s;
}
.kb-card:hover { border-color: #d1d5db; }

.kb-header { position: relative; padding: 14px 90px 14px 16px; margin: 0; background: var(--kb-green); }
.kb-title-link { display: block; text-decoration: none; color: #fff; }
.kb-title-link:hover .kb-title-text { opacity: .85; }
.kb-title-text {
    margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2;
    color: #fff; overflow-wrap: anywhere;
}
.kb-count {
    position: absolute; top: 14px; right: 16px;
    background: #fff; border: none;
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 700; line-height: 1; color: var(--kb-text);
}

.kb-list { margin: 0; padding: 0; list-style: none; flex: 1; }
.kb-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 16px; border-bottom: 1px solid var(--kb-border);
}
.kb-list li:last-child { border-bottom: none; }

.kb-mainlink { flex: 1 1 auto; min-width: 0; text-decoration: none; color: var(--kb-text); }
.kb-mainlink .file-title { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.kb-mainlink:hover .file-title { color: var(--kb-green); text-decoration: underline; }

.kb-arrowlink {
    flex: 0 0 28px; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; border-radius: 6px;
}
.kb-arrow {
    width: 18px; height: 18px; background-image: var(--kb-arrow-icon);
    background-size: contain; background-repeat: no-repeat;
    opacity: .85; transition: transform .18s, opacity .18s;
}
.kb-arrowlink:hover .kb-arrow { transform: translateX(3px); opacity: 1; }
.kb-arrowlink:hover { background: var(--kb-hover); }

.kb-cta {
    display: block; padding: 8px 16px; margin-top: 0;
    font-size: .85rem; font-weight: 600;
    color: var(--kb-green); text-decoration: none;
}
.kb-cta:hover { text-decoration: underline; }

.kb-empty { padding: 8px 0; color: var(--kb-muted); font-size: .9rem; }

.kb-subgrid { display: grid; gap: 20px; margin-top: 8px; grid-template-columns: 1fr; }
@media(min-width:760px) { .kb-subgrid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1100px) { .kb-subgrid { grid-template-columns: repeat(3,1fr); } }

.kb-article {
    border: 1px solid var(--kb-border); border-radius: 0;
    background: var(--kb-surface); overflow: hidden;
    display: flex; flex-direction: column; transition: border-color .18s;
}
.kb-article:hover { border-color: #d1d5db; }
.kb-thumb {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: #f3f4f6; overflow: hidden;
}
.kb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-article-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.kb-article-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--kb-text); }
.kb-article-title a { color: inherit; text-decoration: none; }
.kb-article-title a:hover { color: var(--kb-green); text-decoration: underline; }
.kb-article-excerpt {
    color: #374151; font-size: 15px; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kb-article-more {
    margin-top: 6px; align-self: flex-start; text-decoration: none;
    font-weight: 600; font-size: 14px; color: var(--kb-green);
    padding: 6px 10px; border: 1px solid var(--kb-border);
    border-radius: 8px; background: #fff;
}
.kb-article-more:hover { background: #f8fafc; }

.kb-back {
    margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; text-decoration: none; color: var(--kb-green);
}
.kb-back:hover { text-decoration: underline; }

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

@media (max-width:759px) {
    .kb-wrap { padding: 16px 12px; }
    .kb-path { margin-bottom: 31px; }
}
