/*
 * Digital Age Blog Layout
 * Scoped to .dapost so it does not intentionally restyle other site pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

html, body {
	width: 100%;
	max-width: 100%;
}

.dapost,
.dapost * {
	box-sizing: border-box;
}

.dapost {
	--navy: #0d2740;
	--navy2: #123453;
	--blue: #1a8fd1;
	--blue2: #3aa9e8;
	--ink: #16232e;
	--dim: #4a5c6e;
	--dim2: #8496a6;
	--line: #dde5ec;
	--soft: #f2f7fb;
	--soft2: #e6f0f8;
	--ok: #0f8a5f;
	--bad: #cc3b2e;
	--amber: #c47f00;

	width: 100%;
	max-width: 100%;
	background: #fff;
	color: var(--ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.78;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.dapost h1,
.dapost h2,
.dapost h3,
.dapost h4,
.dapost h5,
.dapost h6 {
	font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.25;
	letter-spacing: -.02em;
	color: var(--navy);
	font-weight: 700;
}

.dapost p {
	color: var(--dim);
	margin: 0 0 20px;
}

.dapost a {
	color: var(--blue);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 143, 209, .35);
}

.dapost a:hover {
	border-bottom-color: var(--blue);
}

.dapost .w {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.dapost .phead {
	background: linear-gradient(135deg, #0d2740, #123453 60%, #0a1f33);
	color: #fff;
	padding: 52px 0 46px;
	border-bottom: 5px solid var(--blue);
}

.dapost .phead .cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--blue2);
	border: 1px solid rgba(58, 169, 232, .4);
	padding: 5px 13px;
	margin-bottom: 20px;
}

.dapost .phead h1 {
	color: #fff;
	font-size: 42px;
	line-height: 1.16;
	margin: 0 0 18px;
}

.dapost .phead .sub {
	font-size: 18px;
	color: #b6cbdb;
	margin-bottom: 26px;
}

.dapost .byline {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #8fa8bd;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.dapost .byline b {
	color: #fff;
	font-weight: 600;
}

.dapost .da-article-wrap {
	padding-top: 34px;
}

.dapost .da-featured-image {
	margin: 0 0 38px;
	border: 1px solid var(--line);
	background: #fff;
	overflow: hidden;
}

.dapost .da-featured-image__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 600;
	object-fit: cover;
}

.dapost .da-content > * {
	max-width: 100%;
}

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

.dapost .da-content h2 {
	font-size: 31px;
	margin: 52px 0 18px;
}

.dapost .da-content h3 {
	font-size: 22px;
	margin: 36px 0 14px;
}

.dapost .da-content h4 {
	font-size: 18px;
	margin: 28px 0 12px;
}

.dapost .da-content ul,
.dapost .da-content ol {
	margin: 0 0 22px 22px;
	color: var(--dim);
}

.dapost .da-content li {
	margin-bottom: 11px;
}

.dapost .da-content li strong,
.dapost .da-content strong {
	color: var(--navy);
}

.dapost .da-content blockquote {
	margin: 30px 0;
	padding: 22px 26px;
	background: var(--soft);
	border-left: 4px solid var(--blue);
	color: var(--ink);
}

.dapost .da-content blockquote p:last-child {
	margin-bottom: 0;
}

.dapost .da-content pre {
	overflow-x: auto;
	padding: 20px;
	margin: 28px 0;
	background: #0d2740;
	color: #fff;
	border-radius: 2px;
}

.dapost .da-content code {
	font-family: Consolas, Monaco, monospace;
}

.dapost .da-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 30px 0;
	font-size: 15px;
	min-width: 620px;
}

.dapost .da-content .wp-block-table {
	overflow-x: auto;
	margin: 30px 0;
}

.dapost .da-content .wp-block-table table {
	margin: 0;
}

.dapost .da-content th {
	background: var(--navy);
	color: #fff;
	text-align: left;
	padding: 13px 16px;
	font-family: 'Sora', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}

.dapost .da-content td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	color: var(--dim);
	line-height: 1.6;
	vertical-align: top;
}

.dapost .da-content tr:nth-child(even) td {
	background: var(--soft);
}

.dapost .da-content .wp-block-image {
	margin: 34px 0;
}

.dapost .da-content .wp-block-image img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.dapost .da-content figcaption {
	padding: 12px 16px;
	background: var(--soft);
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--dim2);
	line-height: 1.6;
}

.dapost .da-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 40px 0;
}

.dapost .da-content .wp-block-button__link {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 30px;
	border: 0;
	border-radius: 0;
}

.dapost .da-content .wp-block-button__link:hover {
	background: var(--blue2);
}

.dapost .da-content .wp-block-columns {
	gap: 24px;
}

.dapost .da-content .wp-block-cover {
	margin: 32px 0;
}

.dapost .da-content .faq,
.dapost .da-content .wp-block-details {
	margin: 34px 0;
}

.dapost .da-content details {
	border: 1px solid var(--line);
	margin-bottom: 10px;
	background: #fff;
}

.dapost .da-content summary {
	padding: 17px 22px;
	font-family: 'Sora', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--navy);
	cursor: pointer;
}

.dapost .da-content details > *:not(summary) {
	padding-left: 22px;
	padding-right: 22px;
}

.dapost .da-content .alignwide {
	max-width: 1060px;
	margin-left: 50%;
	transform: translateX(-50%);
	width: calc(100vw - 48px);
}

.dapost .da-content .alignfull {
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
	width: 100vw;
}

.dapost .da-page-links {
	margin: 35px 0;
	padding: 18px 20px;
	background: var(--soft);
	border: 1px solid var(--line);
}

.dapost .pfoot {
	border-top: 1px solid var(--line);
	margin-top: 50px;
	padding: 26px 0 40px;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
	font-size: 13px;
	color: var(--dim2);
}

.dapost .pfoot a {
	color: var(--dim2);
}


/* Automatic table / graph / figure animations */
.dapost .da-animate-target {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
	will-change: opacity, transform;
}

