/**
 * Top5Ebikes shared section and card styles for Elementor templates.
 */

/* Homepage / category / article layout — remove theme boxed article wrapper */
body.te5-landing-page .sheader,
body.te5-category-page .sheader,
body.te5-article-page .sheader {
  margin-bottom: 0;
}

body.te5-landing-page #content .content-wrap,
body.te5-landing-page #content.site-content,
body.te5-category-page #content .content-wrap,
body.te5-category-page #content.site-content,
body.te5-article-page #content .content-wrap,
body.te5-article-page #content.site-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

body.te5-landing-page .featured-content,
body.te5-category-page .featured-content,
body.te5-article-page .featured-content,
body.te5-article-page .te5-article-page__main-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  float: none;
}

body.te5-landing-page article.posts-entry.fbox,
body.te5-category-page article.posts-entry.fbox,
body.te5-article-page article.posts-entry.fbox {
  box-shadow: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

body.te5-landing-page #secondary,
body.te5-landing-page .entry-header,
body.te5-category-page #secondary,
body.te5-category-page .entry-header,
body.te5-article-page .header-widgets-wrapper,
body.te5-article-page #secondary {
  display: none;
}

body.te5-landing-page
  .elementor-section.elementor-top-section
  > .elementor-container,
body.te5-category-page
  .elementor-section.elementor-top-section
  > .elementor-container {
  max-width: var(--te5-max-width);
}

body.te5-landing-page
  .elementor-section.elementor-top-section.te5-section-embed--full-bleed
  > .elementor-container,
body.te5-category-page
  .elementor-section.elementor-top-section.te5-section-embed--full-bleed
  > .elementor-container,
body.te5-landing-page
  .elementor-section.elementor-top-section:has(> .elementor-container .te5-newsletter)
  > .elementor-container,
body.te5-category-page
  .elementor-section.elementor-top-section:has(> .elementor-container .te5-newsletter)
  > .elementor-container,
body.te5-landing-page .te5-newsletter.elementor-section > .elementor-container,
body.te5-category-page .te5-newsletter.elementor-section > .elementor-container {
  max-width: none;
}

body.te5-landing-page .entry-content > .elementor,
body.te5-category-page .entry-content > .elementor,
body.te5-article-page .entry-content > .elementor {
  width: 100%;
}

/* Category pages: Ad Inserter auto-injects block 37 before content — hide so only SPONSOR slot shows */
body.te5-category-page #main > .code-block,
body.te5-category-page .site-main > .code-block {
  display: none !important;
}

/* Header */
.te5-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--te5-color-border);
}

.te5-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te5-space-4);
  max-width: var(--te5-max-width);
  margin: 0 auto;
}

.te5-header__logo,
.te5-header__logo-text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.te5-header__logo img {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
}

.te5-header__logo-text {
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--te5-color-text-primary);
}

.te5-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--te5-space-4);
}

.te5-header__nav-link {
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
  color: var(--te5-color-text-primary);
  text-decoration: none;
}

.te5-header__nav-link:hover {
  color: var(--te5-color-brand);
}

.te5-section {
  font-family: var(--te5-font-family);
}

.te5-section--gray {
  background-color: var(--te5-color-bg-secondary);
}

.te5-section--white {
  background-color: var(--te5-color-bg-primary);
}

.te5-section--accent-tinted {
  background-color: var(--te5-color-bg-accent-tinted);
}

.te5-section--dark {
  background-color: var(--te5-color-black);
  color: var(--te5-color-white);
}

.te5-section__inner {
  max-width: var(--te5-max-width);
  margin: 0 auto;
  padding: var(--te5-section-padding-y) var(--te5-section-padding-x);
}

.te5-section__inner--narrow {
  max-width: 800px;
}

.te5-section__title {
  margin: 0 0 var(--te5-space-4);
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-h2);
  line-height: var(--te5-line-height-h2);
  font-weight: var(--te5-font-weight-semibold);
  letter-spacing: -0.54px;
  color: var(--te5-color-text-primary);
}

.te5-section__title--center {
  text-align: center;
}

.te5-section__title--white {
  color: var(--te5-color-white);
}

.te5-section__body {
  font-size: var(--te5-font-size-body);
  line-height: var(--te5-line-height-body);
  color: var(--te5-color-text-secondary);
}

.te5-section__body--center {
  text-align: center;
}

/* Article card (loop item) — Figma node 5638:15257 */
.te5-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--te5-color-bg-primary);
  box-shadow: var(--te5-shadow-card);
  overflow: hidden;
}

.te5-article-card .elementor-widget-theme-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.te5-article-card > .elementor-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.te5-article-card
  > .elementor-container
  > .elementor-column
  > .elementor-element-populated {
  padding: 0;
}

.te5-article-card
  > .elementor-container
  > .elementor-column
  > .elementor-element-populated
  > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.te5-article-card .elementor-inner-section .elementor-container {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.te5-article-card
  .elementor-inner-section
  .elementor-column
  > .elementor-element-populated {
  padding: 0;
}

/* Media — 400×300 aspect, image edge-to-edge with object-fit cover */
.te5-article-card__media {
  position: relative;
  aspect-ratio: var(--te5-article-card-media-ratio);
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}

.te5-article-card__media > .elementor-container,
.te5-article-card__media > .elementor-container > .elementor-column,
.te5-article-card__media .elementor-widget-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.te5-article-card__media .elementor-widget-theme-post-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
}

