/*
 * AISolver CMS — component CSS (SPEC §4). The cs-entry card (all variants), header nav +
 * mega-menu + offcanvas, footer columns + marquee, and sidebar widgets. Uses tokens.css.
 */

/* ============================ cs-entry card atom ============================ */
.cs-entry {
  min-width: 0;
}
.cs-entry__outer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.cs-entry__title {
  font-family: var(--cs-font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0;
}
.cs-entry__title a {
  color: inherit;
}
.cs-entry__title a:hover {
  text-decoration: none;
  color: var(--cs-color-accent);
}
.cs-entry__excerpt {
  color: var(--cs-color-secondary);
  font-size: 0.95rem;
}

/* thumbnail + fixed-ratio overlay */
.cs-overlay-ratio {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--cs-radius-thumbnail);
  background: var(--cs-color-contrast-100);
}
.cs-ratio-square {
  aspect-ratio: 1 / 1;
}
.cs-ratio-landscape-16-9 {
  aspect-ratio: 16 / 9;
}
.cs-ratio-landscape-21-9 {
  aspect-ratio: 21 / 9;
}
.cs-overlay-background {
  position: absolute;
  inset: 0;
}
.cs-overlay-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* meta atoms */
.cs-entry__post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cs-meta-category .post-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-meta-category a {
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-color-secondary);
}
.cs-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-meta-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-meta-author-avatar img {
  border-radius: var(--cs-radius-avatar);
  display: block;
}
.cs-meta-author-name,
.cs-meta-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cs-color-secondary);
  letter-spacing: -0.02em;
}

/* tile (featured hero) — text overlaid on the image */
.cs-entry-tile .cs-entry__outer {
  position: relative;
  border-radius: var(--cs-radius-thumbnail);
  overflow: hidden;
}
.cs-entry-tile .cs-entry__thumbnail {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.cs-entry-tile .cs-overlay-ratio {
  border-radius: 0;
}
.cs-entry-tile .cs-overlay-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0) 78%);
  color: #fff;
}
.cs-entry-tile .cs-entry__info {
  display: grid;
  gap: 0.6rem;
  max-width: 680px;
}
.cs-entry-tile .cs-entry__title {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  color: #fff;
}
/* summary overlaid under the title (news/category + home leaderboard) */
.cs-entry-tile .cs-entry__excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs-entry-tile .cs-meta-category a,
.cs-entry-tile .cs-meta-author-name,
.cs-entry-tile .cs-meta-date {
  color: rgba(255, 255, 255, 0.85);
}

/* compact (sidebar / spotlight) — content left, square thumb right */
.cs-entry-compact .cs-entry__outer {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.cs-entry-compact .cs-entry__content {
  order: 1;
  flex: 1;
  min-width: 0;
}
.cs-entry-compact .cs-entry__thumbnail {
  order: 2;
  width: 72px;
  flex: 0 0 72px;
}
.cs-entry-compact .cs-entry__title {
  font-size: 0.95rem;
}

/* prev-next */
.cs-entry__prev-next .cs-entry__outer {
  flex-direction: row;
  align-items: center;
  gap: 0.875rem;
}
.cs-entry__prev-next .cs-entry__thumbnail {
  width: 64px;
  flex: 0 0 64px;
}
.cs-entry__prev-next .cs-entry__title {
  font-size: 0.95rem;
}

/* ============================ posts areas ============================ */
.cs-posts-area__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  column-gap: var(--cs-column-gap);
  row-gap: 2.5rem;
}
@media (min-width: 768px) {
  .cs-posts-area__grid {
    --cols: 2;
  }
}
.cs-posts-area__compact {
  display: grid;
  gap: 1.25rem;
}

/* featured hero */
.cs-featured-archive {
  margin-bottom: 1.5rem;
}

/* ============================ admin toolbar (logged-in admins only) ============================ */
.cs-adminbar {
  background: var(--cs-site-background);
  padding-top: 0.6rem;
}
.cs-adminbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
}
.cs-adminbar__link {
  color: var(--cs-color-secondary);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cs-adminbar__link:hover {
  color: var(--cs-color-accent);
  text-decoration: none;
}

/* ============================ header (floating rounded bar) ============================ */
.cs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cs-site-background);
  /* extra space above the floating bar (≈2× the original) */
  padding-block: 1.5rem 0.75rem;
}
/* when the admin toolbar is present it provides the top space, so trim the header's top pad */
.cms-has-adminbar .cs-header {
  padding-top: 0.5rem;
}
.cs-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--cs-header-height);
  padding-inline: 1.25rem;
  background: var(--cs-header-background);
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-header);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.cs-header__logo img {
  height: 32px;
  width: auto;
}
/* show/hide rules scoped to .cs-header__logo so they beat `.cs-header__logo img` */
.cs-header__logo .cs-logo-default {
  display: block;
}
.cs-header__logo .cs-logo-dark {
  display: none;
}
[data-scheme='dark'] .cs-header__logo .cs-logo-default {
  display: none;
}
[data-scheme='dark'] .cs-header__logo .cs-logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root[data-scheme='auto'] .cs-header__logo .cs-logo-default {
    display: none;
  }
  :root[data-scheme='auto'] .cs-header__logo .cs-logo-dark {
    display: block;
  }
}
.cs-header__logo {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.06em;
  color: var(--cs-color-primary);
}
.cs-header__nav {
  display: none;
  margin-inline: auto;
}
@media (min-width: 992px) {
  .cs-header__nav {
    display: block;
  }
}
.cs-menu-primary {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-menu-item {
  position: relative;
}
.cs-menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: var(--cs-header-height);
  color: var(--cs-color-primary);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cs-menu-item > a:hover {
  text-decoration: none;
}
/* current section — bolder than the rest (no hyperlink styling) */
.cs-menu-item.is-active > a {
  font-weight: 800;
}
.cs-menu-item.is-active .cs-menu-icon {
  opacity: 1;
}
.cs-menu-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.7;
}
.cs-menu-item > a:hover .cs-menu-icon {
  opacity: 1;
  color: var(--cs-color-accent);
}
.cs-submenu,
.cs-mega {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  background: var(--cs-header-background);
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-card);
  padding: 0.75rem;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.cs-menu-item:hover > .cs-submenu,
