.ataman-author,
.ataman-single .blog-content {
  --ataman-font: "Urbanist", sans-serif;
  --ataman-sticky-top: 160px;
  font-family: var(--ataman-font);
  color: #1c1c1c;
}

.ataman-author :is(h1, h2, h3, h4, h5, h6),
.ataman-single :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ataman-font);
  color: #1c1c1c;
  line-height: 1.25;
}

.ataman-author-hero {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}

.ataman-author-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 72px 0 0;
}

.ataman-author-hero__profile {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.ataman-author-hero__photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e7e7e7;
}

.ataman-author-hero__name {
  margin: 0 0 8px;
  font-family: var(--ataman-font);
  font-size: 50px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.ataman-author-hero__job {
  margin: 0 0 16px;
  color: #5e5e5e;
  font-size: 28px;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ataman-author-hero__bio {
  max-width: 640px;
  margin: 0;
  color: #3a3a3a;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.ataman-author-hero__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 22px;
}

.ataman-author-hero__specs-label {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ataman-author-hero__specs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0 !important;
  list-style: none !important;
}

.ataman-author-hero__specs li {
  padding: 7px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: transparent !important;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  list-style: none !important;
}

.ataman-author-hero__specs li::marker {
  content: "";
}

.ataman-author-hero__specs li::before {
  display: none !important;
  content: none !important;
}

.ataman-wordmark {
  display: block;
  width: min(50%, 945px);
  height: auto;
  align-self: flex-end;
  margin: 40px 0 0;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.ataman-author-posts {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.ataman-author-posts h2,
.ataman-related__title {
  margin: 0 0 28px;
  font-family: var(--ataman-font);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

.ataman-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ataman-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f4f4f4;
}

.ataman-card__media {
  display: block;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 11;
  background: #e5e5e5;
}

.ataman-card__media img,
.ataman-card__fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ataman-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.ataman-card__title {
  margin: 0 0 16px;
  font-family: var(--ataman-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.ataman-card__title a,
.ataman-card__more,
.ataman-card__by a,
.ataman-byline__person,
.ataman-about-author__more,
.ataman-toc a {
  color: inherit;
  text-decoration: none;
}
.ataman-card__title a:hover,
.ataman-card__more:hover,
.ataman-card__by a:hover,
.ataman-byline__person:hover,
.ataman-about-author__more:hover,
.ataman-toc a:hover,
.ataman-byline__person:hover strong,
.ataman-byline__person:hover em {
  color: var(--color-main);
}

.ataman-card__title a:hover,
.ataman-card__by a:hover,
.ataman-card__more:hover,
.ataman-about-author__more:hover,
.ataman-toc a:hover,
.ataman-byline__person:hover strong {
  text-decoration: underline;
}

.ataman-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #666;
  font-size: 13px;
}

.ataman-card__avatar,
.ataman-byline__person img,
.ataman-about-author__card img {
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.ataman-card__avatar {
  width: 28px;
  height: 28px;
}

.ataman-card__date {
  margin-left: auto;
}

.ataman-card__more {
  display: inline-flex;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
}

.ataman-author-paging {
  margin-top: 36px;
}

.ataman-author-paging .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.ataman-author-empty {
  color: #666;
}

.ataman-single .entry-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  margin-bottom: 28px;
  padding: 48px 32px;
  border-radius: 18px;
}

.ataman-single .entry-header .entry-title {
  max-width: 16em;
  margin: 0 auto;
  color: #fff;
  font-family: var(--ataman-font);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ataman-single #breadcrumbs {
  margin: 8px 0 22px;
  color: #8a8a8a;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
}

.ataman-single #breadcrumbs a {
  color: #8a8a8a;
  text-decoration: none;
}

.ataman-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.ataman-byline__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ataman-byline__person img {
  width: 48px;
  height: 48px;
}

.ataman-byline__person span {
  display: flex;
  flex-direction: column;
}

.ataman-byline__person strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.ataman-byline__person em {
  color: #777;
  font-style: normal;
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ataman-byline time {
  color: #1d1d20;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.ataman-article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.ataman-toc-wrap {
  min-width: 0;
  position: sticky;
  top: var(--ataman-sticky-top);
  align-self: start;
}

.ataman-toc {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--ataman-sticky-top) - 24px);
  overflow: hidden;
}

.ataman-toc__label {
  margin: 0 0 14px;
  color: #1d1d20;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

.ataman-toc ol {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.ataman-toc li + li {
  margin-top: 10px;
}

.ataman-toc a {
  color: #9a9a9a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.ataman-article-main {
  color: #1d1d20;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.ataman-article-main :is(p, li) {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ataman-article-main h2 {
  scroll-margin-top: 110px;
}

.ataman-about-author {
  margin-top: 48px;
}

.ataman-about-author__label {
  margin: 0 0 12px;
  color: #4a4a4d;
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.ataman-about-author__card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  background: #f6f6f6;
}

.ataman-about-author__card img {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
}

.ataman-about-author__name {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.ataman-about-author__job {
  margin: 4px 0 0;
  color: #1d1d20;
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ataman-about-author__bio {
  margin: 0;
  color: #666;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.ataman-about-author__more {
  display: inline-flex;
  gap: 6px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.ataman-related {
  margin-top: 64px;
}

@media (max-width: 991px) {
  .ataman-card-grid,
  .ataman-article-layout {
    grid-template-columns: 1fr;
  }

  .ataman-author-hero__inner {
    padding: 40px 20px 0;
    text-align: center;
  }

  .ataman-author-hero__profile {
    flex-direction: column;
    gap: 24px;
  }

  .ataman-author-hero__bio {
    margin-right: auto;
    margin-left: auto;
  }

  .ataman-author-hero__specs,
  .ataman-author-hero__specs ul {
    justify-content: center;
  }

  .ataman-author-hero__name,
  .ataman-author-posts h2 {
    font-size: 32px;
  }

  .ataman-author-hero__job {
    font-size: 22px;
  }

  .ataman-author-hero__bio {
    font-size: 16px;
  }

  .ataman-wordmark {
    width: min(90%, 500px);
    align-self: center;
    margin-top: 32px;
  }

  .ataman-author-posts {
    padding: 40px 20px 64px;
  }

  .ataman-card__meta {
    flex-wrap: wrap;
  }

  .ataman-card__date {
    flex-basis: 100%;
    margin-left: 36px;
  }

  .ataman-single .entry-header {
    min-height: 240px;
  }

  .ataman-single .entry-header .entry-title {
    font-size: 32px;
  }

  .single-post .content .entry-header .entry-title {
    margin-top: 0;
  }

  .ataman-byline__person strong {
    font-size: 22px;
  }

  .ataman-byline__person em,
  .ataman-byline time {
    font-size: 15px;
  }

  .ataman-toc__label {
    font-size: 24px;
  }

  .ataman-article-main {
    font-size: 16px;
  }

  .ataman-byline {
    align-items: flex-start;
  }

  .ataman-toc {
    height: auto;
    margin-bottom: 8px;
  }

  .ataman-toc-wrap {
    position: static;
  }

  .ataman-toc ol {
    flex: none;
    overflow: visible;
  }

  .ataman-about-author {
    max-width: none;
    margin-right: 0;
  }
}
