/* Devart Ledger Pro pack. */

/* ---------- Device visibility ---------- */
@media (min-width: 1025px) { .dl-hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .dl-hide-tablet { display: none !important; } }
@media (max-width: 767px) { .dl-hide-mobile { display: none !important; } }

/* ---------- Ads ---------- */
.dl-ad {
	margin: 1.5rem auto;
	text-align: center;
	max-width: 100%;
}

.dl-ad img { max-width: 100%; height: auto; }

.dl-ad-label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--dl-meta, #5c5c5c);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dl-ad-header { max-width: 1240px; }

.dl-ad-popup[hidden] { display: none; }

.dl-ad-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 30, 38, 0.6);
	padding: 1rem;
}

.dl-ad-popup-box {
	position: relative;
	max-width: 560px;
	min-width: min(320px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 2rem 1rem 1rem;
	background: var(--dl-white, #fff);
	border-top: 4px solid var(--dl-teal, #3c6e71);
}

.dl-ad-popup-close {
	position: absolute;
	top: 0.25rem;
	right: 0.5rem;
	padding: 0 0.5rem;
	border: 0;
	background: transparent;
	color: var(--dl-graphite, #353535);
	font-size: 28px;
	line-height: 1.2;
	cursor: pointer;
}

/* ---------- Sections ---------- */
.dl-pro-section { margin: 0 0 3rem; }
.dl-pro-inner-full { padding: 0 2rem; }
.dl-pro-section.is-full { background: var(--dl-surface, #f3f4f4); padding: 2rem 0; }

.dl-pro-section-title {
	margin: 0 0 1.25rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--dl-yale, #284b63);
	box-shadow: 0 3px 0 -2px var(--dl-teal, #3c6e71);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.5rem;
}

.dl-pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dl-pro-list { display: grid; gap: 1.25rem; }
.dl-pro-bigsmall { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.dl-pro-small { display: grid; gap: 1rem; align-content: start; }
.dl-pro-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.dl-pro-videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.dl-pro-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	background: var(--dl-white, #fff);
}

.dl-pro-card.is-row { flex-direction: row; align-items: flex-start; }
.dl-pro-card.is-row .dl-pro-card-media { flex: 0 0 38%; }
.dl-pro-card.is-compact .dl-pro-card-media { flex-basis: 84px; }
.dl-pro-card.is-text .dl-pro-card-media { display: none; }

.dl-pro-card-media img { display: block; width: 100%; height: auto; border-radius: 0; }

.dl-pro-card-cat {
	color: var(--dl-teal, #3c6e71);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
}

body.dl-dark-mode .dl-pro-card-cat { color: #7fc0c3; }

.dl-pro-card-title { margin: 0.15rem 0; font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; line-height: 1.3; }
.dl-pro-card.is-big .dl-pro-card-title { font-size: 1.9rem; }
.dl-pro-card-title a { color: var(--dl-yale, #284b63); text-decoration: none; }
.dl-pro-card-title a:hover { text-decoration: underline; }
.dl-pro-card-excerpt { margin: 0; color: var(--dl-graphite, #353535); }
.dl-pro-card-meta { color: var(--dl-meta, #5c5c5c); font-size: 13px; }

.dl-pro-card.is-video .dl-pro-card-media { position: relative; display: block; }
.dl-pro-card.is-video .dl-pro-card-media::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(40, 75, 99, 0.85) linear-gradient(#fff, #fff) no-repeat;
	clip-path: none;
	box-shadow: inset 0 0 0 2px #fff;
}

/* Slider: one slide at a time, switched instantly or with a fade. */
.dl-pro-slider { position: relative; }
.dl-pro-slide { display: none; }
.dl-pro-slide.is-active { display: block; }
.dl-pro-card.is-overlay { position: relative; }
.dl-pro-card.is-overlay .dl-pro-card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2rem 1.5rem 1.25rem;
	background: linear-gradient(transparent, rgba(22, 38, 49, 0.92));
}
.dl-pro-card.is-overlay .dl-pro-card-title a,
.dl-pro-card.is-overlay .dl-pro-card-excerpt,
.dl-pro-card.is-overlay .dl-pro-card-meta,
.dl-pro-card.is-overlay .dl-pro-card-cat { color: #fff; }
.dl-pro-slider-nav { position: absolute; top: 1rem; right: 1rem; display: flex; gap: 0.25rem; }
.dl-pro-slider-nav button {
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(22, 38, 49, 0.85);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

/* Tabs */
.dl-pro-tablist { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--dl-dust, #d9d9d9); margin-bottom: 1rem; }
.dl-pro-tablist button {
	padding: 0.6rem 1rem;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--dl-graphite, #353535);
	font-weight: 700;
	cursor: pointer;
}
.dl-pro-tablist button[aria-selected="true"] { border-bottom-color: var(--dl-teal, #3c6e71); color: var(--dl-yale, #284b63); }
.dl-pro-tabpanel { display: grid; gap: 1rem; }
.dl-pro-tabpanel[hidden] { display: none; }

/* Newsletter */
.dl-pro-newsletter {
	padding: 2rem;
	background: var(--dl-yale, #284b63);
	color: #fff;
	text-align: center;
}
.dl-pro-newsletter p { margin: 0 0 1rem; font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; color: #fff; }
.dl-pro-newsletter form { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.dl-pro-newsletter input[type="email"] { min-width: min(320px, 100%); padding: 0.75rem 1rem; border: 0; color: #353535; background: #fff; }
.dl-pro-newsletter button { padding: 0.75rem 1.5rem; border: 0; background: var(--dl-teal, #3c6e71); color: #fff; font-weight: 700; cursor: pointer; }
.dl-pro-newsletter button:focus-visible, .dl-pro-newsletter input:focus-visible { outline-color: #fff; }

/* ---------- Single post pack ---------- */
.dl-pro-toc {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--dl-dust, #d9d9d9);
	border-left: 4px solid var(--dl-teal, #3c6e71);
	background: var(--dl-surface, #f3f4f4);
}
.dl-pro-toc-title { margin: 0 0 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.dl-pro-toc ol { margin: 0; padding-left: 1.2rem; }
.dl-pro-toc li.is-h3 { margin-left: 1rem; list-style-type: circle; }

.dl-single-layout-centered .dl-single-post-header { text-align: center; }
.dl-single-layout-centered .dl-post-meta { justify-content: center; }

.dl-single-layout-hero .dl-single-wrap { display: flex; flex-direction: column; }
.dl-single-layout-hero .dl-single-post-media { order: -1; margin-bottom: 1.5rem; }

@media (min-width: 900px) {
	.dl-single-layout-split .dl-single-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-items: center; }
	.dl-single-layout-split .dl-single-post-header { grid-column: 1; grid-row: 1; }
	.dl-single-layout-split .dl-single-post-media { grid-column: 2; grid-row: 1; }
	.dl-single-layout-split .dl-single-content-wrap, .dl-single-layout-split .dl-post-content { grid-column: 1 / -1; }
}

.dl-pro-share {
	position: fixed;
	left: 0.75rem;
	top: 50%;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	transform: translateY(-50%);
}
.dl-pro-share a, .dl-pro-share button {
	display: block;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--dl-dust, #d9d9d9);
	background: var(--dl-white, #fff);
	color: var(--dl-yale, #284b63);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.dl-pro-share a:hover, .dl-pro-share button:hover { background: var(--dl-yale, #284b63); color: #fff; }
.dl-pro-share-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; color: var(--dl-meta, #5c5c5c); }

@media (max-width: 1400px) {
	.dl-pro-share {
		left: 0;
		right: 0;
		top: auto;
		bottom: 0;
		flex-direction: row;
		justify-content: center;
		padding: 0.4rem;
		background: var(--dl-white, #fff);
		border-top: 1px solid var(--dl-dust, #d9d9d9);
		transform: none;
	}
	.dl-pro-share-label { display: none; }
	body.single { padding-bottom: 3.2rem; }
}

/* ---------- Auto-load and archives ---------- */
.dl-autoload-post { margin-top: 3rem; padding-top: 2rem; border-top: 3px solid var(--dl-teal, #3c6e71); }
.dl-autoload-header h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 2rem; margin: 0 0 0.5rem; }
.dl-pro-more { margin: 2rem 0; text-align: center; }
.dl-pro-more-btn {
	padding: 0.8rem 2rem;
	border: 2px solid var(--dl-yale, #284b63);
	background: transparent;
	color: var(--dl-yale, #284b63);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
}
.dl-pro-more-btn:hover { background: var(--dl-yale, #284b63); color: #fff; }
body.dl-dark-mode .dl-pro-more-btn:hover { color: #162631; }

@media (max-width: 900px) {
	.dl-pro-grid, .dl-pro-columns, .dl-pro-videos { grid-template-columns: repeat(2, 1fr); }
	.dl-pro-bigsmall { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.dl-pro-grid, .dl-pro-columns, .dl-pro-videos { grid-template-columns: 1fr; }
	.dl-pro-card.is-row { flex-direction: column; }
	.dl-pro-card.is-row .dl-pro-card-media { flex-basis: auto; }
}

/* Section width: the builder sections fill the content area. */
.dl-pro-section { width: 100%; }
.dl-pro-section > .dl-container,
.dl-pro-section > .dl-pro-inner-full {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}
.dl-pro-section > .dl-pro-inner-full { max-width: none; }
.dl-pro-tabpanel .dl-pro-card.is-row { align-items: center; }