.te5-article-card__media .elementor-widget-theme-post-featured-image .elementor-widget-container,
.te5-article-card__media .elementor-widget-theme-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.te5-article-card__media .elementor-widget-theme-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Category badges overlaid on media — Figma tagsBar */
.te5-article-card__media .elementor-widget-heading,
.te5-article-card__media .elementor-widget-shortcode {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.te5-article-card__media .elementor-widget-heading .elementor-widget-container,
.te5-article-card__media .elementor-widget-shortcode .elementor-widget-container,
.te5-article-card__media .elementor-widget-shortcode .elementor-shortcode {
  padding: 0;
  margin: 0;
}

.te5-article-card__media .elementor-widget-heading .elementor-heading-title[class*="elementor-size-"],
.te5-article-card__media .elementor-widget-shortcode .elementor-shortcode {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--te5-space-1);
  padding: var(--te5-space-4);
  margin: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.te5-article-card__media
  .elementor-widget-heading
  .elementor-heading-title[class*="elementor-size-"]
  > a,
.te5-article-card__media
  .elementor-widget-shortcode
  .elementor-shortcode
  > a {
  display: inline-flex;
  align-items: center;
  padding: var(--te5-space-1) var(--te5-space-2);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  color: var(--te5-color-white);
  font-size: var(--te5-font-size-label-sm);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-sm);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  pointer-events: auto;
}

/* Content — 16px padding, 8px gap (Figma Frame 46) */
.te5-article-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.te5-article-card__content > .elementor-container,
.te5-article-card__content > .elementor-container > .elementor-column,
.te5-article-card__content .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--te5-space-2);
  align-items: flex-start;
  width: 100%;
  padding: 0;
  margin: 0;
}

.te5-article-card__content .elementor-widget-heading .elementor-heading-title {
  margin: 0;
  color: var(--te5-color-text-tertiary);
  font-size: var(--te5-font-size-label-sm);
  line-height: var(--te5-line-height-label-sm);
  font-weight: var(--te5-font-weight-medium);
}

.te5-article-card__content .elementor-widget-theme-post-title {
  margin: 0;
  width: 100%;
}

.te5-article-card__content .elementor-widget-theme-post-title .elementor-heading-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-lg);
  line-height: var(--te5-line-height-label-lg);
  font-weight: var(--te5-font-weight-medium);
  color: var(--te5-color-brand);
}

.te5-article-card__content .elementor-widget-theme-post-title a {
  color: inherit;
  text-decoration: none;
}

/* Legacy class hooks (Elementor may omit widget css_classes in loop items) */
.te5-article-card__date .elementor-heading-title {
  margin: 0;
}

.te5-article-card__title .elementor-heading-title {
  color: var(--te5-color-brand);
}

/* News card (horizontal loop item) — Figma node 5638:15350 */
.te5-news-card {
  position: relative;
  background: var(--te5-color-bg-primary);
  box-shadow: var(--te5-shadow-card-strong);
  overflow: hidden;
}

.te5-news-card .te5-news-card__title a::after,
.te5-news-card .elementor-widget-theme-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.te5-news-card .te5-news-card__read-more,
.te5-news-card .te5-news-card__read-more .elementor-button {
  position: relative;
  z-index: 2;
}

.te5-news-card > .elementor-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.te5-news-card > .elementor-container > .elementor-column:first-child,
.te5-news-card > .elementor-container > .elementor-column:last-child {
  flex: none;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
}

@media (min-width: 1024px) {
  .te5-news-card > .elementor-container {
    flex-direction: row;
    min-height: var(--te5-news-card-height);
    height: var(--te5-news-card-height);
    max-height: var(--te5-news-card-height);
  }

  .te5-news-card > .elementor-container > .elementor-column:first-child {
    flex: 0 0 var(--te5-news-card-media-width) !important;
    width: var(--te5-news-card-media-width) !important;
    max-width: var(--te5-news-card-media-width) !important;
    height: var(--te5-news-card-height);
  }

  .te5-news-card > .elementor-container > .elementor-column:last-child {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    height: var(--te5-news-card-height);
  }
}

.te5-news-card .elementor-section .elementor-container {
  margin-inline: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.te5-news-card
  > .elementor-container
  > .elementor-column
  > .elementor-element-populated {
  padding: 0;
}

.te5-news-card
  > .elementor-container
  > .elementor-column:first-child
  > .elementor-element-populated {
  display: block;
  height: auto;
}

@media (min-width: 1024px) {
  .te5-news-card
    > .elementor-container
    > .elementor-column:first-child
    > .elementor-element-populated,
  .te5-news-card
    > .elementor-container
    > .elementor-column:last-child
    > .elementor-element-populated {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .te5-news-card
    > .elementor-container
    > .elementor-column:last-child
    > .elementor-element-populated
    > .te5-news-card__content {
    flex: 1 1 auto;
    min-height: 0;
  }
}

.te5-news-card__media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 384 / 256;
  overflow: hidden;
  position: relative;
  line-height: 0;
}

@media (min-width: 1024px) {
  .te5-news-card__media {
    flex: 0 0 var(--te5-news-card-media-width);
    width: var(--te5-news-card-media-width);
    max-width: var(--te5-news-card-media-width);
    height: var(--te5-news-card-height);
    max-height: var(--te5-news-card-height);
    aspect-ratio: 384 / 256;
  }

  .te5-news-card__media .elementor-section,
  .te5-news-card__media .elementor-container,
  .te5-news-card__media .elementor-column,
  .te5-news-card__media .elementor-widget-wrap,
  .te5-news-card__media .elementor-widget-container,
  .te5-news-card__media .elementor-widget-theme-post-featured-image,
  .te5-news-card__media .elementor-widget-image {
    height: 100%;
    max-height: 100%;
  }
}

.te5-news-card__media .elementor-section,
.te5-news-card__media .elementor-container,
.te5-news-card__media .elementor-column,
.te5-news-card__media .elementor-widget-wrap,
.te5-news-card__media .elementor-widget-container,
.te5-news-card__media .elementor-widget-theme-post-featured-image,
.te5-news-card__media .elementor-widget-image {
  padding: 0;
  margin: 0;
  height: 100%;
}

.te5-news-card__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.te5-news-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .te5-news-card__content {
    height: var(--te5-news-card-height);
    max-height: var(--te5-news-card-height);
    min-height: var(--te5-news-card-height);
  }
}

