.bsj-tech-library,
.bsj-product-docs {
    --bsj-doc-ink: #172117;
    --bsj-doc-muted: #5d655b;
    --bsj-doc-green: #315c3d;
    --bsj-doc-amber: #bd6b18;
    --bsj-doc-paper: #fbfaf5;
    --bsj-doc-line: #ded8c7;
}

.bsj-tech-library {
    max-width: 1180px;
	margin: 22px auto 54px;
    color: var(--bsj-doc-ink);
}

.bsj-tech-library__hero {
    position: relative;
    overflow: hidden;
	padding: clamp(26px, 5vw, 50px);
	border-radius: 24px;
	background:
		radial-gradient(circle at 88% 18%, rgba(255, 205, 112, .25), transparent 30%),
		linear-gradient(135deg, #173522 0%, #28543a 58%, #466b48 100%);
	box-shadow: 0 16px 38px rgba(24, 54, 35, .14);
    color: #fff;
}

.bsj-tech-library__hero::after {
    position: absolute;
    right: -42px;
    bottom: -82px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .05), 0 0 0 68px rgba(255, 255, 255, .04);
    content: "";
}

.bsj-tech-library__hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 4px 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.85rem, 5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.bsj-tech-library__hero > p:not(.bsj-tech-library__eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 1rem;
    line-height: 1.7;
}

.bsj-tech-library__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffd38e;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.bsj-tech-library__stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.bsj-tech-library__stats span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
}

.bsj-tech-library__stats strong {
    color: #fff;
}

.bsj-tech-library__notice {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--bsj-doc-amber);
    background: #fff7e8;
    color: #614215;
    font-size: .86rem;
    line-height: 1.6;
}

.bsj-tech-library__filters {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(180px, .42fr) minmax(170px, .36fr);
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--bsj-doc-line);
    border-radius: 16px;
    background: var(--bsj-doc-paper);
}

.bsj-tech-library__filters label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.bsj-tech-library__filters label > span {
    color: #495147;
    font-size: .73rem;
    font-weight: 700;
}

.bsj-tech-library__filters input,
.bsj-tech-library__filters select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: 1px solid #c9c3b4;
    border-radius: 9px;
    background-color: #fff;
    box-shadow: none;
    color: var(--bsj-doc-ink);
}

.bsj-tech-library__filters input:focus,
.bsj-tech-library__filters select:focus {
    border-color: var(--bsj-doc-green);
    box-shadow: 0 0 0 3px rgba(49, 92, 61, .13);
}

.bsj-tech-library__count {
    margin: 14px 2px;
    color: var(--bsj-doc-muted);
    font-size: .82rem;
    font-weight: 600;
}

.bsj-tech-library__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bsj-tech-doc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--bsj-doc-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(39, 48, 37, .06);
}

.bsj-tech-doc-card[hidden] {
    display: none;
}

.bsj-tech-doc-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: space-between;
}