.cs-menu-item:hover > .cs-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cs-submenu {
  list-style: none;
  margin: 0;
  min-width: 200px;
}
.cs-submenu li a {
  display: block;
  padding: 0.4rem 0.6rem;
  color: var(--cs-color-primary);
  font-size: 0.875rem;
  border-radius: 6px;
}
.cs-submenu li a:hover {
  background: var(--cs-color-secondary-button);
  text-decoration: none;
}
.cs-mega {
  width: max(360px, 28vw);
}
.cs-featured-categories__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.cs-featured-categories__item {
  position: relative;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--cs-color-secondary-button);
}
.cs-featured-categories__item-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cs-color-primary);
}
.cs-featured-categories__item-link {
  position: absolute;
  inset: 0;
}
.cs-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
@media (min-width: 992px) {
  .cs-header__actions {
    margin-left: 0;
  }
}
.cs-header__toggle {
  background: transparent;
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-button);
  color: var(--cs-color-primary);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
}
.cs-header__burger {
  background: transparent;
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-button);
  color: var(--cs-color-primary);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
}
@media (min-width: 992px) {
  .cs-header__burger {
    display: none;
  }
}

/* offcanvas mobile drawer */
.cs-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.cs-offcanvas[hidden] {
  display: none;
}
.cs-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cs-offcanvas__panel {
  position: relative;
  width: min(340px, 85vw);
  background: var(--cs-layout-background);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}
.cs-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-menu-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-menu-mobile > ul > li > a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--cs-color-primary);
  border-bottom: 1px solid var(--cs-color-border);
  text-decoration: none;
}
.cs-menu-mobile > ul > li.is-active > a {
  font-weight: 800;
}
.cs-menu-mobile__sub {
  padding-left: 0.75rem !important;
}
.cs-menu-mobile__sub li a {
  display: block;
  padding: 0.35rem 0;
  color: var(--cs-color-secondary);
  font-size: 0.9rem;
}

/* ============================ footer ============================ */
.cs-footer {
  background: var(--cs-footer-background);
  border-top: 1px solid var(--cs-color-border);
  padding-top: 3rem;
  margin-top: 4rem;
  overflow: hidden;
}
.cs-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cs-footer__inner {
    grid-template-columns: 1.2fr 2fr auto;
  }
}
.cs-footer__tagline {
  color: var(--cs-color-secondary);
  max-width: 22rem;
  margin-top: 0.75rem;
}
.cs-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cs-footer__group ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.cs-footer__group a {
  color: var(--cs-color-primary);
  font-size: 0.9rem;
}
.cs-footer__copyright {
  color: var(--cs-color-secondary);
  font-size: 0.85rem;
  margin-top: 2rem;
}
.cs-footer-marquee {
  margin-top: 2rem;
  border-top: 1px solid var(--cs-color-border);
  padding: 1rem 0;
  white-space: nowrap;
}
.cs-footer-marquee__content {
  display: inline-flex;
  gap: 1rem;
  animation: cs-marquee 40s linear infinite;
}
.cs-footer-marquee__content span {
  font-family: var(--cs-font-display);
  font-weight: 600;
  color: var(--cs-color-secondary);
}
@keyframes cs-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================ sidebar widgets ============================ */
.cs-sidebar__inner {
  display: grid;
  gap: 2rem;
  position: sticky;
  top: calc(var(--cs-header-height) + 1.5rem);
}
.cs-widget__heading {
  font-family: var(--cs-font-base);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-color-secondary);
  margin: 0 0 1rem;
}
.cs-widget-quick-links__wrapper {
  display: grid;
  gap: 0.5rem;
}
.cs-widget-quick-links__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-card);
  color: var(--cs-color-primary);
}
.cs-widget-quick-links__item:hover {
  text-decoration: none;
  border-color: var(--cs-color-accent);
}
.cs-widget-quick-links__item-number {
  font-family: var(--cs-font-display);
  font-weight: 700;
  color: var(--cs-color-secondary);
}
.cs-widget-link-tiles__wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.cs-widget-link-tiles__item {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 0.75rem;
  border-radius: var(--cs-radius-card);
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-primary);
  font-weight: 600;
  font-size: 0.85rem;
}
.cs-widget-link-tiles__item:hover {
  text-decoration: none;
}
.cs-widget-promo__wrapper {
  border-radius: var(--cs-radius-card);
  padding: 1.5rem;
  background: linear-gradient(135deg, #206bea, #8cb7ff);
  color: #fff;
  display: grid;
  gap: 0.75rem;
}
.cs-widget-promo__heading {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.cs-widget-promo__description {
  font-size: 0.9rem;
  opacity: 0.9;
}
.cs-widget-promo__btn {
  justify-self: start;
  background: #fff;
  color: #161616;
}

/* ============================ Phase 3: page templates ============================ */

/* breadcrumb */
.cs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--cs-color-secondary);
  margin: 0 0 0.85rem;
}
.cs-breadcrumbs a {
  color: var(--cs-color-secondary);
}
.cs-breadcrumbs .cs-separator {
  color: var(--cs-color-contrast-400);
}
.cs-breadcrumbs .breadcrumb_last {
  color: var(--cs-color-primary);
}

