/* Child studio article: lead image */
body.postid-22891 figure.wp-block-image.tz-child-studio-lead {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  margin: 32px auto !important;
}

.tz-child-studio-lead img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 767px) {
  .tz-child-studio-lead {
    margin: 24px auto;
  }

  .tz-child-studio-lead img {
    border-radius: 12px;
  }
}
/* Readable width for Gutenberg article blocks */
body.postid-22891 p.wp-block-paragraph,
body.postid-22891 h2.wp-block-heading,
body.postid-22891 h3.wp-block-heading,
body.postid-22891 ul.wp-block-list,
body.postid-22891 ol.wp-block-list,
body.postid-22891 blockquote.wp-block-quote {
  width: min(100% - 40px, 900px) !important;
  max-width: 900px !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}

body.postid-22891 p.wp-block-paragraph {
  line-height: 2;
  margin-bottom: 22px !important;
}

@media (max-width: 767px) {
  body.postid-22891 p.wp-block-paragraph,
  body.postid-22891 h2.wp-block-heading,
  body.postid-22891 h3.wp-block-heading,
  body.postid-22891 ul.wp-block-list,
  body.postid-22891 ol.wp-block-list,
  body.postid-22891 blockquote.wp-block-quote {
    width: calc(100% - 28px) !important;
  }
}
/* Author box */
body.postid-22891 .techzehn-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 900px);
  margin: 48px auto 36px;
  padding: 24px;
  background: #f5f8fc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-sizing: border-box;
}

body.postid-22891 .techzehn-author-box__avatar {
  flex: 0 0 80px;
}

body.postid-22891 .techzehn-author-box__avatar img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

body.postid-22891 .techzehn-author-box__content {
  flex: 1;
  min-width: 0;
}

body.postid-22891 .techzehn-author-box__name {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

body.postid-22891 .techzehn-author-box__bio p {
  margin: 0;
  line-height: 1.9;
}

@media (max-width: 600px) {
  body.postid-22891 .techzehn-author-box {
    width: calc(100% - 28px);
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }
}
/* Article title and top metadata */
body.postid-22891 .techzehn-single__title {
  width: min(100% - 40px, 900px);
  margin: 28px auto 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.45;
  text-align: right;
}

body.postid-22891 .techzehn-news-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100% - 40px, 900px);
  margin: 0 auto 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

body.postid-22891 .techzehn-news-date,
body.postid-22891 .techzehn-news-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.postid-22891 .techzehn-news-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 600px) {
  body.postid-22891 .techzehn-single__title,
  body.postid-22891 .techzehn-news-meta {
    width: calc(100% - 28px);
  }

  body.postid-22891 .techzehn-news-meta {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}
/* Breadcrumb */
body.postid-22891 .techzehn-breadcrumb {
  width: min(100% - 40px, 900px);
  margin: 20px auto 12px;
  box-sizing: border-box;
}

body.postid-22891 .techzehn-breadcrumb__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
}

body.postid-22891 .techzehn-breadcrumb a {
  color: #475569;
  text-decoration: none;
}

body.postid-22891 .techzehn-breadcrumb__separator {
  color: #94a3b8;
}

body.postid-22891 .techzehn-breadcrumb__current {
  color: #64748b;
}

@media (max-width: 600px) {
  body.postid-22891 .techzehn-breadcrumb {
    width: calc(100% - 28px);
    margin-top: 16px;
  }
}
.techzehn-single__sidebar--right,
aside.techzehn-single__sidebar--right,
.techzehn-sidebar-title {
  display: none !important;
}
/* Top advertisement */
.techzehn-top-ad {
  width: min(100% - 40px, 900px);
  margin: 20px auto 30px;
  box-sizing: border-box;
}

.techzehn-top-ad__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.techzehn-top-ad img,
.techzehn-top-ad iframe {
  display: block;
  max-width: 100% !important;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .techzehn-top-ad {
    width: calc(100% - 28px);
    margin: 16px auto 24px;
  }
}
/* Hide temporary share icons */
.techzehn-single__share {
  display: none !important;
}
/* Related posts */
.techzehn-related-posts {
  width: min(100% - 40px, 900px);
  margin: 40px auto 60px;
  box-sizing: border-box;
}

