:root {
	--ip-blue: #1738d7;
	--ip-blue-dark: #102ab0;
	--ip-black: #080808;
	--ip-text: #15171b;
	--ip-muted: #69717d;
	--ip-border: #dfe3ea;
	--ip-soft: #f5f7fb;
	--ip-white: #fff;
	--ip-orange: #ff8a3d;
}

.ipstack-single,
.ipstack-single * {
	box-sizing: border-box;
}

.ipstack-single {
	color: var(--ip-text);
	background: #fff;
	font-family: "Open Sans", Arial, sans-serif;
}

.ipstack-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

/* Reading progress */
.ipstack-reading-progress {
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	pointer-events: none;
}

.ipstack-reading-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--ip-orange);
}

/* Hero */
.ipstack-article-hero {
	position: relative;
	color: #fff;
	background: var(--ip-blue);
	padding: 18px 0 56px;
}

.ipstack-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 9px;
	width: 100%;
	margin: 0 0 36px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.5;
}

.ipstack-breadcrumbs a {
	color: #fff;
	text-decoration: none;
	opacity: .96;
}

.ipstack-breadcrumbs span {
	opacity: .55;
}

.ipstack-breadcrumbs .current {
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: .72;
}

.ipstack-hero-copy {
	width: min(850px, 100%);
}

.ipstack-hero-copy h1 {
	max-width: 46ch;
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(42px, 5vw, 64px);
	font-weight: 400;
	line-height: 1.07;
	letter-spacing: -1.8px;
}

.ipstack-excerpt {
	max-width: 800px;
	margin: 0 0 24px;
	color: rgba(255,255,255,.88);
	font-size: 16px;
	line-height: 1.55;
}

.ipstack-byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 11px;
	font-size: 13px;
}

.ipstack-byline a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.ipstack-format {
	padding: 5px 9px;
	color: #fff;
	border: 1px solid rgba(255,255,255,.65);
	border-radius: 3px;
}

.ipstack-hero-image {
	margin-top: 44px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(0,0,0,.08);
}

.ipstack-hero-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Article layout */
.ipstack-article-body {
	padding: 52px 20px 70px;
	background: #fff;
}

.ipstack-article-grid {
	width: min(1190px, 100%);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 210px minmax(0, 68ch) 205px;
	align-items: start;
	justify-content: center;
	gap: 42px;
}

/* TOC */
.ipstack-left-sidebar {
	min-width: 0;
}

.ipstack-toc {
	position: sticky;
	top: 80px;
	max-height: calc(100vh - 100px);
	overflow: auto;
	border: 1px solid var(--ip-border);
	border-radius: 4px;
	background: #fff;
}

.ipstack-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 14px;
	color: #1b1d21;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.ipstack-toc summary::-webkit-details-marker {
	display: none;
}

.ipstack-toc summary b {
	color: #858c97;
	font-size: 11px;
	font-weight: 600;
}

.ipstack-toc nav {
	display: flex;
	flex-direction: column;
	padding: 0 0 10px;
}

.ipstack-toc a {
	padding: 6px 13px;
	color: #707782;
	border-left: 2px solid transparent;
	font-size: 11px;
	line-height: 1.45;
	text-decoration: none;
}

.ipstack-toc a.is-child {
	padding-left: 25px;
}

.ipstack-toc a:hover,
.ipstack-toc a.is-active {
	color: var(--ip-blue);
	border-left-color: var(--ip-blue);
}

/* Main prose */
.ipstack-prose {
	min-width: 0;
	font-size: 17px;
	line-height: 1.68;
}

.ipstack-takeaways {
	margin-bottom: 34px;
	padding: 18px 20px;
	background: #f5f8ff;
	border: 1px solid #dce6ff;
	border-radius: 4px;
}

.takeaways-title {
	margin-bottom: 10px;
	color: var(--ip-blue);
	font-size: 13px;
	font-weight: 700;
}

.ipstack-takeaways ul {
	margin: 0;
	padding-left: 20px;
}

.ipstack-takeaways li {
	margin: 5px 0;
	font-size: 14px;
	line-height: 1.55;
}

.ipstack-content > p:first-child {
	margin-top: 0;
}

.ipstack-content p {
	margin: 0 0 25px;
}

.ipstack-content h2 {
	margin: 50px 0 18px;
	color: #0e1014;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.45px;
	scroll-margin-top: 85px;
}

.ipstack-content h3 {
	margin: 36px 0 14px;
	color: #111318;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	scroll-margin-top: 85px;
}

.ipstack-content a {
	color: #1c43d8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ipstack-content strong {
	color: #111318;
	font-weight: 700;
}

.ipstack-content ul,
.ipstack-content ol {
	margin: 0 0 27px;
	padding-left: 23px;
}

.ipstack-content li {
	margin-bottom: 7px;
}

.ipstack-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 28px 0;
	border-radius: 4px;
}

.ipstack-content blockquote {
	margin: 30px 0;
	padding: 18px 22px;
	background: var(--ip-soft);
	border-left: 3px solid var(--ip-blue);
}

/* Code blocks */
.ipstack-code {
	margin: 26px 0;
	overflow: hidden;
	background: var(--ip-black);
	border-radius: 4px;
}

.ipstack-code-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 31px;
	padding: 0 10px 0 12px;
	color: #a5abb4;
	background: #101010;
	border-bottom: 1px solid #252525;
	font-family: Arial, sans-serif;
	font-size: 10px;
}

.ipstack-copy-code {
	padding: 4px 9px;
	color: #c7cbd2;
	background: transparent;
	border: 1px solid #3a3a3a;
	border-radius: 3px;
	font-size: 10px;
	cursor: pointer;
}

.ipstack-copy-code:hover {
	color: #fff;
	border-color: #777;
}

