/*
 * Reading styles for library articles (ITEC Campaign Review).
 * Loaded only on posts and pages in the portal's article library. The plugin adds the
 * itec-article body class and wraps the text in .itec-guide, tagging the opening answer,
 * tables, questions, call to action and sources so they can be styled here.
 */

body.itec-article,
body.itec-archive {
	--icr-ink: #141414;
	--icr-text: #2b2b2b;
	--icr-muted: #6b6b6b;
	--icr-line: #e4e4e4;
	--icr-soft: #f5f6f5;
	--icr-accent: #00ae41;
	--icr-accent-dark: #008a34;
	--icr-col: 740px;
}

/* ---------------------------------------------------------------- header */

body.itec-article .container-wrap {
	padding-top: 56px !important;
}
body.itec-article .row.heading-title {
	padding: 0 0 8px;
	margin: 0 0 36px;
	border: 0;
	text-align: left;
}
/* The title starts where the text starts. With a sidebar that is the left edge of the
   content area. Without one, Salient centers a 1000px post column, so the title follows it. */
body.itec-article .row.heading-title .col.section-title {
	max-width: none;
	margin: 0;
	float: none;
	text-align: left;
}
body.itec-article .container-wrap.no-sidebar .row.heading-title .col.section-title {
	max-width: 1000px;
	margin: 0 auto;
}
body.itec-article .row.heading-title .meta-category {
	display: block;
	margin: 0 0 14px;
	padding: 0;
}
body.itec-article .row.heading-title .meta-category a {
	display: inline-block;
	margin: 0 14px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--icr-accent);
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
body.itec-article .row.heading-title .meta-category a:hover,
body.itec-article .row.heading-title .meta-category a:focus {
	background: none;
	color: var(--icr-accent-dark);
	text-decoration: underline;
}
body.itec-article .row.heading-title .col.section-title h1.entry-title {
	max-width: var(--icr-col);
	margin: 0 !important;
	padding: 0;
	color: var(--icr-ink);
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: 52px !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.5px;
	text-align: left;
	text-transform: none !important;
	text-wrap: balance;
}
body.itec-article .row.heading-title #single-below-header {
	margin-top: 14px;
	text-align: left;
}

/* Pages. Salient shows no title on a page without its own header, so the plugin prints one. */
body.itec-article .itec-guide .itec-page-head {
	margin: 0 0 32px;
}
body.itec-article .itec-guide h1.itec-page-title {
	margin: 0;
	padding: 0;
	color: var(--icr-ink);
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: 52px;
	font-weight: 700 !important;
	line-height: 1.08;
	letter-spacing: -0.5px;
	text-transform: none;
	text-wrap: balance;
}

/* Posts that use a featured image as the header keep it, with a title that fits. */
body.itec-article #page-header-bg h1.entry-title {
	font-size: 64px !important;
	line-height: 1.05 !important;
	letter-spacing: -1px;
	text-transform: none !important;
	text-wrap: balance;
}

/* ---------------------------------------------------------------- text column */