/* Kill Elementor kit widget spacing (default ~20px) so Figma gaps win. */
.te5-news-card .elementor-widget {
  margin: 0 !important;
}

.te5-news-card__content > .elementor-container,
.te5-news-card__content > .elementor-container > .elementor-column,
.te5-news-card__content
  > .elementor-container
  > .elementor-column
  > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--te5-space-4);
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .te5-news-card__content > .elementor-container,
  .te5-news-card__content > .elementor-container > .elementor-column,
  .te5-news-card__content
    > .elementor-container
    > .elementor-column
    > .elementor-widget-wrap {
    height: 100%;
  }
}

/* Figma: date + title (gap 8px); Read more pinned bottom-left via space-between. */
.te5-news-card__text {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.te5-news-card__text > .elementor-container,
.te5-news-card__text > .elementor-container > .elementor-column,
.te5-news-card__text .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  gap: var(--te5-space-2);
  align-items: flex-start;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.te5-news-card .elementor-inner-section .elementor-container {
  max-width: none;
}

.te5-news-card
  .elementor-inner-section
  .elementor-column
  > .elementor-element-populated {
  padding: 0;
}

.te5-news-card__text .elementor-widget-heading .elementor-heading-title {
  margin: 0;
  color: var(--te5-color-text-tertiary);
  font-size: var(--te5-font-size-label-sm);
  line-height: var(--te5-line-height-label-sm);
  font-weight: var(--te5-font-weight-medium);
}

/* Clamp on both h3 and nested <a> — Elementor wraps the title in a link. */
.te5-news-card__text .elementor-widget-theme-post-title .elementor-heading-title,
.te5-news-card__text .elementor-widget-theme-post-title .elementor-heading-title a,
.te5-news-card__title .elementor-heading-title,
.te5-news-card__title .elementor-heading-title a {
  margin: 0;
  font-size: var(--te5-font-size-label-lg);
  line-height: var(--te5-line-height-label-lg);
  font-weight: var(--te5-font-weight-medium);
  color: var(--te5-color-text-primary);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  max-height: calc(var(--te5-line-height-label-lg) * 2);
}

.te5-news-card__text .elementor-widget-theme-post-title a,
.te5-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.te5-news-card__date {
  color: var(--te5-color-text-tertiary);
  font-size: var(--te5-font-size-label-sm);
  line-height: var(--te5-line-height-label-sm);
  font-weight: var(--te5-font-weight-medium);
}

.te5-news-card__date .elementor-heading-title {
  margin: 0;
}

.te5-news-card__title {
  margin: 0;
  width: 100%;
  font-size: var(--te5-font-size-label-lg);
  line-height: var(--te5-line-height-label-lg);
  font-weight: var(--te5-font-weight-medium);
  color: var(--te5-color-text-primary);
}

/* Pin Read more to bottom-left (do NOT use margin-top:auto — wraps beside card with Elementor flex-wrap). */
.te5-news-card__content
  > .elementor-container
  > .elementor-column
  > .elementor-widget-wrap
  > .elementor-widget-button,
.te5-news-card__read-more {
  flex: 0 0 auto;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0 !important;
  color: var(--te5-color-brand);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-semibold);
  line-height: var(--te5-line-height-label-md);
  text-decoration: none;
}

.te5-news-card__content .elementor-widget-button .elementor-button,
.te5-news-card__read-more .elementor-button {
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--te5-color-brand);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-semibold);
  line-height: var(--te5-line-height-label-md);
  box-shadow: none;
}

.te5-news-card__content .elementor-widget-button .elementor-button:hover,
.te5-news-card__read-more:hover .elementor-button,
.te5-news-card__read-more:hover {
  text-decoration: underline;
}

/* Outlined button — Figma OutlinedButton border/neutral/inversed */
.te5-btn-outlined .elementor-button {
  min-width: 240px;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--te5-color-border-inversed);
  border-radius: var(--te5-radius-none);
  background: transparent;
  color: var(--te5-color-text-primary);
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
}

.te5-btn-outlined .elementor-button:hover {
  background: var(--te5-color-bg-secondary);
}

.te5-btn-outlined--center {
  display: flex;
  justify-content: center;
}

/* Category grid */
.te5-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--te5-space-4);
  width: 100%;
}

.te5-category-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px;
  border: 2px solid var(--te5-color-border-brand);
  background: var(--te5-color-bg-primary);
  color: var(--te5-color-text-primary);
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}

.te5-category-grid__cell:hover {
  background: var(--te5-color-bg-brand-tinted);
  border-color: var(--te5-color-brand);
  color: var(--te5-color-brand);
}