.bsj-tech-doc-card__type,
.bsj-tech-doc-card__source {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bsj-tech-doc-card__type {
    color: var(--bsj-doc-green);
}

.bsj-tech-doc-card__source {
    color: #8f4d0e;
}

.bsj-tech-doc-card h2 {
    margin: 10px 0 14px;
    color: var(--bsj-doc-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.3;
}

.bsj-tech-doc-card__facts {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
}

.bsj-tech-doc-card__facts > div {
    min-width: 0;
	padding: 7px 8px;
	border-radius: 8px;
	background: var(--bsj-doc-paper);
}

.bsj-tech-doc-card__facts dt,
.bsj-tech-doc-card__facts dd {
	display: block;
	margin: 0;
}

.bsj-tech-doc-card__facts dt {
	color: #777b72;
	font-size: .58rem;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.25;
	text-transform: uppercase;
}

.bsj-tech-doc-card__facts dd {
	margin-top: 3px;
	overflow-wrap: anywhere;
	color: #2f382e;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1.35;
}

.bsj-tech-doc-card__products {
    margin: 15px 0;
}

.bsj-tech-doc-card__products > strong {
    color: #454d43;
    font-size: .73rem;
}

.bsj-tech-doc-card__products ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.bsj-tech-doc-card__products li {
    margin: 0;
}

.bsj-tech-doc-card__products a {
    display: block;
    padding: 5px 8px;
    border-radius: 7px;
    background: #edf3ec;
    color: #2c5737;
    font-size: .7rem;
    line-height: 1.35;
}

.bsj-tech-doc-card__action {
    align-self: flex-start;
    margin-top: auto;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    color: #8f4d0e;
    font-size: .78rem;
    font-weight: 700;
}

.bsj-tech-library__empty {
    padding: 30px;
    border: 1px dashed #bdb6a5;
    border-radius: 14px;
    color: var(--bsj-doc-muted);
    text-align: center;
}

.bsj-product-docs {
    max-width: 1080px;
    margin: 26px auto;
    padding: 20px;
    border: 1px solid var(--bsj-doc-line);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--bsj-doc-paper), #fff);
    color: var(--bsj-doc-ink);
}

.bsj-product-docs__head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bsj-product-docs__head p {
    margin: 0 0 2px;
    color: var(--bsj-doc-amber);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bsj-product-docs__head h2 {
    margin: 0;
    color: var(--bsj-doc-ink);
    font-size: 1.15rem;
}

.bsj-product-docs__head-actions {
	display: flex;
	gap: 7px;
	flex: 0 0 auto;
}

.bsj-product-docs__head-actions a {
	padding: 6px 9px;
	border: 1px solid #d4c8ae;
	border-radius: 8px;
	background: #fff9ec;
    flex: 0 0 auto;
    color: var(--bsj-doc-green);
    font-size: .75rem;
    font-weight: 700;
}

.bsj-product-docs > ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--bsj-doc-line);
    list-style: none;
}

.bsj-product-docs > ul > li {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--bsj-doc-line);
}

.bsj-product-docs li > span {
    display: grid;
    min-width: 0;
}

.bsj-product-docs li strong {
    color: #2f4433;
    font-size: .8rem;
}

.bsj-product-docs li small {
    color: var(--bsj-doc-muted);
    font-size: .7rem;
}

.bsj-product-docs li > a {
    flex: 0 0 auto;
    color: #8f4d0e;
    font-size: .75rem;
    font-weight: 700;
}

.bsj-product-docs__note {
    margin: 10px 0 0;
    color: var(--bsj-doc-muted);
    font-size: .72rem;
}

.bsj-product-docs__pending {
    padding: 14px 16px;
    border-top: 1px solid var(--bsj-doc-line);
    background: #fff;
}

.bsj-product-docs__pending p {
    max-width: 780px;
    margin: 0;
    color: var(--bsj-doc-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.bsj-product-docs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bsj-product-docs__actions a {
    padding: 7px 11px;
    border: 1px solid #d4c8ae;
    border-radius: 8px;
    background: #fff9ec;
    color: #7f450f;
    font-size: .74rem;
    font-weight: 700;
}

@media (max-width: 849px) {
    .bsj-tech-library__filters {
        grid-template-columns: 1fr 1fr;
    }

    .bsj-tech-library__filters label:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 549px) {
	.bsj-tech-library {
		width: calc(100% - 24px);
		margin: 12px auto 36px;
	}

	.bsj-tech-library__hero {
		padding: 28px 22px;
		border-radius: 20px;
    }

    .bsj-tech-library__notice,
    .bsj-tech-library__filters,
    .bsj-tech-library__count,
    .bsj-tech-library__grid,
    .bsj-tech-library__empty {
        margin-right: 12px;
        margin-left: 12px;
    }

    .bsj-tech-library__filters,
    .bsj-tech-library__grid {
        grid-template-columns: 1fr;
    }

    .bsj-tech-library__filters label:first-child {
        grid-column: auto;
    }

    .bsj-tech-library__filters input,
    .bsj-tech-library__filters select {
        font-size: 16px;
    }

	.bsj-tech-doc-card__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

    .bsj-product-docs {
        margin: 20px 12px;
        padding: 16px;
    }

	.bsj-product-docs__head,
	.bsj-product-docs > ul > li {
		align-items: flex-start;
		flex-direction: column;
	}

	.bsj-product-docs__head-actions {
		flex-wrap: wrap;
	}
}
