:root {
  --ts-blog-orange: #ee7d1f;
  --ts-blog-orange-dark: #d96509;
  --ts-blog-purple: #901e56;
  --ts-blog-ink: #231f20;
  --ts-blog-muted: #6f6f73;
  --ts-blog-line: #e9e9e9;
  --ts-blog-surface: #f6f6f6;
  --ts-blog-white: #fff;
}

#module-blog-blog #content,
#module-blog-category #content,
#module-blog-post #content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ts-blog,
.ts-blog *,
.ts-blog *::before,
.ts-blog *::after {
  box-sizing: border-box;
}

.ts-blog {
  width: 100%;
  color: var(--ts-blog-ink);
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.ts-blog a {
  color: inherit;
  text-decoration: none;
}

.ts-blog a:focus-visible {
  outline: 3px solid rgba(238, 125, 31, .42);
  outline-offset: 3px;
}

.ts-blog__heading {
  max-width: 760px;
  margin: 0 0 38px;
}

.ts-blog__heading--category {
  max-width: 880px;
}

.ts-blog__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--ts-blog-orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ts-blog__heading h1,
.ts-blog__section-title h2,
.ts-blog-sidebar h2 {
  margin: 0;
  color: var(--ts-blog-ink);
  font-family: inherit;
  font-weight: 500;
}

.ts-blog__heading h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.ts-blog__heading > p,
.ts-blog__category-description {
  margin-top: 16px;
  color: var(--ts-blog-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ts-blog__category-description > :last-child {
  margin-bottom: 0;
}

.ts-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 54px;
  align-items: start;
}

.ts-blog__main {
  min-width: 0;
}

.ts-blog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 30px;
}

.ts-blog-card {
  min-width: 0;
  margin: 0;
}

.ts-blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ts-blog-surface);
}

.ts-blog-card--grid .ts-blog-card__media,
.ts-blog-card--related .ts-blog-card__media {
  aspect-ratio: 4 / 3;
}

.ts-blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.ts-blog-card:hover .ts-blog-card__image {
  transform: scale(1.035);
}

.ts-blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 70% 30%, rgba(238, 125, 31, .28), transparent 32%),
    linear-gradient(135deg, #f7f7f7, #ece6e9);
}

.ts-blog-card__body {
  padding-top: 18px;
}

.ts-blog-card__category,
.ts-blog-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--ts-blog-purple);
  color: var(--ts-blog-white) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: background-color .2s ease;
}

.ts-blog-card__category:hover,
.ts-blog-tags a:hover {
  background: var(--ts-blog-orange);
}

.ts-blog-card__title {
  margin: 11px 0 0;
  color: var(--ts-blog-ink);
  font-family: inherit;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.ts-blog-card__title a {
  transition: color .2s ease;
}

.ts-blog-card__title a:hover {
  color: var(--ts-blog-orange-dark);
}

.ts-blog-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--ts-blog-muted);
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ts-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 14px;
  color: #8b8b8d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.ts-blog-meta span {
  position: relative;
}

.ts-blog-meta span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.ts-blog__empty {
  padding: 28px;
  background: var(--ts-blog-surface);
  color: var(--ts-blog-muted);
  text-align: center;
}

.ts-blog-sidebar {
  position: sticky;
  top: 110px;
}

.ts-blog-sidebar__heading {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ts-blog-orange);
}

.ts-blog-sidebar h2 {
  font-size: 24px;
  line-height: 1.25;
}

.ts-blog-sidebar__posts {
  display: grid;
  gap: 32px;
}

.ts-blog-card--home-sidebar .ts-blog-card__media {
  aspect-ratio: 4 / 3;
}

.ts-blog-card--home-sidebar .ts-blog-card__body {
  padding-top: 15px;
}

.ts-blog-card--home-sidebar .ts-blog-card__title {
  margin-top: 9px;
  font-size: 19px;
  line-height: 1.4;
}

.ts-blog-card--home-sidebar .ts-blog-card__more {
  margin-top: 12px;
}

.ts-blog-sidebar--content {
  padding-left: 6px;
}

.ts-blog-sidebar__banner {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-bottom: 30px;
  background: var(--ts-blog-surface);
}

.ts-blog-sidebar__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.ts-blog-sidebar-tabs__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  border-bottom: 1px solid #dfe1e2;
}