/* Legacy Elementor button styles (fallback) */
.te5-category-grid .elementor-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--te5-color-border-brand);
  border-radius: var(--te5-radius-none);
  background: var(--te5-color-bg-primary);
  color: var(--te5-color-text-primary);
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.te5-category-grid .elementor-button:hover {
  background: var(--te5-color-bg-brand-tinted);
  border-color: var(--te5-color-brand);
  color: var(--te5-color-brand);
}

/* Brands grid */
.te5-brands-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--te5-space-4);
}

.te5-brands-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: var(--te5-space-3);
  background: var(--te5-color-bg-primary);
  border: 1px solid var(--te5-color-border);
  box-shadow: var(--te5-shadow-card);
  text-decoration: none;
}

.te5-brands-grid__cell img {
  display: block;
  width: 100%;
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
}

/* Figma: dual 300×250 sit in one horizontal row on desktop; stack on small screens */
.te5-ad-row > .elementor-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--te5-space-6);
}

.te5-ad-row > .elementor-container > .elementor-column {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.te5-ad-row--300 > .elementor-container > .elementor-column {
  flex: 0 1 300px;
  width: 300px;
  max-width: 300px;
}

.te5-ad-row--wide > .elementor-container > .elementor-column {
  flex: 1 1 100%;
  max-width: 970px;
}

.te5-ad-row .te5-ad-slot,
.te5-ad-row .te5-ad-slot .elementor-widget-container,
.te5-ad-row .elementor-shortcode,
.te5-ad-row .code-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Lock 300×250 units so 2× retina sources (e.g. 600×500) don’t outgrow 1× creatives */
.te5-ad-row--300 .te5-ad-slot img,
.te5-ad-row--300 .code-block img,
.te5-category-ad-grid .te5-ad-slot img,
.te5-category-ad-grid .code-block img {
  width: 300px;
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  display: block;
}

.te5-ad-row--wide .te5-ad-slot img,
.te5-ad-row--wide .code-block img {
  max-width: 100%;
  width: auto;
  height: auto;
  margin-inline: auto;
}

.te5-category-ad-grid > .elementor-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--te5-space-6);
}

.te5-category-ad-grid > .elementor-container > .elementor-column {
  flex: 0 1 300px;
  width: 300px;
  max-width: 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  .te5-ad-row--300 > .elementor-container > .elementor-column,
  .te5-category-ad-grid > .elementor-container > .elementor-column {
    flex: 1 1 100%;
    width: 100%;
    max-width: 300px;
  }
}

/* News section — desktop sidebar; tablet/mobile: 2-col list + sponsor underneath */
.te5-section--news > .elementor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--te5-space-6);
}

.te5-section--news .elementor-col-66,
.te5-section--news .elementor-col-34 {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  width: 100% !important;
}

.te5-section--news .elementor-col-66 .elementor-widget-loop-grid,
.te5-section--news .elementor-col-66 .elementor-loop-container,
.te5-section--news .elementor-col-66 .e-loop-item,
.te5-section--news .elementor-col-66 .te5-news-card {
  max-width: 100%;
}

.te5-section--news .te5-ad--vertical,
.te5-section--news .te5-ad--vertical .code-block {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* Figma size/4 — 16px between heading text and first card */
.te5-section--news__title,
.te5-section--news .elementor-col-66 > .elementor-widget-wrap > .te5-section--news__title {
  margin: 0 0 var(--te5-space-4) !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.te5-section--news__title .elementor-widget-container,
.te5-section--news__title .elementor-heading-title {
  margin: 0 !important;
  padding: 0 !important;
}

.te5-section--news .elementor-col-66 > .elementor-widget-wrap > .elementor-widget-loop-grid {
  margin-top: 0 !important;
}

.te5-section--news .te5-sponsor-label {
  margin: 0;
  text-align: left;
  text-transform: uppercase;
  font-size: var(--te5-font-size-label-sm);
  font-weight: var(--te5-font-weight-semibold);
  line-height: var(--te5-line-height-label-sm);
  letter-spacing: 0.06px;
  color: var(--te5-color-text-tertiary);
}

.te5-section--news .elementor-col-34 .elementor-widget {
  margin: 0 !important;
}

/* Tablet + mobile: sponsor label full width, two 300×250 ads in one row */
@media (max-width: 1023px) {
  .te5-section--news .te5-ad--vertical {
    display: none !important;
  }

  .te5-section--news .elementor-col-34 > .elementor-widget-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--te5-space-4);
  }

  /* Label is its own Elementor HTML widget — force full row above the ads */
  .te5-section--news .elementor-col-34 > .elementor-widget-wrap > .elementor-widget-html {
    flex: 0 0 100%;
    width: 100%;
  }

  .te5-section--news .te5-sponsor-label {
    width: 100%;
    text-align: center;
    margin: var(--te5-space-2) 0 0;
    padding: 0;
  }

  /*
   * Flex items are the shortcode widgets, not the inner .te5-ad--horizontal div.
   * Keep both ads on one row (shrink equally on narrow phones).
   */
  .te5-section--news .elementor-col-34 > .elementor-widget-wrap > .elementor-widget-shortcode {
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
  }

  .te5-section--news .te5-ad--horizontal,
  .te5-section--news .elementor-shortcode .code-block.te5-ad--horizontal,
  .te5-section--news .elementor-widget-shortcode .code-block {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 !important;
  }

  .te5-section--news .te5-ad--horizontal img,
  .te5-section--news .elementor-widget-shortcode img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 250;
    object-fit: contain;
    display: block;
  }

  .te5-section--news .elementor-widget-button .elementor-button-wrapper {
    text-align: center;
  }
}