/* page header (archive + 404) */
.cs-page__header {
  margin: 0 0 1.25rem;
}
.cs-page__title {
  margin: 0;
}
.cs-page__description {
  color: var(--cs-color-secondary);
  margin-top: 0.5rem;
  max-width: 42rem;
}

/* archive = 3 columns desktop / 2 tablet / 1 mobile */
.cs-posts-area__grid--archive {
  --cols: 1;
}
@media (min-width: 768px) {
  .cs-posts-area__grid--archive {
    --cols: 2;
  }
}
@media (min-width: 992px) {
  .cs-posts-area__grid--archive {
    --cols: 3;
  }
}

/* read-next = 3-up */
.cs-read-next {
  margin-top: 3rem;
  border-top: 1px solid var(--cs-color-border);
  padding-top: 2rem;
}
.cs-read-next__heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-posts-area__grid--read-next {
  --cols: 1;
}
@media (min-width: 576px) {
  .cs-posts-area__grid--read-next {
    --cols: 3;
  }
}

/* ---- single post ---- */
.cs-entry-single .cs-entry__header {
  margin-bottom: 1.5rem;
}
.cs-entry__header--split .cs-entry__title {
  font-size: var(--cs-h1-size);
  line-height: var(--cs-heading-line-height);
  letter-spacing: var(--cs-heading-letter-spacing);
  margin: 0.75rem 0 1.25rem;
}
@media (max-width: 767.98px) {
  .cs-entry__header--split .cs-entry__title {
    font-size: var(--cs-h2-size);
  }
}
.cs-entry__media {
  margin: 0 0 1.25rem;
}
.cs-entry__media img {
  width: 100%;
  height: auto;
  border-radius: var(--cs-radius-thumbnail);
  display: block;
}
.cs-entry__header-infobar,
.cs-entry__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--cs-color-border);
  border-bottom: 1px solid var(--cs-color-border);
}
.cs-entry__footer {
  margin-top: 2rem;
}
.cs-entry__footer-date {
  font-size: 0.8125rem;
  color: var(--cs-color-secondary);
}
.cs-entry__header-infobar .cs-share,
.cs-entry__footer .cs-share {
  margin-left: auto;
}

/* metabar (reading time + TOC) */
.cs-entry__metabar {
  margin: 1.5rem 0;
}
.cs-entry__metabar-inner {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-card);
  background: var(--cs-layout-background);
}
.cs-entry__metabar-reading_time__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-color-secondary);
}
.cs-entry__metabar-reading_time__bar {
  margin-top: 0.5rem;
  height: 4px;
  border-radius: 4px;
  background: var(--cs-color-border);
  overflow: hidden;
}
.cs-entry__metabar-reading_time__fill {
  height: 100%;
  width: 0;
  background: var(--cs-color-accent);
}
.cs-entry__metabar-toc__heading {
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-color-secondary);
  margin-bottom: 0.5rem;
}
.cs-entry__metabar-toc__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.cs-entry__metabar-toc__nav a {
  color: var(--cs-color-primary);
  font-size: 0.9rem;
}

/* share */
.cs-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-share__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-color-secondary);
}
.cs-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cs-color-border);
  background: transparent;
  color: var(--cs-color-primary);
  cursor: pointer;
  font-size: 0.85rem;
}
.cs-share__link:hover {
  border-color: var(--cs-color-accent);
  text-decoration: none;
}

/* entry content (post + page bodies) */
.cs-entry__content-wrap {
  max-width: var(--cs-content-width);
}
.entry-content {
  font-size: var(--cs-font-content-size);
  line-height: 1.7;
}
.entry-content > * {
  margin: 0 0 1.25rem;
}
.entry-content h3 {
  font-size: var(--cs-h3-size);
  margin: 2rem 0 1rem;
  scroll-margin-top: calc(var(--cs-header-height) + 1rem);
}
.entry-content h4 {
  font-size: var(--cs-h5-size);
  margin: 1.5rem 0 0.75rem;
}
/* quote box — bordered card with gradient border (matches the live aisolver.com theme) */
.entry-content blockquote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 0;
  padding: 2rem;
  text-align: left;
  color: var(--cs-color-primary);
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.5rem);
  line-height: 1.4;
  border-radius: var(--cs-radius-card);
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.06);
  border: 3px solid transparent;
  background:
    linear-gradient(var(--cs-layout-background), var(--cs-layout-background)) padding-box,
    linear-gradient(135deg, #206bea, #8cb7ff) border-box;
}
.entry-content blockquote::before,
.entry-content blockquote::after {
  content: none;
}
.entry-content blockquote p {
  margin: 0;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--cs-radius-thumbnail);
}
.entry-content a {
  text-decoration: underline;
}
.is-style-cs-background-heading {
  text-align: center;
  background: var(--cs-color-secondary-button);
  border-radius: var(--cs-radius-card);
  padding: 2rem 1rem;
}