.techzehn-related-posts > h2 {
  margin: 0 0 22px;
  font-size: 25px;
  line-height: 1.5;
}

.techzehn-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.techzehn-related-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #172033;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.techzehn-related-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.techzehn-related-post__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f6;
}

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

.techzehn-related-post__title {
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 800px) {
  .techzehn-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .techzehn-related-posts {
    width: calc(100% - 28px);
    margin-bottom: 40px;
  }

  .techzehn-related-posts__grid {
    grid-template-columns: 1fr;
  }
}
/* Typography matched to the previous article design */
body.postid-22891 .techzehn-single,
body.postid-22891 .techzehn-single * {
  font-family: "Estedad", sans-serif !important;
}

body.postid-22891 .techzehn-single__title {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 45px !important;
  color: rgba(0, 0, 0, 0.71) !important;
}

body.postid-22891 .techzehn-single__content p {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 27px !important;
  color: rgba(0, 0, 0, 0.78) !important;
}
/* Main page appearance matching the previous article design */
body.postid-22891 {
  background: #f7f7f7;
}

body.postid-22891 .techzehn-single {
  padding: 36px 20px 64px;
}

body.postid-22891 .techzehn-single__layout {
  display: block !important;
  width: min(100%, 1180px);
  margin-inline: auto;
}

body.postid-22891 .techzehn-single__sidebar {
  display: none !important;
}

body.postid-22891 .techzehn-single__main {
  width: 100% !important;
  max-width: none !important;
}

body.postid-22891 .techzehn-single__article {
  width: 100%;
  padding: 34px 40px 48px;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.postid-22891 .techzehn-single {
    padding: 18px 10px 40px;
  }

  body.postid-22891 .techzehn-single__article {
    padding: 22px 14px 36px;
    border-radius: 6px;
  }
}
/* Author and date row like the previous design */
body.postid-22891 .techzehn-news-meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 900px);
  margin: 0 auto 30px;
  padding: 0 0 22px;
  border-bottom: 1px solid #eeeeee;
  direction: rtl;
}

body.postid-22891 .techzehn-news-author {
  order: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777;
  font-size: 14px;
}

body.postid-22891 .techzehn-news-date {
  order: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #999;
  font-size: 13px;
  direction: rtl;
}

body.postid-22891 .techzehn-news-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

body.postid-22891 .techzehn-news-date-icon {
  font-size: 0;
}

body.postid-22891 .techzehn-news-date-icon::before {
  content: "▣";
  font-size: 15px;
  color: #b8b8b8;
}

@media (max-width: 600px) {
  body.postid-22891 .techzehn-news-meta {
    width: calc(100% - 28px);
    gap: 14px;
  }

  body.postid-22891 .techzehn-news-author img {
    width: 40px;
    height: 40px;
  }
}
/* Force desktop two-column layout */
@media (min-width: 1025px) {
	html body.single-post main.techzehn-single > .techzehn-single__layout {
		display: grid !important;
		grid-template-columns: 310px minmax(0, 1fr) !important;
		grid-template-areas: "ads content" !important;
		align-items: start !important;
		gap: 22px !important;
		width: calc(100% - 32px) !important;
		max-width: 1180px !important;
		margin: 22px auto 0 !important;
		direction: ltr !important;
	}

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

	html body.single-post .techzehn-single__sidebar--left {
		display: block !important;
		grid-area: ads !important;
		width: 310px !important;
		min-width: 0 !important;
		direction: rtl !important;
	}
}
/* Reduce space between article header and layout */
body.single-post main.techzehn-single {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

@media (min-width: 1025px) {
	html body.single-post main.techzehn-single > .techzehn-single__layout {
		margin-top: 30px !important;
	}
}
@counter-style tz-persian-numbers {
	system: numeric;
	symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
	suffix: ". ";
}

body.single-post .techzehn-single__content ol {
	list-style-type: tz-persian-numbers;
}

/* Reserve space for the top Yektanet banner */
body.single-post .techzehn-top-ad__inner {
	width: 100%;
	min-height: 100px;
}

@media (max-width: 767px) {
	body.single-post .techzehn-top-ad__inner {
		min-height: 90px;
	}
}