/* Desktop (≥1024): list + 300x250 sponsor stack (Figma) */
@media (min-width: 1024px) {
  .te5-section--news > .elementor-container {
    flex-wrap: nowrap;
    gap: var(--te5-space-6);
  }

  .te5-section--news .elementor-col-66 {
    flex: 1 1 0;
    max-width: none;
    width: auto !important;
  }

  .te5-section--news .elementor-col-34 {
    flex: 0 0 300px;
    max-width: 300px;
    width: 300px !important;
    align-self: flex-start;
  }

  .te5-section--news .elementor-col-34 > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 8px between sponsor label and ads / between ads — Figma size/2 */
    gap: var(--te5-space-2);
    /* Keep Elementor vertical padding so ads stay level with cards; drop horizontal */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /*
   * Sponsor label fills the heading band so the first ad top == first card top:
   * heading 44px + gap 16px = 60px
   * label pt 20 + line 20 + pb 12 = 52px, + gap 8px = 60px
   */
  .te5-section--news .te5-sponsor-label {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: var(--te5-space-5) 0 var(--te5-space-3);
    margin: 0;
    text-align: left;
  }

  .te5-section--news .te5-ad--vertical {
    display: none !important;
  }

  .te5-section--news .te5-ad--horizontal,
  .te5-section--news .elementor-shortcode .code-block.te5-ad--horizontal {
    display: flex;
    justify-content: flex-start;
    width: 300px;
    max-width: 100%;
    /* Ad Inserter .code-block defaults to margin 8px 0 — kills card alignment */
    margin: 0 !important;
  }

  .te5-section--news .te5-ad--horizontal img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
  }
}

.te5-section .elementor-col-34 .te5-ad-slot,
.te5-section .elementor-col-34 .code-block {
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-height: 600px;
}

.te5-section .elementor-col-34 .te5-ad-slot img,
.te5-section .elementor-col-34 .code-block img {
  max-width: 300px;
  width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
}

.te5-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--te5-color-bg-secondary);
  border: 1px dashed var(--te5-color-border);
  color: var(--te5-color-text-tertiary);
  font-size: var(--te5-font-size-label-sm);
  font-weight: var(--te5-font-weight-medium);
  text-align: center;
}

.te5-ad-placeholder--300x250 {
  width: 100%;
  aspect-ratio: 300 / 250;
  max-width: 300px;
}

.te5-ad-placeholder--320x100 {
  width: 100%;
  aspect-ratio: 320 / 100;
}

.te5-ad-placeholder--970x250 {
  width: 100%;
  max-width: 970px;
  aspect-ratio: 970 / 250;
  margin: 0 auto;
}

.te5-ad-placeholder--960x100 {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 100;
  margin: 0 auto;
}

/* Newsletter — Figma node 5638:15488 */
.te5-newsletter.elementor-section,
.te5-newsletter.te5-section,
.te5-article-newsletter.te5-newsletter {
  width: 100%;
  background-color: var(--te5-color-bg-accent-tinted);
}

.te5-newsletter .elementor-widget-html .elementor-widget-container,
.te5-newsletter .elementor-widget-html {
  margin: 0;
}

.te5-newsletter__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  background: transparent;
  text-align: left;
}

.te5-newsletter__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.te5-newsletter__title {
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-h2-mobile);
  line-height: var(--te5-line-height-h2-mobile);
  font-weight: var(--te5-font-weight-semibold);
  letter-spacing: -0.42px;
  color: var(--te5-color-text-primary);
}

.te5-newsletter__description {
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-body);
  font-weight: var(--te5-font-weight-regular);
  line-height: var(--te5-line-height-body);
  color: var(--te5-color-text-primary);
}

.te5-newsletter__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

/* .subscribe-btn is required by Beehiiv trigger_config; override theme Customizer styles */
.te5-newsletter__submit,
.te5-newsletter .subscribe-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: var(--te5-radius-none);
  background: var(--te5-color-accent);
  color: var(--te5-color-text-primary);
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transform: none;
}

.te5-newsletter__submit:hover,
.te5-newsletter .subscribe-btn:hover {
  opacity: 0.9;
  background: var(--te5-color-accent);
  color: var(--te5-color-text-primary);
  transform: none;
}

@media (min-width: 640px) {
  .te5-newsletter__inner {
    padding: 24px;
  }

  .te5-newsletter__actions {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
  }

  .te5-newsletter__submit,
  .te5-newsletter .subscribe-btn {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .te5-newsletter__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 24px;
  }

  .te5-newsletter__content {
    flex: 1 1 0;
    min-width: 0;
  }

  .te5-newsletter__title {
    font-size: var(--te5-font-size-h2);
    line-height: var(--te5-line-height-h2);
    letter-spacing: -0.54px;
  }

  .te5-newsletter__actions {
    flex: 0 0 400px;
    width: 400px;
    justify-content: flex-end;
  }
}

@media (min-width: 1280px) {
  .te5-newsletter__inner {
    padding: 40px;
  }
}

/* Beehiiv reopenable modal (replaces one-shot Beehiiv loader popup) */
html.te5-beehiiv-open {
  overflow: hidden;
}

.te5-beehiiv-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.te5-beehiiv-modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.te5-beehiiv-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.te5-beehiiv-modal__frame {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 70vh;
  max-height: 640px;
  border: 0;
  background: #fff;
}

/* Footer — Figma node 5638:15508 */
.te5-footer {
  background: var(--te5-color-black);
  color: var(--te5-color-white);
}