/* prev / next */
.cs-entry-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.cs-entry-prev-next__item {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-card);
  color: var(--cs-color-primary);
}
.cs-entry-prev-next__item:hover {
  text-decoration: none;
  border-color: var(--cs-color-accent);
}
.cs-entry__next {
  text-align: right;
}
.cs-entry-prev-next__btn {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-color-secondary);
}

/* static page hero spacing */
.cs-entry-page .entry-content > h1:first-child {
  margin-top: 0.5rem;
}

/* ============================ Phase 4: slider + load-more ============================ */

/* featured slider */
.cs-slider {
  position: relative;
  margin-bottom: 2.5rem;
}
.cs-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--cs-radius-card);
}
.cs-slider__track::-webkit-scrollbar {
  display: none;
}
.cs-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #fff;
}
@media (min-width: 768px) {
  .cs-slide {
    aspect-ratio: 21 / 9;
  }
}
.cs-slide__bg {
  position: absolute;
  inset: 0;
}
.cs-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-slide__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.75rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
}
.cs-slide__content a {
  pointer-events: auto;
}
.cs-slide__title {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 32ch;
}
.cs-slide__title a {
  color: #fff;
}
.cs-slide__title a:hover {
  text-decoration: none;
}
.cs-slide__excerpt {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
}
.cs-slide .cs-meta-category a,
.cs-slide .cs-meta-author-name,
.cs-slide .cs-meta-date {
  color: rgba(255, 255, 255, 0.85);
}
.cs-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 4;
}
.cs-slider__nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
.cs-slider__prev {
  left: 1rem;
}
.cs-slider__next {
  right: 1rem;
}
.cs-slider__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 4;
}
.cs-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.cs-slider__dot.is-active {
  background: #fff;
}

/* load more */
.cs-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.cs-load-more__btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ============================ Phase 4b: layout refinements (from live-site refs) ============================ */

/* full-width hero slot (intro + leaderboard slider) above the grid */
.cms-hero-wrap {
  padding-top: 1.5rem;
}
.cs-home-intro {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}
.cs-home-intro__title {
  margin: 0;
  font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem);
}

/* ---- split slider (home leaderboard): image left + text panel right ---- */
.cs-slider--split .cs-slide--split {
  aspect-ratio: auto;
  color: var(--cs-color-primary);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-card);
  overflow: hidden;
}
@media (min-width: 768px) {
  .cs-slider--split .cs-slide--split {
    grid-template-columns: 1.55fr 1fr;
  }
}
.cs-slide--split .cs-slide__media {
  position: relative;
  aspect-ratio: 16 / 10;
}
@media (min-width: 768px) {
  .cs-slide--split .cs-slide__media {
    aspect-ratio: auto;
    min-height: 380px;
  }
}
.cs-slide--split .cs-slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-slide--split .cs-slide__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem;
}
.cs-slide--split .cs-slide__title {
  color: var(--cs-color-primary);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem);
}
.cs-slide--split .cs-slide__title a {
  color: inherit;
}
.cs-slide--split .cs-slide__excerpt {
  color: var(--cs-color-secondary);
}
.cs-slider--split .cs-slider__nav {
  background: var(--cs-layout-background);
  color: var(--cs-color-primary);
  border: 1px solid var(--cs-color-border);
}
.cs-slider--split .cs-slider__dots {
  position: static;
  transform: none;
  justify-content: center;
  margin-top: 1rem;
}
.cs-slider--split .cs-slider__dot {
  background: var(--cs-color-contrast-300);
}
.cs-slider--split .cs-slider__dot.is-active {
  background: var(--cs-color-accent);
}

/* ---- single post: 2-col header + left progress rail ---- */
.cs-entry__header--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .cs-entry__header--split {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
  }
}
.cs-entry__header--split .cs-entry__title {
  margin: 0.5rem 0 0.85rem;
}
.cs-entry__header-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cs-entry__header-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--cs-radius-thumbnail);
}
.cs-entry__header-infobar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0;
  border-top: 1px solid var(--cs-color-border);
  border-bottom: 1px solid var(--cs-color-border);
}

/* body: mini left rail (reading progress + TOC) + main column */
.cs-entry__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .cs-entry__body {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 2rem;
  }
}
.cs-entry__rail .cs-entry__metabar {
  margin: 0;
}
@media (min-width: 768px) {
  .cs-entry__rail {
    position: sticky;
    top: calc(var(--cs-header-height) + 1.5rem);
    align-self: start;
  }
  .cs-entry__rail .cs-entry__metabar-inner {
    border: 0;
    padding: 0;
    background: transparent;
    gap: 1.5rem;
  }
  .cs-entry__rail .cs-entry__metabar-reading_time__bar {
    width: 100%;
  }
}
.cs-entry__main {
  min-width: 0;
}
.cs-entry__main .cs-entry__content-wrap {
  max-width: none;
}