.ipstack-code pre {
	margin: 0;
	padding: 17px 15px 20px;
	overflow-x: auto;
	color: #d7dce3;
	background: #080808;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	line-height: 1.6;
	tab-size: 2;
}

/* Right sidebar */
.ipstack-right-sidebar {
	min-width: 0;
	position: sticky;
	top: 80px;
}

.ipstack-sidebar-heading {
	margin-bottom: 12px;
	color: #16181c;
	font-size: 12px;
	font-weight: 700;
}

.ipstack-sidebar-posts {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ipstack-sidebar-post {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 9px;
	color: inherit;
	text-decoration: none;
}

.sidebar-thumb {
	display: block;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 3px;
	background: #edf1f7;
}

.sidebar-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidebar-post-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sidebar-post-copy small {
	margin-bottom: 3px;
	color: #89909a;
	font-size: 9px;
}

.sidebar-post-copy strong {
	display: -webkit-box;
	overflow: hidden;
	color: #202329;
	font-size: 11px;
	line-height: 1.4;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ipstack-sidebar-cta {
	margin-top: 22px;
	padding: 16px;
	background: #f4f7ff;
	border: 1px solid #dbe4ff;
	border-radius: 4px;
}

.ipstack-sidebar-cta strong {
	display: block;
	margin-bottom: 6px;
	color: #16191e;
	font-size: 12px;
}

.ipstack-sidebar-cta p {
	margin: 0 0 12px;
	color: #707782;
	font-size: 10px;
	line-height: 1.5;
}

.ipstack-sidebar-cta a {
	color: var(--ip-blue);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
}

/* FAQ */
.ipstack-faq {
	margin-top: 64px;
}

.ipstack-section-kicker {
	margin-bottom: 5px;
	color: var(--ip-blue);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.ipstack-faq h2 {
	margin: 0 0 18px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
}

.ipstack-faq-list {
	border-top: 1px solid var(--ip-border);
}

.ipstack-faq-list details {
	border-bottom: 1px solid var(--ip-border);
}

.ipstack-faq-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 15px 4px;
	color: #202329;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.ipstack-faq-list summary::-webkit-details-marker {
	display: none;
}

.ipstack-faq-list summary span {
	color: var(--ip-orange);
	font-size: 18px;
	font-weight: 400;
}

.ipstack-faq-list details[open] summary span {
	transform: rotate(45deg);
}

.ipstack-faq-list details > div {
	padding: 0 30px 15px 4px;
	color: #69717c;
	font-size: 13px;
	line-height: 1.65;
}

/* Author */
.ipstack-author {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-top: 50px;
	padding: 20px;
	background: #f7f9fc;
	border: 1px solid #e3e7ed;
	border-radius: 4px;
}

.ipstack-author-avatar img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.ipstack-author-label {
	margin-bottom: 3px;
	color: #838a94;
	font-size: 10px;
}

.ipstack-author-name {
	display: inline-block;
	color: #181a1f;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

.ipstack-author-copy p {
	max-width: 62ch;
	margin: 6px 0 8px;
	color: #69717c;
	font-size: 12px;
	line-height: 1.55;
}

.ipstack-author-link {
	color: var(--ip-blue);
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
}

/* Related */
.ipstack-related {
	padding: 55px 20px 70px;
	background: #fff;
}

.ipstack-related-head {
	margin-bottom: 20px;
}

.ipstack-related-head span {
	color: var(--ip-blue);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.ipstack-related-head h2 {
	margin: 5px 0 0;
	color: #15171b;
	font-size: 30px;
	font-weight: 400;
}

.ipstack-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.ipstack-related-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ip-border);
	border-radius: 4px;
}

.related-image {
	display: block;
	height: 145px;
	overflow: hidden;
	background: #e9edf4;
}

.related-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-copy {
	padding: 15px;
}

.related-copy > span {
	color: var(--ip-blue);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
}

.related-copy h3 {
	margin: 7px 0 7px;
	font-size: 15px;
	line-height: 1.35;
}

.related-copy h3 a {
	color: #17191d;
	text-decoration: none;
}

.related-copy p {
	margin: 0 0 12px;
	color: #727985;
	font-size: 11px;
	line-height: 1.5;
}

.related-read {
	color: var(--ip-blue);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
}

/* Mobile */
@media (max-width: 1050px) {
	.ipstack-article-grid {
		grid-template-columns: 190px minmax(0, 68ch);
	}

	.ipstack-right-sidebar {
		display: none;
	}
}

@media (max-width: 760px) {
	.ipstack-container {
		width: min(100% - 30px, 680px);
	}

	.ipstack-article-hero {
		padding-bottom: 38px;
	}

	.ipstack-hero-copy h1 {
		font-size: 40px;
		letter-spacing: -1px;
	}

	.ipstack-article-body {
		padding: 30px 15px 50px;
	}

	.ipstack-article-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ipstack-left-sidebar {
		order: 1;
	}

	.ipstack-prose {
		order: 2;
	}

	.ipstack-toc {
		position: relative;
		top: auto;
		max-height: none;
	}

	.ipstack-related-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.ipstack-hero-copy h1 {
		font-size: 34px;
	}

	.ipstack-excerpt {
		font-size: 14px;
	}

	.ipstack-byline {
		font-size: 11px;
		gap: 7px;
	}

	.ipstack-prose {
		font-size: 16px;
	}

	.ipstack-content h2 {
		font-size: 25px;
	}

	.ipstack-content h3 {
		font-size: 20px;
	}

	.ipstack-code pre {
		font-size: 11px;
	}

	.ipstack-author {
		padding: 16px;
	}

	.ipstack-author-avatar img {
		width: 52px;
		height: 52px;
	}

	.ipstack-related {
		padding-inline: 15px;
	}
}