.te5-footer.elementor-section > .elementor-container {
  max-width: var(--te5-max-width);
}

.te5-footer .elementor-widget-html .elementor-widget-container,
.te5-footer .elementor-widget-html {
  margin: 0;
}

.te5-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--te5-max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.te5-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.te5-footer__brand-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.te5-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.te5-footer__logo img {
  display: block;
  width: 244px;
  max-width: 100%;
  height: 28px;
}

.te5-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.te5-footer__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--te5-color-white);
  text-decoration: none;
  box-sizing: border-box;
}

.te5-footer__social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--te5-color-white);
  opacity: 0.1;
  pointer-events: none;
}

.te5-footer__social-link svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
}

.te5-footer__social-link:hover,
.te5-footer__nav-link:hover {
  opacity: 0.75;
}

.te5-footer__panels {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.te5-footer__disclosure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.te5-footer__nav-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.te5-footer__nav-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.te5-footer__heading {
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-caption);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-caption);
  letter-spacing: 0.06px;
  color: var(--te5-color-white);
  opacity: 0.6;
}

.te5-footer__nav-link {
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
  color: var(--te5-color-white);
  text-decoration: none;
}

.te5-footer__disclosure-text {
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-body);
  font-weight: var(--te5-font-weight-regular);
  line-height: var(--te5-line-height-body);
  color: var(--te5-color-white);
}

.te5-footer__copyright {
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-caption);
  font-weight: var(--te5-font-weight-regular);
  line-height: var(--te5-line-height-caption);
  color: var(--te5-color-white);
  opacity: 0.6;
  white-space: nowrap;
}

.te5-footer__copyright--brand {
  display: none;
}

.te5-footer__copyright--end {
  display: block;
}

/* FAQ accordion overrides */
/* FAQ */
.te5-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.te5-faq-item {
  border: 1px solid var(--te5-color-border);
  background: var(--te5-color-bg-primary);
}

.te5-faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te5-space-4);
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
  color: var(--te5-color-text-primary);
}

.te5-faq-item__question::-webkit-details-marker {
  display: none;
}

.te5-faq-item__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.te5-faq-item[open] .te5-faq-item__icon {
  transform: rotate(180deg);
}

.te5-faq-item__answer {
  padding: 0 16px 16px;
  font-size: var(--te5-font-size-body);
  line-height: var(--te5-line-height-body);
  color: var(--te5-color-text-secondary);
}

.te5-faq-item__answer p {
  margin: 0;
}

.te5-faq .elementor-accordion-item {
  border-color: var(--te5-color-border);
}

.te5-faq .elementor-accordion-title {
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  color: var(--te5-color-text-primary);
}

.te5-faq .elementor-tab-content {
  font-size: var(--te5-font-size-body);
  line-height: var(--te5-line-height-body);
  color: var(--te5-color-text-secondary);
}

/* Loop grid spacing — Figma size/3 (12px) between cards */
.elementor-widget-loop-grid .elementor-loop-container {
  gap: var(--te5-space-3);
}

.elementor-widget-loop-grid .e-loop-item {
  margin: 0 !important;
}

/* Category landing pages */
.te5-category-page__title {
  margin: 0;
  font-size: var(--te5-font-size-h1);
  line-height: var(--te5-line-height-h1);
  letter-spacing: -0.88px;
}

.te5-sponsor-label {
  margin: 0 0 var(--te5-space-2);
  text-align: center;
  font-size: var(--te5-font-size-caption);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-caption);
  letter-spacing: 0.06px;
  color: var(--te5-color-text-tertiary);
}

.te5-category-ad-top .te5-ad-slot,
.te5-category-ad-bottom .te5-ad-slot {
  margin-inline: auto;
}

.te5-category-ad-grid .te5-ad-slot {
  margin-inline: auto;
}

.te5-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--te5-font-size-label-sm);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-sm);
  color: var(--te5-color-text-tertiary);
}

.te5-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.te5-breadcrumbs a:hover {
  color: var(--te5-color-brand);
}

.te5-breadcrumbs__current {
  color: var(--te5-color-text-tertiary);
}

.te5-category-grid-section .elementor-widget-loop-grid .elementor-button,
.te5-category-grid-section .e-load-more-anchor {
  min-width: 240px;
  border: 2px solid var(--te5-color-border-inversed);
  border-radius: var(--te5-radius-none);
  background: transparent;
  color: var(--te5-color-text-primary);
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
}

.te5-category-grid-section .elementor-widget-loop-grid .elementor-button:hover {
  background: var(--te5-color-bg-secondary);
}

/* Responsive */
@media (max-width: 639px) {
  .te5-section__title {
    font-size: var(--te5-font-size-h2-mobile);
    line-height: var(--te5-line-height-h2-mobile);
  }

  .te5-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .te5-header__nav {
    justify-content: flex-start;
  }

  .te5-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te5-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .te5-section__inner {
    padding: var(--te5-space-6) var(--te5-space-4);
  }

  .te5-footer__inner {
    padding: 24px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .te5-footer__inner {
    padding: 24px;
  }

  .te5-footer__panels {
    flex-direction: row;
    gap: 40px;
  }

  .te5-footer__nav-row {
    display: contents;
  }

  .te5-footer__nav-col--explore {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }

  .te5-footer__nav-col--general {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }

  .te5-footer__disclosure {
    order: 3;
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  .te5-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px;
  }

  .te5-footer__brand {
    align-self: stretch;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .te5-footer__copyright--brand {
    display: block;
  }

  .te5-footer__copyright--end {
    display: none;
  }

  .te5-footer__panels {
    flex-direction: row;
    gap: 40px;
    flex-shrink: 0;
  }

  .te5-footer__nav-row {
    display: contents;
  }

  .te5-footer__nav-col--explore {
    order: 1;
    width: 200px;
    flex: 0 0 200px;
  }

  .te5-footer__nav-col--general {
    order: 2;
    width: 200px;
    flex: 0 0 200px;
  }

  .te5-footer__disclosure {
    order: 3;
    width: 280px;
    flex: 0 0 280px;
  }
}


/* ==========================================================================
   Single article pages — Figma 5745:17712 (desktop) / 5745:19172 (mobile)
   ========================================================================== */

body.te5-article-page {
  background: var(--te5-color-bg-page);
  font-family: var(--te5-font-family);
}

body.te5-article-page #content {
  background: var(--te5-color-bg-page);
}

.te5-article-page__shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--te5-space-6);
}