/* ============================ Phase 4c: post = full-width header + internal 3-col band ============================ */
/* Header (cs-entry__header--split) spans the full template width; the 3-col band starts below. */
.cs-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 992px) {
  .cs-post-layout {
    grid-template-columns: 150px minmax(0, 1fr) 300px;
  }
}
@media (min-width: 1280px) {
  .cs-post-layout {
    grid-template-columns: 168px minmax(0, 1fr) 340px;
  }
}
.cs-post-layout .cs-entry__main {
  min-width: 0;
}
.cs-post-layout .cs-entry__content-wrap {
  max-width: none;
}
.cs-post-sidebar {
  min-width: 0;
}
@media (max-width: 991.98px) {
  .cs-post-sidebar {
    order: 3;
  }
}
@media (min-width: 992px) {
  .cs-post-layout .cs-entry__rail {
    position: sticky;
    top: calc(var(--cs-header-height) + 1.5rem);
    align-self: start;
  }
  .cs-post-layout .cs-entry__rail .cs-entry__metabar-inner {
    border: 0;
    padding: 0;
    background: transparent;
    gap: 1.25rem;
  }
  .cs-post-sidebar .cs-sidebar__inner {
    position: sticky;
    top: calc(var(--cs-header-height) + 1.5rem);
  }
}
/* Read Next spans full template width (outside the 3-col band). */
.cs-entry-single > .cs-read-next {
  margin-top: 3.5rem;
}

/* ============================ Phase 5: TipTap content output ============================ */
.entry-content h2 {
  font-family: var(--cs-font-display);
  font-size: var(--cs-h3-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 2.25rem 0 1rem;
  scroll-margin-top: calc(var(--cs-header-height) + 1rem);
}
/* responsive YouTube embeds (TipTap wraps the iframe in [data-youtube-video]) */
.entry-content [data-youtube-video] {
  margin: 1.75rem 0;
}
.entry-content [data-youtube-video] iframe,
.entry-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--cs-radius-thumbnail);
  display: block;
}
/* task lists */
.entry-content ul[data-type='taskList'] {
  list-style: none;
  padding-left: 0;
}
.entry-content ul[data-type='taskList'] li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.entry-content ul[data-type='taskList'] li > label {
  margin-top: 0.3rem;
}

/* admin draft preview banner */
.cs-preview-bar {
  position: sticky;
  top: var(--cs-header-height);
  z-index: 40;
  background: #b45309;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  margin: 0 0 1rem;
  border-radius: var(--cs-radius-button);
}
.cs-preview-bar a {
  color: #fff;
  text-decoration: underline;
}

/* ============================ post bottom ribbon (prev/next pills + read-next tiles) ============================ */
.cs-postnav {
  margin-top: 3rem;
  border-top: 1px solid var(--cs-color-border);
  padding-top: 1.25rem;
}
.cs-postnav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cs-postnav__label {
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.cs-postnav__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--cs-color-border);
  border-radius: var(--cs-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cs-color-primary);
  white-space: nowrap;
}
.cs-postnav__pill:hover {
  border-color: var(--cs-color-accent);
  color: var(--cs-color-accent);
  text-decoration: none;
}
.cs-postnav__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 576px) {
  .cs-postnav__tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cs-postnav__tile {
  display: block;
  color: var(--cs-color-primary);
}
.cs-postnav__tile:hover {
  text-decoration: none;
}
.cs-postnav__thumb {
  margin-bottom: 0.6rem;
}
.cs-postnav__title {
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.cs-postnav__tile:hover .cs-postnav__title {
  color: var(--cs-color-accent);
}

/* offcanvas footer (Use the App + scheme toggle) */
.cs-offcanvas__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.cs-offcanvas__footer .cms-button {
  flex: 1;
  justify-content: center;
}

/* ============================ MOBILE (≤768px): tighten, remove dead space ============================ */
@media (max-width: 767.98px) {
  /* tighter page gutters */
  .cms-container {
    padding-inline: 16px;
  }
  /* compact header bar: logo + burger only (CTA + scheme toggle live in the offcanvas) */
  .cs-header {
    padding-block: 0.75rem;
  }
  .cs-header__cta,
  .cs-header__actions .cs-header__toggle {
    display: none;
  }
  .cms-has-adminbar .cs-header {
    padding-top: 0.4rem;
  }

  /* tighter vertical rhythm */
  .cms-layout {
    padding-block: 1.25rem;
    gap: 1.5rem;
  }
  .cms-hero-wrap {
    padding-top: 0.5rem;
  }
  .cs-home-intro {
    padding: 0.5rem 0 1rem;
  }
  .cs-slider,
  .cs-featured-archive {
    margin-bottom: 1.5rem;
  }
  .cs-sidebar__inner {
    gap: 1.5rem;
  }

  /* slider: stacked panel, tighter padding */
  .cs-slide--split .cs-slide__panel {
    padding: 1.25rem;
    gap: 0.6rem;
  }

  /* single post: tighter header + body, smaller h1 */
  .cs-entry__header--split {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .cs-entry__header--split .cs-entry__title {
    font-size: 1.85rem;
  }
  .cs-post-layout {
    gap: 1.5rem;
    margin-top: 1rem;
  }
  /* the reading-progress rail is redundant on mobile (no sticky side column) */
  .cs-entry__rail .cs-entry__metabar {
    margin: 0 0 0.5rem;
  }
  .cs-read-next,
  .cs-postnav {
    margin-top: 2rem;
  }
  .entry-content {
    font-size: 1.0625rem;
  }
  .entry-content blockquote {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
}

/* ============================ WP block styles for static pages (link rows, buttons) ============================ */
.entry-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
  list-style: none;
  padding: 0;
}
.entry-content .wp-block-button {
  display: inline-block;
}
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--cs-radius-button);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--cs-color-button);
  color: var(--cs-color-button-contrast);
}
.entry-content .wp-block-button__link:hover {
  background: var(--cs-color-button-hover);
  text-decoration: none;
}
/* secondary-button style (class sits on the .wp-block-button or the link) */
.entry-content .is-style-cs-secondary-button .wp-block-button__link,
.entry-content .wp-block-button__link.is-style-cs-secondary-button {
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-secondary-button-contrast);
}
.entry-content .is-style-cs-secondary-button .wp-block-button__link:hover,
.entry-content .wp-block-button__link.is-style-cs-secondary-button:hover {
  background: var(--cs-color-secondary-button-hover);
}
/* images */
.entry-content .wp-block-image {
  margin: 1.5rem 0;
}
.entry-content .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: var(--cs-radius-thumbnail);
}
.entry-content .wp-block-image.alignwide {
  border-radius: var(--cs-radius-card);
  overflow: hidden;
}
/* the styled "headline" heading variant */
.entry-content .is-style-cs-headline {
  text-transform: none;
}

