.cs-header__logout-form {
  display: contents;
}

.cs-header__account-toggle,
.cs-header__logout-toggle {
  color: inherit;
  text-decoration: none;
}

.cs-header__account-toggle svg,
.cs-header__logout-toggle svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.cs-mobile-account-item {
  display: none;
}

/* Keep every tenant-home post excerpt to a consistent maximum of three lines. */
.cs-post-tiles .cs-entry__excerpt,
.cs-posts-area__home .cs-entry__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.cs-posts-area__archive .cs-entry__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Present homepage post zero as a regular image-first card while retaining its
   original two-column/two-row featured grid footprint. */
.cs-post-tiles .cs-entry-tile--standard .cs-entry__outer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  flex-direction: column;
  align-items: stretch;
}

.cs-post-tiles .cs-entry-tile--standard .cs-entry__content {
  height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--cs-color-primary);
}

.cs-post-tiles .cs-entry-tile--standard .cs-entry__title,
.cs-post-tiles .cs-entry-tile--standard .cs-entry__title a {
  color: var(--cs-color-primary);
}

.cs-post-tiles .cs-entry-tile--standard .cs-entry__excerpt,
.cs-post-tiles .cs-entry-tile--standard .cs-entry__post-meta {
  color: var(--cs-color-secondary);
}

@media (max-width: 425px) {
  .cs-header__inner-mobile .cs-header__account-toggle,
  .cs-header__inner-mobile .cs-header__logout-toggle {
    display: none;
  }

  .cs-menu-mobile__nav > li.cs-mobile-account-item {
    display: inline-flex;
  }

  .cs-mobile-account-item form {
    width: 100%;
  }

  .cs-mobile-account-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    color: var(--cs-color-primary);
    cursor: pointer;
    font-family: var(--cs-font-menu-family), sans-serif;
    font-size: var(--cs-font-menu-size);
    line-height: var(--cs-font-menu-line-height);
    font-weight: var(--cs-font-menu-weight);
    letter-spacing: var(--cs-font-menu-letter-spacing);
    text-transform: var(--cs-font-menu-text-transform);
    text-decoration: none;
    transition: opacity 0.25s;
  }

  .cs-mobile-account-action:hover {
    opacity: 0.5;
  }

  .cs-mobile-account-action svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}
/* Static tenant pages use the full content container width. */
.cs-static-page .cs-entry__content-wrap {
  max-width: none;
}

.cs-category-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
}

.cs-category-pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--cs-button-border-radius);
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-secondary-button-contrast);
  font-weight: 600;
  text-decoration: none;
}

.cs-category-pagination a:hover,
.cs-category-pagination a:focus-visible {
  background: var(--cs-color-secondary-button-hover);
  color: var(--cs-color-secondary-button-hover-contrast);
}

.cs-categories__item-thumbnail--fallback {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.cs-categories__item-thumbnail--fallback span {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cs-featured-categories__item-description p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cs-footer__copyright {
  width: 100%;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cs-color-border);
}

.cs-footer__copyright-owner,
.cs-footer__developer-credit {
  display: inline-flex;
  align-items: center;
}

.cs-footer__developer-credit {
  gap: 0.35rem;
  white-space: nowrap;
}

.cs-footer__developer-credit > span {
  color: var(--cs-color-secondary);
}

.cs-footer__copyright .cs-footer__developer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 0;
  background: none;
  color: var(--cs-color-primary);
  font-weight: 600;
}

.cs-footer__copyright .cs-footer__developer-credit a:hover,
.cs-footer__copyright .cs-footer__developer-credit a:focus-visible {
  color: var(--cs-color-accent);
}

.cs-footer__developer-credit svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.cs-footer__developer-credit a:hover svg,
.cs-footer__developer-credit a:focus-visible svg {
  transform: translate(2px, -2px);
}

@media (max-width: 767.98px) {
  .cs-footer__copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Article layout overrides must win over both Recap exact stylesheets. */
.cs-site-content.cs-sidebar-enabled .cs-entry__content-wrap {
  width: 100%;
  max-width: var(--cs-entry-content-full) !important;
}

.cs-entry-prev-next .cs-entry__thumbnail {
  max-width: 100% !important;
  border-radius: var(--cs-thumbnail-border-radius);
  overflow: hidden;
}
