/* Public styles for the SibResurs technical library. */

.srl-library {
	--srl-blue: #1484ca;
	--srl-blue-dark: #0d5b8a;
	--srl-text: #292929;
	--srl-muted: #666;
	--srl-line: #e6e6e6;
	--srl-soft: #f5f8fa;
	background: #fff;
	color: var(--srl-text);
	padding: 24px 0 72px;
}

.srl-library *,
.srl-library *::before,
.srl-library *::after {
	box-sizing: border-box;
}

.srl-shell {
	width: 100%;
}

.srl-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0 0 30px;
	color: #7a7a7a;
	font-size: 14px;
	line-height: 1.45;
}

.srl-breadcrumbs a {
	color: var(--srl-blue-dark);
	text-decoration: none;
}

.srl-breadcrumbs a:hover {
	color: var(--srl-blue);
	text-decoration: underline;
}

.srl-page-heading {
	max-width: 980px;
	margin: 0 0 26px;
}

.srl-page-heading::after {
	content: "";
	display: block;
	width: 74px;
	height: 3px;
	margin-top: 20px;
	background: var(--srl-blue);
}

.srl-eyebrow,
.srl-section-heading > p {
	margin: 0 0 10px;
	color: var(--srl-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.srl-page-heading h1 {
	margin: 0;
	color: var(--srl-text);
	font-size: clamp(32px, 4.2vw, 52px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.12;
}

.srl-article-topic {
	display: inline-block;
	margin: 18px 0 0;
	padding: 8px 12px;
	border-radius: 4px;
	background: #eaf5fc;
	color: var(--srl-blue-dark);
	font-size: 14px;
	font-weight: 600;
}

.srl-content {
	color: var(--srl-text);
	font-size: 17px;
	line-height: 1.75;
}

.srl-content--lead {
	max-width: 980px;
	font-size: 18px;
	line-height: 1.7;
}

.srl-content > *:first-child {
	margin-top: 0;
}

.srl-content > *:last-child {
	margin-bottom: 0;
}

.srl-content p:not(.has-text-color),
.srl-content li:not(.has-text-color) {
	color: #3f3f3f;
}

.srl-content p {
	margin: 0 0 1.15em;
}

.srl-content h2:not(.has-text-color),
.srl-content h3:not(.has-text-color),
.srl-content h4:not(.has-text-color) {
	color: var(--srl-text);
}

.srl-content h2 {
	margin: 1.8em 0 .65em;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
}

.srl-content h3 {
	margin: 1.6em 0 .55em;
	font-size: clamp(21px, 2.3vw, 27px);
	line-height: 1.3;
}

.srl-content h4 {
	margin: 1.4em 0 .5em;
	font-size: 19px;
	line-height: 1.35;
}

.srl-content a:not(.wp-block-button__link) {
	color: var(--srl-blue-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.srl-content ul,
.srl-content ol {
	margin: 1em 0 1.3em;
	padding-left: 1.45em;
}

.srl-content li + li {
	margin-top: .45em;
}

.srl-content blockquote {
	margin: 1.5em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--srl-blue);
	background: var(--srl-soft);
}

.srl-content table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
}

.srl-content th,
.srl-content td {
	padding: 12px 14px;
	border: 1px solid #dce5eb;
	vertical-align: top;
}

.srl-content th {
	background: #edf5fa;
	font-weight: 700;
}

.srl-content img {
	max-width: 100%;
	height: auto;
}

/* Large navigation cards on the library landing page. */
.srl-entry-section {
	margin-top: 40px;
}

.srl-entry-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.srl-entry-card {
	position: relative;
	min-width: 0;
	min-height: 330px;
	overflow: hidden;
	border: 1px solid #dbe8ef;
	border-radius: 10px;
	background: linear-gradient(145deg, #fff 0%, #f4f9fc 100%);
	box-shadow: 0 8px 26px rgba(32, 65, 83, .08);
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.srl-entry-card--catalog {
	border-color: #dce1e5;
	background: linear-gradient(145deg, #fff 0%, #f5f6f7 100%);
}

.srl-entry-card:hover {
	transform: translateY(-3px);
	border-color: #a9d2e9;
	box-shadow: 0 14px 34px rgba(32, 65, 83, .14);
}

.srl-entry-card__link {
	display: flex;
	min-height: 330px;
	padding: 30px 32px 28px;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.srl-entry-card__meta {
	display: flex;
	gap: 11px;
	margin-bottom: 34px;
	align-items: center;
	color: #4f6c7b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.srl-entry-card__number {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #1484ca;
	color: #fff;
	letter-spacing: 0;
}

.srl-entry-card--catalog .srl-entry-card__number {
	background: #526771;
}

.srl-entry-card__content h2 {
	margin: 0 0 14px;
	color: var(--srl-text);
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
}

.srl-entry-card__content p {
	max-width: 530px;
	margin: 0;
	color: #52616a;
	font-size: 16px;
	line-height: 1.65;
}

.srl-entry-card__footer {
	display: flex;
	gap: 18px;
	margin-top: auto;
	padding-top: 30px;
	align-items: center;
	justify-content: space-between;
}

.srl-entry-card__hint {
	color: #73828a;
	font-size: 13px;
	line-height: 1.4;
}

.srl-entry-card__button {
	display: inline-flex;
	gap: 12px;
	min-height: 44px;
	padding: 11px 16px;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	background: #1484ca;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.srl-entry-card--catalog .srl-entry-card__button {
	background: #526771;
}

.srl-entry-card__button span {
	font-size: 19px;
	line-height: 1;
	transition: transform .2s ease;
}

.srl-entry-card:hover .srl-entry-card__button span {
	transform: translateX(3px);
}

/* Restrained, list-like material cards for the catalog. */
.srl-materials {
	margin-top: 40px;
}

.srl-materials__grid {
	display: grid;
	width: 100%;
	gap: 18px;
}

.srl-material-card {
	position: relative;
	overflow: hidden;
	border: 1px solid #d9e0e4;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(38, 51, 59, .06);
	transition: border-color .25s ease, box-shadow .25s ease;
}

.srl-material-card:hover {
	border-color: #aebdc5;
	box-shadow: 0 10px 26px rgba(38, 51, 59, .1);
}

.srl-material-card__link {
	display: grid;
	min-height: 210px;
	grid-template-columns: 180px minmax(0, 1fr) auto;
	gap: 32px;
	padding: 26px 30px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.srl-material-card__visual {
	display: flex;
	width: 100%;
	height: 150px;
	align-items: center;
	justify-content: center;
	border: 1px solid #e0e5e8;
	border-radius: 6px;
	background: #f2f4f5;
	color: #53636c;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -.04em;
}

.srl-material-card__visual span{
	text-align: center;
}

.srl-material-card__icon {
	display: block;
	max-width: 82px;
	max-height: 82px;
	filter: grayscale(1);
	opacity: .68;
	object-fit: contain;
}

.srl-material-card__eyebrow {
	margin: 0 0 8px;
	color: #687982;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.srl-material-card__content h2 {
	margin: 0 0 10px;
	color: #27343b;
	font-size: clamp(25px, 2.5vw, 34px);
	line-height: 1.2;
}

.srl-material-card__description {
	max-width: 680px;
	margin: 0 0 18px;
	color: #536169;
	font-size: 15px;
	line-height: 1.6;
}

.srl-material-card__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.srl-material-card__topics span {
	padding: 6px 9px;
	border: 1px solid #dfe4e7;
	border-radius: 4px;
	background: #f7f8f8;
	color: #5a6870;
	font-size: 12px;
	line-height: 1.2;
}

.srl-material-card__action {
	display: inline-flex;
	gap: 12px;
	min-width: 176px;
	padding: 12px 14px;
	align-items: center;
	justify-content: space-between;
	border-radius: 5px;
	color: #fff;
	background: #1484ca;
	font-size: 14px;
	font-weight: 700;
}

.srl-material-card__action span {
	font-size: 19px;
	line-height: 1;
	transition: transform .2s ease;
}

.srl-material-card:hover .srl-material-card__action span {
	transform: translateX(3px);
}

.srl-draft-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 8px;
	border: 1px solid #d8a800;
	border-radius: 3px;
	background: #fff8d6;
	color: #735900;
	font-size: 11px;
	font-weight: 700;
}

.srl-draft-badge--inline {
	position: static;
	display: inline-block;
	margin: 7px 0 0 16px;
}

.srl-contents {
	margin-top: 46px;
	padding-top: 38px;
	border-top: 1px solid var(--srl-line);
}

.srl-section-heading {
	margin-bottom: 24px;
}

.srl-section-heading h2 {
	margin: 0;
	color: var(--srl-text);
	font-size: clamp(28px, 3.5vw, 40px);
	line-height: 1.2;
}

.srl-topic {
	position: relative;
	max-width: 980px;
	margin: 0 0 24px;
	padding: 28px 30px 30px;
	border: 1px solid var(--srl-line);
	background: #fff;
	box-shadow: 0 4px 18px rgba(20, 132, 202, .05);
}

.srl-topic::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	background: var(--srl-blue);
}

.srl-topic h2 {
	margin: 0 0 20px;
	color: var(--srl-text);
	font-size: clamp(22px, 2.6vw, 30px);
	line-height: 1.25;
}

.srl-topic h2 span {
	color: var(--srl-blue);
}

.srl-article-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: srl-articles;
}

.srl-article-list li {
	position: relative;
	counter-increment: srl-articles;
}

.srl-article-list li + li {
	border-top: 1px solid #edf0f2;
}

.srl-article-list li::before {
	content: counter(srl-articles, decimal-leading-zero);
	position: absolute;
	top: 18px;
	left: 0;
	color: #8b969d;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
}

.srl-article-list a {
	display: flex;
	gap: 18px;
	padding: 16px 4px 16px 42px;
	align-items: flex-start;
	justify-content: space-between;
	color: var(--srl-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

.srl-article-list a:hover {
	color: var(--srl-blue-dark);
}

.srl-article-list a span:last-child {
	color: var(--srl-blue);
	font-size: 20px;
}

.srl-featured-image {
	margin: 0 0 30px;
}

.srl-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.srl-editor-note,
.srl-empty {
	margin: 28px 0;
	padding: 18px 20px;
	border-left: 4px solid #d8a800;
	background: #fff8d6;
	color: #5f4c00;
}

.srl-editor-note strong,
.srl-editor-note span {
	display: block;
}

.srl-editor-note span {
	margin-top: 5px;
}

.srl-article-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}

.srl-article-navigation a {
	display: flex;
	min-height: 104px;
	padding: 18px 20px;
	flex-direction: column;
	justify-content: center;
	border: 1px solid var(--srl-line);
	color: var(--srl-text);
	text-decoration: none;
}

.srl-article-navigation a:hover {
	border-color: #cfe6f7;
	box-shadow: 0 6px 20px rgba(20, 132, 202, .1);
}

.srl-article-navigation a > span {
	margin-bottom: 7px;
	color: var(--srl-blue-dark);
	font-size: 13px;
}

.srl-article-navigation__next {
	grid-column: 2;
	text-align: right;
}

.srl-page-footer {
	display: flex;
	gap: 20px;
	margin-top: 44px;
	padding-top: 22px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--srl-line);
}

.srl-back-link,
.srl-edit-link,
.srl-page-tools a {
	color: var(--srl-blue-dark);
	font-weight: 600;
	text-decoration: none;
}

.srl-page-tools {
	margin-top: 28px;
}

.srl-back-link:hover,
.srl-edit-link:hover,
.srl-page-tools a:hover {
	color: var(--srl-blue);
	text-decoration: underline;
}

@media (max-width: 760px) {
	.srl-library {
		padding: 18px 0 48px;
	}

	.srl-breadcrumbs {
		margin-bottom: 22px;
		font-size: 13px;
	}

	.srl-entry-grid {
		grid-template-columns: 1fr;
	}

	.srl-entry-card,
	.srl-entry-card__link {
		min-height: 300px;
	}

	.srl-entry-card__link {
		padding: 26px 22px 24px;
	}

	.srl-entry-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.srl-material-card__link {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 20px;
		padding: 22px;
	}

	.srl-material-card__visual {
		height: 112px;
	}

	.srl-material-card__action {
		width: 100%;
		grid-column: 1 / -1;
	}

	.srl-topic {
		padding: 22px 18px 22px 22px;
	}

	.srl-article-list a {
		padding-right: 0;
		padding-left: 36px;
	}

	.srl-article-navigation {
		grid-template-columns: 1fr;
	}

	.srl-article-navigation__next {
		grid-column: 1;
		text-align: left;
	}

	.srl-page-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 420px) {
	.srl-page-heading h1 {
		font-size: 30px;
	}

	.srl-content,
	.srl-content--lead {
		font-size: 16px;
	}

	.srl-topic {
		margin-right: -4px;
		margin-left: -4px;
	}

	.srl-material-card__link {
		grid-template-columns: 1fr;
	}

	.srl-material-card__visual {
		height: 96px;
	}
}