/* ============================ PRODUCT HOME (corporate landing) ============================ */
.cs-eyebrow-accent {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-color-accent);
  margin: 0 0 0.75rem;
}
.cs-btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: var(--cs-radius-pill);
}

/* section scaffolding */
.cs-section {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.cs-section-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.cs-section-head--between {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
  flex-wrap: wrap;
}
.cs-section-title {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.1;
  margin: 0;
}
.cs-section-sub {
  color: var(--cs-color-secondary);
  font-size: 1.125rem;
  margin: 0.85rem auto 0;
  max-width: 56ch;
}
.cs-section-head--between .cs-section-sub {
  margin-inline: 0;
}
.cs-section-link {
  font-weight: 600;
  white-space: nowrap;
}

/* sub-hero (compact page header — ~half the home hero) */
.cs-subhero {
  text-align: center;
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
  background:
    radial-gradient(900px 360px at 50% -25%, rgba(32, 107, 234, 0.12), transparent 60%),
    var(--cs-site-background);
}
.cs-subhero__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 0.85rem;
  max-width: 20ch;
}
.cs-subhero__sub {
  color: var(--cs-color-secondary);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 auto 1.5rem;
  max-width: 56ch;
}

/* hero */
.cs-phero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2rem, 1rem + 3vw, 4rem);
  /* BACKUP (original gradient bg):
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(32, 107, 234, 0.12), transparent 60%),
    var(--cs-site-background); */
  background: var(--cs-site-background);
}
/* EXPERIMENT: large blurred + stretched article image as the full hero backdrop.
   To restore, delete ::before/::after below and re-enable the BACKUP gradient above. */
.cs-phero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/uploads/what-happens-when-you-cant-do-your-job-without-ai.webp');
  background-size: cover;
  background-position: center;
  filter: blur(44px) saturate(1.35);
  transform: scale(1.2);
}
.cs-phero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(8, 10, 16, 0.85) 0%, rgba(8, 10, 16, 0.6) 55%, rgba(8, 10, 16, 0.42) 100%);
}
.cs-phero > .cms-container {
  position: relative;
  z-index: 1;
}
.cs-phero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 992px) {
  .cs-phero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
  }
}
.cs-phero__title {
  font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}