.dapost .da-animate-target.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.dapost .da-animate-table tbody tr {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}

.dapost .da-animate-table.is-visible tbody tr {
	opacity: 1;
	transform: translateY(0);
}

.dapost .da-animate-table.is-visible tbody tr:nth-child(1) { transition-delay: .05s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(2) { transition-delay: .11s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(3) { transition-delay: .17s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(4) { transition-delay: .23s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(5) { transition-delay: .29s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(6) { transition-delay: .35s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(7) { transition-delay: .41s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(8) { transition-delay: .47s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(9) { transition-delay: .53s; }
.dapost .da-animate-table.is-visible tbody tr:nth-child(10) { transition-delay: .59s; }

.dapost .da-animate-figure {
	opacity: 0;
	transform: translateY(24px) scale(.985);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
	will-change: opacity, transform;
}

.dapost .da-animate-figure.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.dapost .da-animate-chart svg {
	overflow: visible;
}

.dapost .da-animate-chart svg rect[data-da-bar],
.dapost .da-animate-chart svg .da-bar {
	transform-box: fill-box;
	transform-origin: center bottom;
	transform: scaleY(0);
	transition: transform .85s cubic-bezier(.2,.75,.2,1);
}

.dapost .da-animate-chart.is-visible svg rect[data-da-bar],
.dapost .da-animate-chart.is-visible svg .da-bar {
	transform: scaleY(1);
}

.dapost .da-animate-chart svg circle[data-da-point],
.dapost .da-animate-chart svg .da-point {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	transform: scale(.5);
	transition: opacity .5s ease .45s, transform .5s ease .45s;
}

.dapost .da-animate-chart.is-visible svg circle[data-da-point],
.dapost .da-animate-chart.is-visible svg .da-point {
	opacity: 1;
	transform: scale(1);
}

.dapost .da-animate-chart svg path[data-da-line],
.dapost .da-animate-chart svg .da-line {
	stroke-dasharray: 1200;
	stroke-dashoffset: 1200;
	transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1);
}

.dapost .da-animate-chart.is-visible svg path[data-da-line],
.dapost .da-animate-chart.is-visible svg .da-line {
	stroke-dashoffset: 0;
}

.dapost .da-animate-chart svg text {
	opacity: .15;
	transition: opacity .45s ease .25s;
}

.dapost .da-animate-chart.is-visible svg text {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.dapost .da-animate-target,
	.dapost .da-animate-table tbody tr,
	.dapost .da-animate-figure,
	.dapost .da-animate-chart svg rect[data-da-bar],
	.dapost .da-animate-chart svg circle[data-da-point],
	.dapost .da-animate-chart svg path[data-da-line],
	.dapost .da-animate-chart svg text {
		transition: none !important;
		animation: none !important;
		transform: none !important;
		opacity: 1 !important;
		stroke-dashoffset: 0 !important;
	}
}


@media (max-width: 820px) {
	.dapost {
		font-size: 16.5px;
	}

	.dapost .phead {
		padding: 38px 0 34px;
	}

	.dapost .phead h1 {
		font-size: 30px;
	}

	.dapost .phead .sub {
		font-size: 17px;
	}

	.dapost .da-featured-image {
		margin-bottom: 30px;
	}

	.dapost .da-content h2 {
		font-size: 25px;
		margin-top: 42px;
	}

	.dapost .da-content h3 {
		font-size: 21px;
	}

	.dapost .da-content .alignwide {
		width: 100%;
		margin-left: 0;
		transform: none;
	}

	.dapost .da-content .alignfull {
		width: 100%;
		margin-left: 0;
		transform: none;
	}

	.dapost .pfoot {
		margin-top: 38px;
	}
}

@media (max-width: 520px) {
	.dapost .w {
		padding-left: 18px;
		padding-right: 18px;
	}

	.dapost .phead h1 {
		font-size: 27px;
	}

	.dapost .byline {
		gap: 10px 16px;
	}

	.dapost .da-content table {
		font-size: 14px;
	}
}