.te5-article-page__layout {
  display: flex;
  flex-direction: column;
  gap: var(--te5-space-6);
  align-items: stretch;
}

.te5-article-page__content {
  min-width: 0;
  flex: 1 1 auto;
}

.te5-article-heading {
  display: flex;
  flex-direction: column;
  gap: var(--te5-space-3);
  padding-bottom: var(--te5-space-4);
}

.te5-article-heading__title {
  margin: 0;
  font-family: var(--te5-font-family);
  font-size: var(--te5-font-size-h2-mobile);
  font-weight: var(--te5-font-weight-semibold);
  line-height: var(--te5-line-height-h2-mobile);
  letter-spacing: -0.56px;
  color: var(--te5-color-text-primary);
}

.te5-article-heading__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--te5-space-2);
  align-items: center;
  margin: 0;
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
  color: var(--te5-color-text-tertiary);
}

.te5-article-heading__posted,
.te5-article-heading__date {
  color: inherit;
}

.te5-article-content {
  font-family: var(--te5-font-family);
  color: var(--te5-color-text-secondary);
  font-size: var(--te5-font-size-body);
  line-height: var(--te5-line-height-body);
}

.te5-article-content > .elementor {
  max-width: none;
}

.te5-article-content .elementor-section.elementor-top-section > .elementor-container,
.te5-article-content .elementor-section-boxed > .elementor-container {
  max-width: none;
  margin: 0;
}

.te5-article-content .elementor-section {
  margin: 0;
}

.te5-article-content > .elementor > .elementor-top-section > .elementor-container > .elementor-column > .elementor-element-populated {
  padding: 0;
}

.te5-article-content .affx-btn-wrapper .affiliatex-button,
.te5-article-content .lasso-button,
.te5-article-content a.lasso-button {
  border-radius: var(--te5-radius-none) !important;
  font-family: var(--te5-font-family) !important;
  font-weight: var(--te5-font-weight-medium) !important;
}

.te5-article-content .affx-btn-wrapper .affiliatex-button {
  background: var(--te5-color-brand) !important;
  border-color: var(--te5-color-brand) !important;
  color: var(--te5-color-white) !important;
}

.te5-article-content .elementor-widget-container {
  font-family: var(--te5-font-family);
}

.te5-article-content p,
.te5-article-content .elementor-widget-text-editor p,
.te5-article-content .elementor-widget-theme-post-content p {
  margin: 0 0 14px;
  color: var(--te5-color-text-secondary);
  font-size: var(--te5-font-size-body);
  line-height: var(--te5-line-height-body);
  font-weight: var(--te5-font-weight-regular);
}

.te5-article-content p:last-child,
.te5-article-content .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.te5-article-content h2,
.te5-article-content h3,
.te5-article-content .elementor-heading-title {
  margin: 24px 0 8px;
  color: var(--te5-color-text-primary);
  font-family: var(--te5-font-family);
  font-weight: var(--te5-font-weight-semibold);
}

.te5-article-content h2,
.te5-article-content h2.elementor-heading-title {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.28px;
  scroll-margin-top: 96px;
}

.te5-article-content h3,
.te5-article-content h3.elementor-heading-title {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.12px;
  scroll-margin-top: 96px;
}

.te5-article-content a {
  color: var(--te5-color-brand);
}

.te5-article-content a:hover {
  color: var(--te5-color-brand-hover);
}

.te5-article-content img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.te5-article-content .elementor-widget-image {
  margin: var(--te5-space-4) 0;
}

.te5-article-content .elementor-widget-image .widget-image-caption,
.te5-article-content figcaption,
.te5-article-content .wp-caption-text {
  margin-top: var(--te5-space-2);
  text-align: center;
  font-size: var(--te5-font-size-caption);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-caption);
  letter-spacing: 0.06px;
  color: var(--te5-color-text-tertiary);
}

.te5-article-content ul,
.te5-article-content ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
  color: var(--te5-color-text-secondary);
}

.te5-article-content li {
  margin-bottom: 8px;
}

.te5-article-content li:last-child {
  margin-bottom: 0;
}

/* Key takeaways / summary callouts when present in content */
.te5-article-content [class*="takeaway"],
.te5-article-content [class*="Takeaway"],
.te5-article-content [class*="key-take"],
.te5-article-content .te5-key-takeaways {
  background: var(--te5-color-bg-accent-tinted);
  border: 2px solid var(--te5-color-border-accent);
  padding: var(--te5-space-4);
  margin: var(--te5-space-4) 0;
}