.cs-phero__sub {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--cs-color-secondary);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.cs-phero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.cs-phero__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--cs-color-secondary);
}
/* hero sits on the blurred image backdrop — keep copy + ghost button white in BOTH light and dark modes */
.cs-phero .cs-phero__title,
.cs-phero .cs-phero__cta .cms-button--ghost {
  color: #fff;
}
.cs-phero .cs-phero__sub,
.cs-phero .cs-phero__note {
  color: rgba(255, 255, 255, 0.85);
}
.cs-phero .cms-button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
}
.cs-phero .cms-button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* app mockup preview */
.cs-appmock {
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.cs-appmock__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--cs-color-border);
  background: var(--cs-color-contrast-50);
}
.cs-appmock__bar > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cs-color-contrast-300);
}
.cs-appmock__crumbs {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--cs-color-secondary);
}
.cs-appmock__body {
  padding: 1rem 1.1rem 1.25rem;
  display: grid;
  gap: 0.15rem;
}
.cs-appmock__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.cs-appmock__row:hover {
  background: var(--cs-color-contrast-50);
}
.cs-appmock__check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 2px solid var(--cs-color-contrast-300);
  flex: 0 0 17px;
}
.cs-appmock__check.is-checked {
  background: var(--cs-color-accent);
  border-color: var(--cs-color-accent);
}
.cs-appmock__row.is-done .cs-appmock__label {
  color: var(--cs-color-secondary);
  text-decoration: line-through;
}
.cs-appmock__label {
  flex: 1;
}
.cs-appmock__pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-secondary-button-contrast);
}
.cs-appmock__sub {
  margin: -0.1rem 0 0.3rem 2.5rem;
  font-size: 0.8rem;
  color: var(--cs-color-secondary);
}
.cs-appmock__agent {
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #206bea, #4f86f0);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cs-appmock__agent-badge {
  display: inline-block;
  font-weight: 700;
  margin-right: 0.35rem;
}
.cs-appmock__agent-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.cs-appmock__agent-actions > span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}
.cs-appmock__agent-actions > .is-primary {
  background: #fff;
  color: #206bea;
}

/* logo strip */
.cs-logos {
  background: var(--cs-header-background);
  border-block: 1px solid var(--cs-color-border);
  padding-block: 2.25rem;
}
.cs-logos__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-color-secondary);
  margin: 0 0 1.5rem;
}
.cs-logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 4rem;
}
.cs-logos__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cs-color-contrast-500);
  letter-spacing: -0.02em;
}
.cs-logos__mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--cs-color-contrast-400);
}

/* feature grid — 2 rows of 3 equal cards */
.cs-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cs-feature__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .cs-feature__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cs-feature {
  display: flex;
  flex-direction: column;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-feature:hover {
  border-color: var(--cs-color-contrast-300);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.45);
}
.cs-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--cs-color-accent) 12%, transparent);
  color: var(--cs-color-accent);
}
.cs-feature__icon svg {
  width: 24px;
  height: 24px;
}
.cs-feature__title {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
.cs-feature__body {
  color: var(--cs-color-secondary);
  margin: 0;
  line-height: 1.55;
}
/* accent (focal) card */
.cs-feature--accent {
  background: linear-gradient(160deg, #206bea, #1a57c0);
  border-color: transparent;
  color: #fff;
}
.cs-feature--accent .cs-feature__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cs-feature--accent .cs-feature__body {
  color: rgba(255, 255, 255, 0.92);
}
.cs-feature--accent:hover {
  box-shadow: 0 20px 40px -22px rgba(32, 107, 234, 0.7);
}

/* CTA band */
.cs-cta-band {
  padding-block: 0 1.5rem;
}
/* on the landing page the news section sits right above the CTA — keep them tight */
.cms-landing .cs-testimonials {
  padding-bottom: 1.5rem;
}
.cms-landing .cs-home-news {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.cms-landing .cs-footer {
  margin-top: 1.5rem;
}
.cs-cta-band__inner {
  text-align: center;
  background: var(--cs-color-contrast-50);
  border: 1px solid var(--cs-color-border);
  border-radius: 24px;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 1.5rem;
}
.cs-cta-band__title {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.75rem);
  margin: 0 0 0.6rem;
}
.cs-cta-band__sub {
  color: var(--cs-color-secondary);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}

/* ============================ product home: extra sections ============================ */
/* check list */
.cs-check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.cs-check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--cs-color-primary);
}
.cs-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cs-color-accent) 16%, transparent);
}
.cs-check-list li::after {
  content: '';
  position: absolute;
  left: 0.42rem;
  top: 0.4rem;
  width: 0.35rem;
  height: 0.62rem;
  border: solid var(--cs-color-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* alternating showcase rows */
.cs-show-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.cs-show-row + .cs-show-row {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
@media (min-width: 900px) {
  .cs-show-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .cs-show-row--reverse .cs-show-row__copy {
    order: 2;
  }
}
.cs-show-row__media {
  background: var(--cs-color-contrast-50);
  border: 1px solid var(--cs-color-border);
  border-radius: 18px;
  padding: 1.5rem;
  min-height: 240px;
  display: grid;
}

/* mini kanban */
.cs-mini-kanban {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  display: grid;
}
.cs-mini-kanban__col {
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 10px;
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.cs-mini-kanban__h {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-color-secondary);
}
.cs-mini-card {
  background: var(--cs-color-contrast-50);
  border-radius: 7px;
  padding: 0.5rem;
  display: grid;
  gap: 0.3rem;
}
.cs-mini-card__bar {
  height: 6px;
  border-radius: 4px;
  background: var(--cs-color-contrast-300);
}
.cs-mini-card__bar--sm {
  width: 40%;
  background: var(--cs-color-contrast-200);
}

/* mini agent feed */
.cs-mini-feed {
  align-content: center;
  gap: 0.75rem;
}
.cs-mini-feed__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--cs-color-secondary);
}
.cs-mini-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-color-accent);
  flex: 0 0 8px;
}
.cs-mini-feed__name {
  color: var(--cs-color-primary);
  font-weight: 600;
}
.cs-mini-feed__tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-secondary-button-contrast);
}