body.itec-article .itec-guide {
	max-width: var(--icr-col);
	margin: 0;
	color: var(--icr-text);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;
}
body.itec-article .itec-guide p {
	margin: 0 0 20px;
	padding: 0;
	color: var(--icr-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;
}
body.itec-article .itec-guide strong,
body.itec-article .itec-guide b {
	color: var(--icr-ink);
	font-family: inherit !important;
	font-weight: 700;
}
body.itec-article .itec-guide a {
	color: var(--icr-accent-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(0, 138, 52, 0.45);
	transition: color 0.15s, text-decoration-color 0.15s;
}
body.itec-article .itec-guide a:hover,
body.itec-article .itec-guide a:focus {
	color: var(--icr-ink);
	text-decoration-color: currentColor;
}

/* The opening answer. */
body.itec-article .itec-guide p.itec-lead {
	margin: 0 0 32px;
	padding: 0;
	border: 0;
	color: var(--icr-text);
	font-size: 24px;
	font-weight: 100;
	line-height: 1.5;
}
body.itec-article .itec-guide p.itec-lead strong,
body.itec-article .itec-guide p.itec-lead b {
	font-weight: 600;
}

body.itec-article .itec-guide p.itec-note {
	margin: -6px 0 16px;
	color: var(--icr-muted);
	font-size: 13px;
	line-height: 1.6;
}
body.itec-article .itec-guide p.itec-note em {
	font-style: italic;
}

/* ---------------------------------------------------------------- videos */

/* A YouTube address on its own line inside figure.itec-video becomes a player. */
body.itec-article .itec-guide figure.itec-video {
	margin: 8px 0 36px;
	padding: 0;
	max-width: 100%;
}
body.itec-article .itec-guide figure.itec-video p {
	margin: 0;
	padding: 0;
}
body.itec-article .itec-guide figure.itec-video iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	border: 0;
	background: #000;
}
body.itec-article .itec-guide figure.itec-video > iframe,
body.itec-article .itec-guide figure.itec-video > p > iframe,
body.itec-article .itec-guide figure.itec-video .wp-embed-responsive iframe {
	height: auto !important;
	aspect-ratio: 16 / 9;
}
body.itec-article .itec-guide figure.itec-video figcaption {
	margin: 10px 0 0;
	padding: 0;
	color: var(--icr-muted);
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
}
body.itec-article .itec-guide figure.itec-video figcaption a {
	color: var(--icr-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--icr-line);
	text-underline-offset: 3px;
}
body.itec-article .itec-guide figure.itec-video figcaption a:hover {
	text-decoration-color: var(--icr-accent);
}

/* ---------------------------------------------------------------- headings */

body.itec-article .itec-guide h2 {
	margin: 56px 0 16px;
	padding: 0;
	color: var(--icr-ink);
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.2px;
	text-transform: none;
	text-wrap: balance;
}
body.itec-article .itec-guide > h2:first-child {
	margin-top: 0;
}
body.itec-article .itec-guide h3 {
	margin: 36px 0 10px;
	padding: 0;
	color: var(--icr-ink);
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}
body.itec-article .itec-guide h2 + h3 {
	margin-top: 20px;
}

/* ---------------------------------------------------------------- lists */

body.itec-article .itec-guide ul,
body.itec-article .itec-guide ol {
	margin: 0 0 28px;
	padding: 0;
}
body.itec-article .itec-guide ul > li {
	position: relative;
	margin: 0 0 8px;
	padding: 0 0 0 24px;
	list-style: none;
	color: var(--icr-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
}
body.itec-article .itec-guide ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 6px;
	height: 6px;
	background: var(--icr-accent);
}
body.itec-article .itec-guide ol {
	padding-left: 26px;
}
body.itec-article .itec-guide ol > li {
	margin: 0 0 8px;
	padding-left: 4px;
	list-style: decimal outside;
	font-size: 14px;
	line-height: 1.65;
}
body.itec-article .itec-guide ol > li::marker {
	color: var(--icr-accent-dark);
	font-weight: 700;
}

/* A list of links with a short line under each, such as the guide's contents page. */
body.itec-article .itec-guide ul > li:has(> a:first-child > strong:only-child) {
	margin: 0;
	padding: 16px 0 16px 0;
	border-bottom: 1px solid var(--icr-line);
	color: var(--icr-muted);
	font-size: 14px;
	line-height: 1.55;
}
body.itec-article .itec-guide ul > li:has(> a:first-child > strong:only-child):first-child {
	border-top: 1px solid var(--icr-line);
}
body.itec-article .itec-guide ul > li:has(> a:first-child > strong:only-child)::before {
	display: none;
}
body.itec-article .itec-guide ul > li > a:first-child > strong:only-child {
	display: inline-block;
	margin-bottom: 2px;
	font-size: 17px;
	line-height: 1.4;
}
body.itec-article .itec-guide ul > li > a:first-child:has(> strong:only-child) {
	text-decoration: none;
}
body.itec-article .itec-guide ul > li > a:first-child:has(> strong:only-child):hover strong {
	color: var(--icr-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- tables */

body.itec-article .itec-guide .itec-table {
	margin: 8px 0 32px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--icr-line);
	border-radius: 6px;
}
body.itec-article .itec-guide .itec-table table {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
body.itec-article .itec-guide .itec-table th,
body.itec-article .itec-guide .itec-table td {
	padding: 12px 16px;
	border: 0;
	text-align: left;
	vertical-align: top;
}
body.itec-article .itec-guide .itec-table thead th {
	background: var(--icr-ink);
	color: #fff;
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
}
body.itec-article .itec-guide .itec-table tbody td {
	border-top: 1px solid var(--icr-line);
	color: var(--icr-text);
	font-size: 14px;
}
body.itec-article .itec-guide .itec-table tbody tr:first-child td {
	border-top: 0;
}
body.itec-article .itec-guide .itec-table tbody tr:nth-child(even) td {
	background: #fafafa;
}
body.itec-article .itec-guide .itec-table tbody td:first-child {
	color: var(--icr-ink);
	font-weight: 600;
}
body.itec-article .itec-guide .itec-table tbody tr:has(td:first-child > strong) td {
	background: var(--icr-soft);
}
/* Columns the plugin found to hold only short values, such as prices. */
body.itec-article .itec-guide table.itec-short-2 tr > :nth-child(2),
body.itec-article .itec-guide table.itec-short-3 tr > :nth-child(3),
body.itec-article .itec-guide table.itec-short-4 tr > :nth-child(4),
body.itec-article .itec-guide table.itec-short-5 tr > :nth-child(5),
body.itec-article .itec-guide table.itec-short-6 tr > :nth-child(6) {
	white-space: nowrap;
}

/* ---------------------------------------------------------------- questions */

body.itec-article .itec-guide .itec-faq {
	margin: 56px 0 0;
}
body.itec-article .itec-guide .itec-faq > h2 {
	margin: 0 0 8px;
}
body.itec-article .itec-guide .itec-faq > h3 {
	margin: 0;
	padding: 22px 0 8px;
	border-top: 1px solid var(--icr-line);
	font-size: 21px;
}
body.itec-article .itec-guide .itec-faq > h2 + h3 {
	margin-top: 8px;
}
body.itec-article .itec-guide .itec-faq > p {
	margin-bottom: 22px;
}

/* ---------------------------------------------------------------- call to action */

body.itec-article .itec-guide .itec-cta {
	margin: 56px 0 0;
	padding: 36px 40px 14px;
	border-radius: 8px;
	background: var(--icr-ink);
	color: #e6e6e6;
}
body.itec-article .itec-guide .itec-cta > h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 30px;
}
body.itec-article .itec-guide .itec-cta p {
	color: #d9d9d9;
}
body.itec-article .itec-guide .itec-cta a {
	color: #4fe07f;
	font-weight: 700;
	text-decoration-color: rgba(79, 224, 127, 0.5);
}
body.itec-article .itec-guide .itec-cta a:hover,
body.itec-article .itec-guide .itec-cta a:focus {
	color: #fff;
	text-decoration-color: #fff;
}
body.itec-article .itec-guide .itec-cta strong {
	color: #fff;
}

/* ---------------------------------------------------------------- sources */

body.itec-article .itec-guide .itec-sources {
	margin: 48px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--icr-line);
}
body.itec-article .itec-guide .itec-sources > h2 {
	margin: 0 0 12px;
	color: var(--icr-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
body.itec-article .itec-guide .itec-sources ul {
	margin: 0;
}
body.itec-article .itec-guide .itec-sources li {
	margin: 0 0 6px;
	padding-left: 18px;
	color: var(--icr-muted);
	font-size: 13px;
	line-height: 1.5;
}
body.itec-article .itec-guide .itec-sources li::before {
	left: 2px;
	top: 0.62em;
	width: 5px;
	height: 5px;
	background: #b5b5b5;
}
body.itec-article .itec-guide .itec-sources a {
	color: var(--icr-muted);
	font-weight: 400;
	text-decoration-color: rgba(0, 0, 0, 0.25);
}
body.itec-article .itec-guide .itec-sources a:hover {
	color: var(--icr-ink);
}

/* ---------------------------------------------------------------- category and tag pages */

/* Lists of library articles. A clear page title, then each article as a title, its
   summary and a read more link, divided by thin rules. */
body.itec-archive .row.page-header-no-bg.blog-archive-header {
	padding-top: 56px !important;
	padding-bottom: 32px !important;
}
body.itec-archive .blog-archive-header .col.section-title .subheader {
	display: block;
	margin: 0 0 10px !important;
	color: var(--icr-accent) !important;
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 18px !important;
	letter-spacing: 1.5px !important;
	text-transform: uppercase !important;
}
body.itec-archive .blog-archive-header .col.section-title h1 {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--icr-ink) !important;
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif !important;
	font-size: 52px !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.5px !important;
	text-transform: none !important;
	text-wrap: balance;
}
body.itec-archive .posts-container > article.post {
	margin: 0 !important;
	padding: 28px 0 !important;
	border-bottom: 1px solid var(--icr-line);
}
body.itec-archive .posts-container > article.post:first-child {
	padding-top: 0 !important;
}
/* The avatar and "In <category>" repeat the page title, so they are hidden here. */
body.itec-archive .posts-container .post .post-author {
	display: none !important;
}
body.itec-archive .posts-container .post .content-inner,
body.itec-archive .posts-container .post .post-header {
	margin: 0 !important;
	padding: 0 !important;
}
body.itec-archive .posts-container .post .post-header h2.title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.2px !important;
	text-transform: none !important;
}
body.itec-archive .posts-container .post .post-header h2.title a {
	color: var(--icr-ink) !important;
	transition: color 0.15s;
}
body.itec-archive .posts-container .post .post-header h2.title a:hover,
body.itec-archive .posts-container .post .post-header h2.title a:focus {
	color: var(--icr-accent-dark) !important;
}
body.itec-archive .posts-container .post .excerpt {
	max-width: var(--icr-col);
	margin: 0 0 10px;
	padding: 0;
	color: var(--icr-text);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7;
}
body.itec-archive .posts-container .post .more-link {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
}
body.itec-archive .posts-container .post .more-link .continue-reading {
	color: var(--icr-accent-dark) !important;
	font-family: "Roboto Condensed", "Arial Narrow", sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 1px;
	text-transform: uppercase;
}
body.itec-archive .posts-container .post .more-link .continue-reading::before {
	display: none !important;
}
body.itec-archive .posts-container .post .more-link .continue-reading::after {
	content: "\2192" !important;
	position: static !important;
	display: inline-block !important;
	width: auto !important;
	height: auto !important;
	margin-left: 6px;
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	transform: none !important;
	transition: transform 0.15s !important;
}
body.itec-archive .posts-container .post .more-link:hover .continue-reading,
body.itec-archive .posts-container .post .more-link:focus .continue-reading {
	color: var(--icr-ink) !important;
}
body.itec-archive .posts-container .post .more-link:hover .continue-reading::after {
	transform: translateX(3px) !important;
}

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1000px) {
	body.itec-article .container-wrap {
		padding-top: 40px !important;
	}
	body.itec-article .row.heading-title .col.section-title h1.entry-title {
		font-size: 44px !important;
	}
	body.itec-article #page-header-bg h1.entry-title {
		font-size: 48px !important;
	}
	body.itec-article .itec-guide h1.itec-page-title {
		font-size: 44px;
	}
}