.ts-blog-sidebar-tabs__button {
  min-height: 46px;
  padding: 13px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a6aaad;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.ts-blog-sidebar-tabs__button:hover {
  color: var(--ts-blog-orange);
}

.ts-blog-sidebar-tabs__button.is-active {
  background: var(--ts-blog-orange);
  color: var(--ts-blog-white);
}

.ts-blog-sidebar-tabs__panel[hidden] {
  display: none;
}

.ts-blog-sidebar-tabs__empty {
  margin: 0;
  padding: 22px 16px;
  background: var(--ts-blog-surface);
  color: var(--ts-blog-muted);
  font-size: 13px;
  text-align: center;
}

.ts-blog-sidebar-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0;
}

.ts-blog-sidebar-row + .ts-blog-sidebar-row {
  margin-top: 20px;
}

.ts-blog-sidebar-row__media {
  display: block;
  overflow: hidden;
  width: 100px;
  height: 100px;
  background: var(--ts-blog-surface);
}

.ts-blog-sidebar-row__media img,
.ts-blog-sidebar-row__media .ts-blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-blog-sidebar__categories ul li {
  margin-bottom: .5rem;
}
.ts-blog-sidebar__categories ul li a {
  font-weight: 400;
}

.ts-blog-sidebar-row__body {
  min-width: 0;
}

.ts-blog-sidebar-row__category {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--ts-blog-orange) !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ts-blog-sidebar-row h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ts-blog-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ts-blog-sidebar-row h3 a:hover {
  color: var(--ts-blog-orange-dark);
}

.ts-blog-sidebar-row__author {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #8b8b8d;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 52px;
}

.ts-blog-pagination a,
.ts-blog-pagination span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ts-blog-line);
  border-radius: 50%;
  background: var(--ts-blog-white);
  color: var(--ts-blog-ink);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ts-blog-pagination a:hover,
.ts-blog-pagination span[aria-current="page"] {
  border-color: var(--ts-blog-orange);
  background: var(--ts-blog-orange);
  color: var(--ts-blog-white);
}

.ts-blog-pagination__arrow {
  font-size: 19px !important;
}

.ts-blog__category-list {
  display: grid;
  gap: 38px;
}

.ts-blog-card--list {
  display: grid;
  grid-template-columns: minmax(210px, 36%) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.ts-blog-card--list .ts-blog-card__media {
  aspect-ratio: 1 / 1;
}

.ts-blog-card--list .ts-blog-card__body {
  padding-top: 0;
}

.ts-blog-card--list .ts-blog-card__title {
  margin-top: 10px;
  font-size: 24px;
}

.ts-blog-card__more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--ts-blog-purple) !important;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.ts-blog-card__more span {
  color: var(--ts-blog-orange);
  font-size: 18px;
  transition: transform .2s ease;
}

.ts-blog-card__more:hover span {
  transform: translateX(4px);
}

.ts-blog-hero {
  position: relative;
  display: flex;
  min-height: clamp(420px, 52vw, 610px);
  overflow: hidden;
  align-items: flex-end;
  margin-bottom: 54px;
  background: var(--ts-blog-ink);
}

.ts-blog-hero__image,
.ts-blog-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ts-blog-hero__image {
  object-fit: cover;
}

.ts-blog-hero__overlay {
  background: linear-gradient(180deg, rgba(20, 18, 19, .08) 20%, rgba(20, 18, 19, .88) 100%);
}

.ts-blog-hero--without-image .ts-blog-hero__overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(238, 125, 31, .42), transparent 30%),
    linear-gradient(135deg, var(--ts-blog-purple), var(--ts-blog-ink));
}

.ts-blog-hero__content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: clamp(28px, 5vw, 58px);
  color: var(--ts-blog-white);
}

.ts-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ts-blog-hero h1 {
  max-width: 830px;
  margin: 16px 0 0;
  color: var(--ts-blog-white);
  font-family: inherit;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.14;
}

.ts-blog-meta--hero {
  margin-top: 20px;
  color: rgba(255, 255, 255, .83);
  font-size: 14px;
}

.ts-blog__layout--post {
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
}

.ts-blog-article {
  min-width: 0;
  color: #424244;
  font-size: 17px;
  line-height: 1.78;
}

.ts-blog-article__content > :first-child {
  margin-top: 0;
}