/* mini task tree (nested tasks) */
.cs-mini-tree {
  align-content: center;
  gap: 0.5rem;
}
.cs-mini-tree__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: calc(var(--d) * 1.4rem);
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--cs-color-secondary);
}
.cs-mini-tree__dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: 0 0 7px;
  background: var(--cs-color-contrast-300);
}
.cs-mini-tree__row[style*='--d:0'] {
  color: var(--cs-color-primary);
  font-weight: 600;
}
.cs-mini-tree__row[style*='--d:0'] .cs-mini-tree__dot {
  background: var(--cs-color-accent);
}

/* mini agent roster */
.cs-mini-agents {
  align-content: center;
  gap: 0.75rem;
}
.cs-mini-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.cs-mini-agent__badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--cs-color-accent);
}
.cs-mini-agent div {
  display: grid;
  line-height: 1.3;
}
.cs-mini-agent strong {
  color: var(--cs-color-primary);
  font-size: 0.92rem;
}
.cs-mini-agent span {
  color: var(--cs-color-secondary);
  font-size: 0.78rem;
}

/* mini priority list */
.cs-mini-list {
  align-content: center;
  gap: 0.55rem;
}
.cs-mini-list__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--cs-color-secondary);
}
.cs-mini-list__flag {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 8px;
  background: var(--cs-color-accent);
}
.cs-mini-list__flag.is-low {
  background: var(--cs-color-contrast-300);
}
.cs-mini-list__pill {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-secondary-button-contrast);
}
.cs-mini-list__note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--cs-color-secondary);
  padding: 0.1rem 0.25rem 0.1rem 1rem;
  border-left: 2px solid var(--cs-color-accent);
}

/* mini AI-tools panel */
.cs-mini-tools {
  align-content: center;
  gap: 0.6rem;
}
.cs-mini-tools__prompt {
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--cs-color-primary);
  font-weight: 500;
}
.cs-mini-tools__out {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--cs-color-secondary);
  padding-left: 0.25rem;
}
.cs-mini-tools__out span {
  color: var(--cs-color-accent);
  font-weight: 700;
}

/* stats band */
.cs-stats {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-block: 1px solid var(--cs-color-border);
}
.cs-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cs-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cs-stat__num {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1;
  color: var(--cs-color-accent);
}
.cs-stat__label {
  margin-top: 0.4rem;
  color: var(--cs-color-secondary);
  font-size: 0.95rem;
}

/* testimonials — 3 across */
.cs-testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 880px) {
  .cs-testi__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cs-testi {
  display: flex;
  flex-direction: column;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 16px;
  padding: 1.75rem;
}
.cs-testi__quote {
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  flex: 1;
}
.cs-testi__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cs-testi__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 42px;
  background: linear-gradient(135deg, #206bea, #8cb7ff);
}
.cs-testi__author strong {
  display: block;
  font-size: 0.92rem;
}
.cs-testi__author span {
  color: var(--cs-color-secondary);
  font-size: 0.82rem;
}

/* showcase: reduce the top blank space (~half a section) */
.cs-showcase {
  padding-top: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* ============================ static-page data rows (resources/retraining link rows) ============================ */
/* blockquotes on static pages use the same gradient-border card as post/article quotes (base .entry-content blockquote) */
.cs-entry-page .entry-content .wp-block-buttons {
  justify-content: flex-end;
  margin-top: -0.25rem;
}

/* ============================ link cards (chatbots / tool directories) ============================ */
/* horizontal rows, one per line */
.cs-linkcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
/* cards stored standalone (e.g. from the editor's Link Card node) get their own spacing */
.entry-content > .cs-linkcard {
  margin: 1rem 0;
}
.cs-linkcard {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  background: var(--cs-layout-background);
  border: 1px solid var(--cs-color-border);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
}
.cs-linkcard__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--cs-color-border);
}
.cs-linkcard__main {
  flex: 1;
  min-width: 0;
}
/* beat `.entry-content h3` (which is large + spaced) */
.cs-linkcard .cs-linkcard__title {
  font-family: var(--cs-font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 0.2rem;
  scroll-margin-top: 0;
}
.cs-linkcard__body {
  color: var(--cs-color-secondary);
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}
.entry-content .cs-linkcard__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  border-radius: var(--cs-radius-button);
  background: var(--cs-color-secondary-button);
  color: var(--cs-color-secondary-button-contrast);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.entry-content .cs-linkcard__btn:hover {
  background: var(--cs-color-secondary-button-hover);
  text-decoration: none;
}
/* thumbnail variant — a rectangular section image instead of the small logo plate */
.cs-linkcard--thumb .cs-linkcard__logo {
  width: 136px;
  height: 90px;
  flex: 0 0 136px;
  border-radius: 10px;
  object-fit: cover;
  background: none;
  padding: 0;
}

/* stack on small screens */
@media (max-width: 575.98px) {
  .cs-linkcard {
    flex-wrap: wrap;
  }
  .cs-linkcard__main {
    flex: 1 1 100%;
    order: 3;
  }
  .entry-content .cs-linkcard__btn {
    margin-left: auto;
  }
  .cs-linkcard--thumb .cs-linkcard__logo {
    width: 100%;
    flex-basis: 100%;
    height: 150px;
    order: 1;
  }
}