@media (max-width: 690px) {
	body.itec-article .container-wrap {
		padding-top: 28px !important;
	}
	body.itec-archive .row.page-header-no-bg.blog-archive-header {
		padding-top: 32px !important;
		padding-bottom: 20px !important;
	}
	body.itec-archive .blog-archive-header .col.section-title h1 {
		font-size: 34px !important;
		letter-spacing: -0.3px !important;
	}
	body.itec-archive .posts-container .post .post-header h2.title {
		font-size: 22px !important;
	}
	body.itec-article .row.heading-title {
		margin-bottom: 24px;
	}
	body.itec-article .row.heading-title .col.section-title h1.entry-title {
		font-size: 34px !important;
		letter-spacing: -0.3px;
	}
	body.itec-article #page-header-bg h1.entry-title {
		font-size: 36px !important;
	}
	body.itec-article .itec-guide h1.itec-page-title {
		font-size: 34px;
		letter-spacing: -0.3px;
	}
	body.itec-article .itec-guide p.itec-lead {
		font-size: 20px;
	}
	body.itec-article .itec-guide h2 {
		margin-top: 44px;
		font-size: 26px;
	}
	body.itec-article .itec-guide h3,
	body.itec-article .itec-guide .itec-faq > h3 {
		font-size: 20px;
	}
	body.itec-article .itec-guide .itec-table th,
	body.itec-article .itec-guide .itec-table td {
		min-width: 110px;
		padding: 10px 12px;
		font-size: 13.5px;
	}
	body.itec-article .itec-guide .itec-table th:first-child,
	body.itec-article .itec-guide .itec-table td:first-child {
		min-width: 150px;
	}
	body.itec-article .itec-guide .itec-cta {
		margin-top: 44px;
		padding: 26px 22px 6px;
	}
	body.itec-article .itec-guide .itec-cta > h2 {
		font-size: 25px;
	}
}

@media print {
	body.itec-article .itec-guide figure.itec-video iframe {
		display: none;
	}
	body.itec-article .itec-guide .itec-cta {
		background: none;
		color: inherit;
		border: 1px solid #999;
	}
	body.itec-article .itec-guide .itec-cta > h2,
	body.itec-article .itec-guide .itec-cta p,
	body.itec-article .itec-guide .itec-cta a {
		color: #000;
	}
}