.ts-blog-article__content p,
.ts-blog-article__content ul,
.ts-blog-article__content ol,
.ts-blog-article__content blockquote,
.ts-blog-article__content table,
.ts-blog-article__content figure,
.ts-blog-article__content img {
  margin-bottom: 24px;
}

.ts-blog-article__content h2,
.ts-blog-article__content h3,
.ts-blog-article__content h4 {
  color: var(--ts-blog-ink);
  font-family: inherit;
  font-weight: 500;
}

.ts-blog-article__content h2 {
  margin: 46px 0 18px;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.28;
}

.ts-blog-article__content h3 {
  margin: 36px 0 16px;
  font-size: 23px;
  line-height: 1.35;
}

.ts-blog-article__content h4 {
  margin: 30px 0 14px;
  font-size: 19px;
}

.ts-blog-article__content a {
  color: var(--ts-blog-purple);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(144, 30, 86, .3);
  text-underline-offset: 3px;
}

.ts-blog-article__content a:hover {
  color: var(--ts-blog-orange-dark);
}

.ts-blog-article__content img,
.ts-blog-article__content iframe,
.ts-blog-article__content video {
  max-width: 100%;
  height: auto;
}

.ts-blog-article__content blockquote {
  padding: 22px 28px;
  border-left: 4px solid var(--ts-blog-orange);
  background: var(--ts-blog-surface);
  color: var(--ts-blog-ink);
  font-size: 19px;
}

.ts-blog-article__content table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.ts-blog-article__content th,
.ts-blog-article__content td {
  padding: 11px 14px;
  border: 1px solid var(--ts-blog-line);
}

.ts-blog-article__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--ts-blog-line);
  color: var(--ts-blog-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.ts-blog-related {
  margin-top: 74px;
  padding-top: 44px;
  border-top: 1px solid var(--ts-blog-line);
}

.ts-blog__section-title {
  margin-bottom: 28px;
}

.ts-blog__section-title h2 {
  font-size: 31px;
  line-height: 1.25;
}

.ts-blog-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ts-blog-card--related .ts-blog-card__title {
  font-size: 18px;
}

.ts-blog-card--related .ts-blog-card__excerpt {
  display: none;
}

@media (max-width: 1199px) {
  .ts-blog__layout,
  .ts-blog__layout--post {
    gap: 36px;
    grid-template-columns: minmax(0, 1.85fr) minmax(250px, 1fr);
  }

  .ts-blog-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ts-blog__layout,
  .ts-blog__layout--post {
    grid-template-columns: 1fr;
  }

  .ts-blog-sidebar {
    position: static;
    margin-top: 18px;
  }

  .ts-blog-sidebar__posts--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }

  .ts-blog-sidebar--content {
    max-width: 470px;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .ts-blog {
    font-size: 15px;
  }

  .ts-blog__heading {
    margin-bottom: 28px;
  }

  .ts-blog__heading > p,
  .ts-blog__category-description {
    font-size: 16px;
  }

  .ts-blog__grid {
    gap: 34px 18px;
  }

  .ts-blog-card--list {
    grid-template-columns: minmax(150px, 36%) minmax(0, 1fr);
    gap: 20px;
  }

  .ts-blog-card--list .ts-blog-card__title {
    font-size: 20px;
  }

  .ts-blog-card--list .ts-blog-card__excerpt {
    -webkit-line-clamp: 2;
  }

  .ts-blog-hero {
    min-height: 440px;
    margin-bottom: 38px;
  }

  .ts-blog-article {
    font-size: 16px;
  }

  .ts-blog-related {
    margin-top: 54px;
  }

  .ts-blog-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .ts-blog__grid,
  .ts-blog-sidebar__posts--home,
  .ts-blog-related__grid {
    grid-template-columns: 1fr;
  }

  .ts-blog-card--list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ts-blog-card--list .ts-blog-card__media {
    aspect-ratio: 4 / 3;
  }

  .ts-blog-card--list .ts-blog-card__excerpt {
    -webkit-line-clamp: 3;
  }

  .ts-blog-hero {
    min-height: 390px;
  }

  .ts-blog-hero__content {
    padding: 25px 22px;
  }

  .ts-blog-article__content h2 {
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-blog-card__image,
  .ts-blog-card__title a,
  .ts-blog-card__more span {
    transition: none;
  }
}