/* Comparison tables */
.te5-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--te5-space-4) 0;
  background: var(--te5-color-bg-primary);
  border: 2px solid var(--te5-color-border-inversed);
  box-shadow: var(--te5-shadow-card);
  font-size: var(--te5-font-size-label-sm);
  line-height: var(--te5-line-height-label-sm);
}

.te5-article-content table th,
.te5-article-content table td {
  padding: 12px;
  border: 1px solid var(--te5-color-border);
  text-align: left;
  vertical-align: top;
  color: var(--te5-color-text-primary);
}

.te5-article-content table th {
  background: var(--te5-color-bg-page);
  font-weight: var(--te5-font-weight-semibold);
}

.te5-article-content table tr:nth-child(even) td {
  background: var(--te5-color-bg-page);
}

/* Affiliate / deal CTAs common in Elementor posts */
.te5-article-content .elementor-widget-button .elementor-button,
.te5-article-content a.button,
.te5-article-content .wp-block-button__link {
  border-radius: var(--te5-radius-none);
  font-family: var(--te5-font-family);
  font-weight: var(--te5-font-weight-medium);
}

.te5-article-content .elementor-button-success .elementor-button,
.te5-article-content .elementor-button-info .elementor-button {
  background: var(--te5-color-brand);
  border-color: var(--te5-color-brand);
  color: var(--te5-color-white);
}

.te5-article-content .elementor-button-success .elementor-button:hover,
.te5-article-content .elementor-button-info .elementor-button:hover {
  background: var(--te5-color-brand-hover);
  border-color: var(--te5-color-brand-hover);
}

/* Sidebar */
.te5-article-sidebar {
  display: none;
  flex-direction: column;
  gap: var(--te5-space-6);
  width: 360px;
  flex: 0 0 360px;
  min-height: 400px;
}

.te5-toc__label,
.te5-recent-articles__label {
  margin: 0 0 var(--te5-space-3);
  font-size: var(--te5-font-size-label-md);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-md);
  color: var(--te5-color-text-tertiary);
  text-transform: uppercase;
}

.te5-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--te5-color-bg-secondary);
}

.te5-toc__item {
  margin: 0;
}

.te5-toc__link {
  display: block;
  padding: var(--te5-space-3) var(--te5-space-4);
  border-left: 2px solid transparent;
  color: var(--te5-color-text-primary);
  text-decoration: none;
  font-size: var(--te5-font-size-label-lg);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-lg);
  overflow: hidden;
  text-overflow: ellipsis;
}

.te5-toc__item.is-active .te5-toc__link,
.te5-toc__link:hover,
.te5-toc__link:focus-visible {
  background: var(--te5-color-bg-primary);
  border-left-color: var(--te5-color-accent);
  box-shadow: var(--te5-shadow-card);
}

.te5-recent-articles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--te5-color-bg-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.te5-recent-articles__item {
  margin: 0;
}

.te5-recent-articles__card {
  display: flex;
  align-items: center;
  gap: var(--te5-space-3);
  padding: var(--te5-space-3) var(--te5-space-4);
  border-bottom: 2px solid var(--te5-color-bg-secondary);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.te5-recent-articles__item:last-child .te5-recent-articles__card {
  border-bottom: 0;
}

.te5-recent-articles__card:hover {
  background: color-mix(in srgb, var(--te5-color-brand-hover) 6%, white);
}

.te5-recent-articles__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--te5-space-2);
  min-width: 0;
}

.te5-recent-articles__title {
  font-size: var(--te5-font-size-label-lg);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-lg);
  color: var(--te5-color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.te5-recent-articles__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--te5-space-2);
  font-size: var(--te5-font-size-label-sm);
  font-weight: var(--te5-font-weight-medium);
  line-height: var(--te5-line-height-label-sm);
  color: var(--te5-color-text-tertiary);
}

.te5-recent-articles__arrow {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.te5-article-sidebar__ads {
  display: flex;
  gap: var(--te5-space-2);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.te5-article-sidebar__ads .te5-ad-slot,
.te5-article-sidebar__ads .code-block {
  margin: 0 !important;
  float: none !important;
  max-width: 160px;
}

.te5-article-sidebar__ads img {
  max-width: 100%;
  height: auto;
}

.te5-recent-articles--mobile {
  margin-top: var(--te5-space-6);
}

.te5-recent-articles--desktop {
  display: none;
}

.te5-article-bottom-ad {
  padding-block: var(--te5-space-4);
}

.te5-article-bottom-ad__inner {
  display: flex;
  justify-content: center;
  padding-block: 0;
}

.te5-article-breadcrumbs .te5-section__inner {
  padding-block: var(--te5-space-3);
}

.te5-article-breadcrumbs .te5-breadcrumbs__current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.te5-article-newsletter.te5-newsletter {
  display: block;
}

@media (min-width: 1024px) {
  .te5-article-page__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--te5-space-6);
  }

  .te5-article-heading__title {
    font-size: var(--te5-font-size-h1);
    line-height: var(--te5-line-height-h1);
    letter-spacing: -0.88px;
  }

  .te5-article-content h2,
  .te5-article-content h2.elementor-heading-title {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.54px;
  }

  .te5-article-content h3,
  .te5-article-content h3.elementor-heading-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.28px;
  }

  .te5-article-sidebar {
    display: flex;
    position: sticky;
    top: 88px;
  }

  .te5-recent-articles--mobile {
    display: none;
  }

  .te5-recent-articles--desktop {
    display: block;
  }
}

@media (max-width: 1023px) {
  .te5-article-page__shell {
    padding: var(--te5-space-6) var(--te5-space-4);
  }
}
