/* Shared responsive foundation for Gutenberg articles */
.tz-article-page *,
.tz-article-page *::before,
.tz-article-page *::after {
	box-sizing: border-box;
}

.tz-article-page img {
	max-width: 100%;
	height: auto;
}

/* Tablet */
@media (max-width: 1024px) {

	body.single-post .tz-article-header,
	body.single-post .techzehn-single__layout,
	body.single-post .tz-article-footer {
		width: calc(100% - 32px) !important;
		max-width: none !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	body.single-post .techzehn-single__layout {
		display: block !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.single-post .techzehn-single__main,
	body.single-post .techzehn-single__article {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
	}

	body.single-post .techzehn-single__sidebar {
		display: none !important;
	}

	.tz-article-header__inner {
		padding-right: 20px;
		padding-left: 20px;
		gap: 20px;
	}

	.tz-article-header__menu {
		gap: 18px;
	}

	.techzehn-single__content,
	.techzehn-single__content p,
	.techzehn-single__content h2,
	.techzehn-single__content h3,
	.techzehn-single__content figure,
	.techzehn-single__content .wp-block-image {
		max-width: 100% !important;
	}

	.techzehn-related-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Mobile */
@media (max-width: 767px) {

	body.single-post .tz-article-header,
	body.single-post .techzehn-single__layout,
	body.single-post .tz-article-footer {
		width: calc(100% - 20px) !important;
	}

	body.single-post .tz-article-header {
		margin-top: 10px !important;
		margin-bottom: -10px !important;
	}

	.tz-article-header__inner {
		min-height: auto;
		padding: 12px 14px;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.tz-article-header__brand {
		justify-content: center;
	}

	.tz-article-header__brand .custom-logo {
		max-width: 125px;
		max-height: 44px;
	}

	.tz-article-header__nav {
		width: 100%;
		overflow-x: auto;
		justify-content: flex-start;
		scrollbar-width: thin;
	}

	.tz-article-header__menu {
		width: max-content;
		min-width: 100%;
		padding-bottom: 3px;
		justify-content: flex-start;
		gap: 18px;
		white-space: nowrap;
	}

	.tz-article-header__menu > li > a {
		padding: 8px 0;
		font-size: 13px;
	}

	body.single-post .techzehn-single__article {
		padding-right: 16px !important;
		padding-left: 16px !important;
		overflow: hidden;
	}

	.techzehn-single__title {
		font-size: 23px !important;
		line-height: 1.65 !important;
		overflow-wrap: anywhere;
	}

	.techzehn-news-meta {
		flex-wrap: wrap !important;
		gap: 10px 16px !important;
	}

	.techzehn-breadcrumb,
	.techzehn-breadcrumb__inner {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.techzehn-top-ad,
	.techzehn-top-ad__inner,
	.techzehn-top-ad .yn-bnr {
		width: 100% !important;
		max-width: 100% !important;
		overflow: hidden;
	}

	.techzehn-single__content {
		width: 100% !important;
		max-width: 100% !important;
		font-size: 15px;
		line-height: 1.9;
		overflow-wrap: anywhere;
	}

	.techzehn-single__content figure,
	.techzehn-single__content .wp-block-image,
	.techzehn-single__content img {
		width: auto;
		max-width: 100% !important;
		margin-right: auto;
		margin-left: auto;
	}

	.techzehn-author-box {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center;
	}

	.techzehn-related-posts__grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.tz-article-footer__inner,
	.tz-article-footer__bottom {
		padding-right: 18px !important;
		padding-left: 18px !important;
	}

	.tz-article-footer__grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 26px !important;
	}

	.tz-article-footer__bottom {
		text-align: center;
	}
}
/* Hamburger menu */
.tz-article-header__toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	background: #ffffff;
	border: 1px solid #e3e6eb;
	border-radius: 7px;
	cursor: pointer;
}

.tz-article-header__toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #30343b;
	border-radius: 2px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

.tz-article-header__toggle:focus-visible {
	outline: 2px solid #4169e1;
	outline-offset: 2px;
}

@media (max-width: 1024px) {

	.tz-article-header__inner {
		min-height: 68px;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 10px 16px;
	}

	.tz-article-header__brand {
		justify-content: flex-start;
	}

	.tz-article-header__toggle {
		display: flex;
	}

	.tz-article-header__nav {
		order: 3;
		width: 100%;
		flex: 0 0 100%;
		display: none;
		overflow: visible;
	}

	.tz-article-header__nav.is-open {
		display: block;
	}

	.tz-article-header__menu {
		width: 100%;
		min-width: 0;
		margin: 4px 0 0;
		padding: 10px 0 4px;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		white-space: normal;
		border-top: 1px solid #eceef1;
	}

	.tz-article-header__menu > li {
		width: 100%;
	}

	.tz-article-header__menu > li > a {
		width: 100%;
		padding: 10px 4px;
		font-size: 14px;
	}

	.tz-article-header__menu .sub-menu {
		min-width: 0;
		margin: 0;
		padding: 0 14px 6px 0;
		position: static;
		display: block;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.tz-article-header__toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.tz-article-header__toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.tz-article-header__toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

@media (max-width: 767px) {

	.tz-article-header__inner {
		padding: 10px 12px;
	}

	.tz-article-header__brand .custom-logo {
		max-width: 118px;
		max-height: 42px;
	}
}
@media (max-width: 1024px) {

	.tz-article-header__brand {
		min-width: 0;
		flex: 1 1 auto;
	}

	.tz-article-header__brand > a:not(.custom-logo-link) {
		display: block;
		max-width: 100%;
		font-size: 25px;
		line-height: 1.5;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tz-article-header__toggle {
		margin-right: auto;
	}
}

@media (max-width: 767px) {

	.tz-article-header__brand > a:not(.custom-logo-link) {
		font-size: 12px;
		font-weight: 600;
		letter-spacing: -0.3px;
	}

	.tz-article-header__toggle {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}
}
/* Exact alignment of header, article and footer */
@media (max-width: 1024px) {

	body.single-post .techzehn-single {
		width: 100% !important;
		max-width: none !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.single-post .tz-article-header,
	body.single-post .techzehn-single__layout,
	body.single-post .tz-article-footer {
		width: calc(100% - 32px) !important;
		max-width: none !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}
}

@media (max-width: 767px) {

	body.single-post .tz-article-header,
	body.single-post .techzehn-single__layout,
	body.single-post .tz-article-footer {
		width: calc(100% - 20px) !important;
	}
}

/* Reduce the gap between top advertisement and article title */
body.single-post .techzehn-top-ad {
	margin-bottom: 12px !important;
}

body.single-post .techzehn-single__title {
	margin-top: 12px !important;
}
@media (max-width: 767px) {

	body.single-post .techzehn-top-ad {
		margin-top: 10px !important;
		margin-bottom: 4px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	body.single-post .techzehn-top-ad__inner {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
		min-height: 0 !important;
	}

	body.single-post .techzehn-single__title {
		margin-top: 4px !important;
		margin-bottom: 14px !important;
		font-size: 20px !important;
		line-height: 1.65 !important;
	}

	body.single-post .techzehn-single__content h2 {
		font-size: 19px !important;
		line-height: 1.7 !important;
	}

	body.single-post .techzehn-single__content h3 {
		font-size: 17px !important;
		line-height: 1.75 !important;
	}
}
@media (max-width: 767px) {

	/* Remove unnecessary reserved space around the ad */
	body.single-post .techzehn-top-ad,
	body.single-post .techzehn-top-ad__inner {
		min-height: 0 !important;
		height: auto !important;
		margin-top: 8px !important;
		margin-bottom: 0 !important;
		padding: 0 !important;
	}

	body.single-post .techzehn-top-ad .yn-bnr {
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.single-post .techzehn-single__title {
		margin-top: -20px !important;
	}

	/* Breadcrumb */
	body.single-post .techzehn-breadcrumb,
	body.single-post .techzehn-breadcrumb a,
	body.single-post .techzehn-breadcrumb span {
		font-size: 11px !important;
		line-height: 1.7 !important;
	}

	/* Date and author */
	body.single-post .techzehn-news-meta,
	body.single-post .techzehn-news-date,
	body.single-post .techzehn-news-author {
		font-size: 12px !important;
		line-height: 1.7 !important;
	}

	body.single-post .techzehn-news-author img {
		width: 30px !important;
		height: 30px !important;
	}

	/* Related posts */
	body.single-post .techzehn-related-posts > h2 {
		font-size: 18px !important;
		line-height: 1.7 !important;
	}

	body.single-post .techzehn-related-post__title {
		font-size: 13px !important;
		line-height: 1.8 !important;
	}

	/* Footer headings and links */
	body.single-post .tz-article-footer h2,
	body.single-post .tz-article-footer h3,
	body.single-post .tz-article-footer__title {
		font-size: 15px !important;
		line-height: 1.7 !important;
	}

	body.single-post .tz-article-footer p,
	body.single-post .tz-article-footer a,
	body.single-post .tz-article-footer li {
		font-size: 12px !important;
		line-height: 1.9 !important;
	}
}
@media (max-width: 1024px) {

	body.single-post .tz-article-footer {
		width: calc(100vw - 32px) !important;
		max-width: calc(100vw - 32px) !important;
		margin-right: auto !important;
		margin-left: auto !important;
		box-sizing: border-box !important;
	}

	body.single-post .tz-article-footer__inner,
	body.single-post .tz-article-footer__bottom {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	body.single-post .tz-article-footer h2,
	body.single-post .tz-article-footer h3,
	body.single-post .tz-article-footer__title,
	body.single-post .tz-article-footer__column-title {
		margin-top: 0 !important;
		margin-bottom: 10px !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		line-height: 1.8 !important;
	}

	body.single-post .tz-article-footer__brand h2,
	body.single-post .tz-article-footer__brand-title {
		font-size: 16px !important;
		font-weight: 700 !important;
	}
}

@media (max-width: 767px) {

	body.single-post .tz-article-footer {
		width: calc(100vw - 20px) !important;
		max-width: calc(100vw - 20px) !important;
	}

	body.single-post .tz-article-footer h2,
	body.single-post .tz-article-footer h3,
	body.single-post .tz-article-footer__title,
	body.single-post .tz-article-footer__column-title {
		font-size: 13px !important;
	}

	body.single-post .tz-article-footer__brand h2,
	body.single-post .tz-article-footer__brand-title {
		font-size: 15px !important;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {

	body.single-post h1.techzehn-single__title {
		position: relative !important;
		top: 12px !important;
		margin-bottom: 12px !important;
	}
}
@media (max-width: 1024px) {

	body.single-post h1.techzehn-single__title {
		padding-top: 14px !important;
	}
}

@media (max-width: 600px) {

	body.single-post h1.techzehn-single__title {
		padding-top: 0 !important;
	}
}
@media (max-width: 1024px) {

	body.single-post .tz-article-footer__grid {
		row-gap: 22px !important;
	}

	body.single-post .tz-article-footer__column {
		margin: 0 !important;
		padding: 0 !important;
	}

	body.single-post .tz-article-footer h2,
	body.single-post .tz-article-footer h3,
	body.single-post .tz-article-footer__title,
	body.single-post .tz-article-footer__column-title {
		margin: 0 0 6px !important;
		padding: 0 !important;
	}

	body.single-post .tz-article-footer ul {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
	}

	body.single-post .tz-article-footer li {
		margin: 0 0 4px !important;
		padding: 0 !important;
	}

	body.single-post .tz-article-footer li:last-child {
		margin-bottom: 0 !important;
	}
}

@media (max-width: 767px) {

	body.single-post .tz-article-footer__grid {
		row-gap: 18px !important;
	}
}
@media (max-width: 1024px) {

	/* Columns whose links are direct children after an H3 */
	body.single-post .tz-article-footer *:has(> h3 + a) {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0 !important;
	}

	body.single-post .tz-article-footer h3 {
		margin: 0 0 5px !important;
		padding: 0 !important;
	}

	body.single-post .tz-article-footer h3 + a,
	body.single-post .tz-article-footer h3 ~ a {
		display: block !important;
		margin: 0 !important;
		padding: 2px 0 !important;
		line-height: 1.65 !important;
	}

	body.single-post .tz-article-footer *:has(> h3 + a) + * {
		margin-top: 18px !important;
	}
}
@media (max-width: 1024px) {

	/* Techzehn brand section */
	body.single-post .tz-article-footer__brand {
		gap: 0 !important;
	}

	body.single-post .tz-article-footer__brand h2,
	body.single-post .tz-article-footer__brand-title {
		margin: 0 0 5px !important;
		font-size: 18px !important;
		font-weight: 700 !important;
		line-height: 1.6 !important;
	}

	body.single-post .tz-article-footer__brand p,
	body.single-post .tz-article-footer__brand a {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 2px !important;
		padding-bottom: 2px !important;
	}
}

@media (max-width: 767px) {

	body.single-post .tz-article-footer__brand h2,
	body.single-post .tz-article-footer__brand-title {
		font-size: 17px !important;
	}
}
@media (max-width: 1024px) {

	body.single-post .tz-article-footer__brand > a:first-child {
		display: inline-block !important;
		font-size: 18px !important;
		font-weight: 700 !important;
		line-height: 1.6 !important;
	}
}

@media (max-width: 767px) {

	body.single-post .tz-article-footer__brand > a:first-child {
		font-size: 17px !important;
	}
}
@media (max-width: 1024px) {

	body.single-post .tz-article-footer .tz-article-footer__logo > a {
		display: inline-block !important;
		margin: 0 0 4px !important;
		padding: 0 !important;
		font-family: "Estedad", sans-serif !important;
		font-size: 19px !important;
		font-weight: 700 !important;
		line-height: 1.5 !important;
		color: #222222 !important;
		text-decoration: none !important;
	}
}

@media (max-width: 767px) {

	body.single-post .tz-article-footer .tz-article-footer__logo > a {
		font-size: 18px !important;
	}
}
/* Two-column article layout */
body.single-post .techzehn-single__layout {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	grid-template-areas: "ads content";
	align-items: start;
	gap: 22px;
	width: calc(100% - 32px);
	max-width: 1180px;
	margin: 22px auto 0;
	direction: ltr;
}

body.single-post .techzehn-single__main {
	grid-area: content;
	width: 100%;
	min-width: 0;
	direction: rtl;
}

body.single-post .techzehn-single__sidebar--left {
	grid-area: ads;
	width: 100%;
	min-width: 0;
	direction: rtl;
}

body.single-post .techzehn-single__sidebar--right {
	display: none;
}

@media (max-width: 1024px) {
	body.single-post .techzehn-single__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"content"
			"ads";
		gap: 18px;
		width: calc(100% - 28px);
		margin-top: 16px;
	}
}

@media (max-width: 767px) {
	body.single-post .techzehn-single__layout {
		width: calc(100% - 20px);
		gap: 14px;
		margin-top: 12px;
	}
}
/* Sidebar ads */
body.single-post .techzehn-ad-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

body.single-post .techzehn-sidebar-title {
	margin: 0;
	padding: 13px 16px;
	border: 1px solid #e5e9ef;
	border-radius: 14px;
	background: #fff;
	color: #182230;
	font-size: 16px;
	font-weight: 750;
	text-align: right;
}

body.single-post .techzehn-ad-sidebar__slot {
	overflow: hidden;
	width: 100%;
	min-height: 40px;
	border-radius: 14px;
	background: #fff;
}

body.single-post .techzehn-ad-sidebar__slot img,
body.single-post .techzehn-ad-sidebar__slot iframe {
	display: block;
	max-width: 100%;
	border-radius: 14px;
}

/* Sidebar posts */
body.single-post .techzehn-sidebar-posts {
	overflow: hidden;
	margin-top: 4px;
	padding: 15px;
	border: 1px solid #e5e9ef;
	border-radius: 16px;
	background: #fff;
}

body.single-post .techzehn-sidebar-posts__heading {
	margin: 0 0 14px;
	padding-bottom: 11px;
	border-bottom: 2px solid #1877f2;
	color: #182230;
	font-size: 17px;
	font-weight: 750;
	line-height: 1.6;
}

body.single-post .techzehn-sidebar-posts__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.single-post .techzehn-sidebar-post {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 0 0 14px;
	border-bottom: 1px solid #edf0f4;
}

body.single-post .techzehn-sidebar-post:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

body.single-post .techzehn-sidebar-post__image {
	display: block;
	overflow: hidden;
	width: 88px;
	height: 68px;
	border-radius: 10px;
	background: #eef2f6;
}

body.single-post .techzehn-sidebar-post__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.single-post .techzehn-sidebar-post__content {
	min-width: 0;
}

body.single-post .techzehn-sidebar-post__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 6px;
	color: #26364a;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.85;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.single-post .techzehn-sidebar-post__title a {
	color: inherit;
	text-decoration: none;
}

body.single-post .techzehn-sidebar-post__title a:hover {
	color: #1877f2;
}

body.single-post .techzehn-sidebar-post__date {
	color: #8a94a3;
	font-size: 10px;
	line-height: 1.6;
}

@media (max-width: 1024px) {
	body.single-post .techzehn-single__sidebar--left {
		max-width: 720px;
		margin: 0 auto;
	}

	body.single-post .techzehn-sidebar-post__title {
		font-size: 13px;
	}
}

body.single-post .techzehn-sidebar-posts__loader {
	margin-top: 14px;
	padding: 10px 8px 2px;
	color: #7b8797;
	font-size: 11px;
	font-weight: 500;
	text-align: center;
}

body.single-post .techzehn-sidebar-posts__loader::before {
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 7px;
	border: 2px solid #d9e2ec;
	border-top-color: #1877f2;
	border-radius: 50%;
	content: "";
	vertical-align: -2px;
	animation: tz-sidebar-loader-spin 0.75s linear infinite;
}

body.single-post .techzehn-sidebar-posts__loader.is-error {
	color: #b42318;
}

body.single-post .techzehn-sidebar-posts__loader.is-error::before {
	display: none;
}

body.single-post .techzehn-sidebar-posts__loader[hidden] {
	display: none;
}

@keyframes tz-sidebar-loader-spin {
	to {
		transform: rotate(360deg);
	}
}