/**
 * Comptableo legacy Gridlove adapter
 *
 * This adapter deliberately keeps Gridlove's markup and behaviour while
 * translating it to the canonical Comptableo design language. Product routes
 * keep their own adapters and share the same tokens and foundations.
 */

body.comptableo-gridlove-child {
  --comptableo-brand: var(--ct-color-accent);
  --comptableo-brand-hover: var(--ct-color-accent-hover);
  --comptableo-ink: var(--ct-color-text-primary);
  --comptableo-muted: var(--ct-color-text-secondary);
  --comptableo-quiet: var(--ct-color-text-tertiary);
  --comptableo-line: var(--ct-color-border);
  --comptableo-line-strong: var(--ct-color-border-strong);
  --comptableo-surface: var(--ct-color-surface);
  --comptableo-surface-soft: var(--ct-color-surface-subtle);
  --comptableo-surface-muted: var(--ct-color-surface-muted);
  --comptableo-tint: var(--ct-color-accent-subtle);
  --comptableo-content: var(--ct-layout-content-xl);
  background: var(--comptableo-surface);
  color: var(--comptableo-ink);
  display: flex;
  flex-direction: column;
  font-family: var(--ct-font-family-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.comptableo-gridlove-child *,
body.comptableo-gridlove-child *::before,
body.comptableo-gridlove-child *::after {
  box-sizing: border-box;
}

body.comptableo-gridlove-child ::selection {
  background: var(--ct-color-selection);
}

body.comptableo-gridlove-child a {
  text-underline-offset: 0.18em;
}

body.comptableo-gridlove-child
  :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ct-color-focus);
  outline-offset: 3px;
}

body.comptableo-gridlove-child:not(.post-type-archive-pc_compte):not(
    .single-pc_compte
  ):not(.tax-pc_classe)
  .gridlove-site-content {
  flex: 1 0 auto;
  max-width: var(--comptableo-content);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  width: 100%;
}

/* Header */

body.comptableo-gridlove-child .gridlove-site-header {
  position: relative;
  z-index: var(--ct-z-index-sticky);
}

body.comptableo-gridlove-child .gridlove-header-wrapper,
body.comptableo-gridlove-child .gridlove-header-middle,
body.comptableo-gridlove-child .gridlove-header-bottom,
body.comptableo-gridlove-child .gridlove-header-responsive,
body.comptableo-gridlove-child .gridlove-header-sticky {
  background: rgb(255 255 255 / 96%);
}

body.comptableo-gridlove-child .gridlove-header-wrapper {
  border-bottom: 1px solid var(--comptableo-line);
}

body.comptableo-gridlove-child .gridlove-header-4 .gridlove-header-middle {
  align-items: center;
  display: flex;
  min-height: 4.5rem;
}

body.comptableo-gridlove-child .gridlove-header-4 .gridlove-slot-c {
  width: 100%;
}

body.comptableo-gridlove-child .gridlove-logo,
body.comptableo-gridlove-child .gridlove-logo-mini {
  display: block;
  height: auto;
  max-width: min(100%, 10.75rem);
}

body.comptableo-gridlove-child .gridlove-header-bottom {
  border-top: 1px solid var(--comptableo-line);
  box-shadow: none;
}

body.comptableo-gridlove-child .gridlove-header-bottom .gridlove-slot-c {
  align-items: center;
  display: flex;
  justify-content: center;
}

body.comptableo-gridlove-child .gridlove-main-nav > li > a,
body.comptableo-gridlove-child
  .gridlove-header-bottom
  .gridlove-actions-button
  > span {
  align-items: center;
  border: 0;
  border-radius: var(--ct-radius-md);
  color: var(--comptableo-muted);
  display: flex;
  font-family: var(--ct-font-family-sans);
  font-size: 0.9rem;
  font-weight: var(--ct-font-weight-medium);
  line-height: 1.2;
  margin: 0.35rem 0.08rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  text-transform: none;
}

body.comptableo-gridlove-child
  .gridlove-header-bottom
  .gridlove-main-nav
  > li
  > a:hover,
body.comptableo-gridlove-child
  .gridlove-header-bottom
  .gridlove-actions-button
  > span:hover,
body.comptableo-gridlove-child .gridlove-header-bottom .current-menu-item > a,
body.comptableo-gridlove-child
  .gridlove-header-bottom
  .current-menu-ancestor
  > a,
body.comptableo-gridlove-child .gridlove-header-bottom .current_page_item > a {
  background: var(--comptableo-surface-soft);
  color: var(--comptableo-ink);
}

body.comptableo-gridlove-child .gridlove-header-bottom .current-menu-item > a,
body.comptableo-gridlove-child
  .gridlove-header-bottom
  .current-menu-ancestor
  > a,
body.comptableo-gridlove-child .gridlove-header-bottom .current_page_item > a {
  box-shadow: inset 0 -2px 0 var(--comptableo-brand);
}

body.comptableo-gridlove-child .gridlove-main-nav .sub-menu {
  background: var(--comptableo-surface);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-lg);
  box-shadow: var(--ct-shadow-md);
  overflow: hidden;
  padding: 0.35rem;
}

body.comptableo-gridlove-child .gridlove-main-nav .sub-menu a {
  border-radius: var(--ct-radius-md);
  color: var(--comptableo-ink);
  font-size: 0.88rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.75rem;
}

body.comptableo-gridlove-child .gridlove-main-nav .sub-menu a:hover,
body.comptableo-gridlove-child
  .gridlove-main-nav
  .sub-menu
  .current-menu-item
  > a {
  background: var(--comptableo-surface-soft);
  color: var(--comptableo-brand-hover);
}

body.comptableo-gridlove-child .gridlove-header-sticky,
body.comptableo-gridlove-child .gridlove-header-responsive {
  border-bottom: 1px solid var(--comptableo-line);
  box-shadow: var(--ct-shadow-xs);
}

body.comptableo-gridlove-child .gridlove-header-sticky .container,
body.comptableo-gridlove-child .gridlove-header-responsive .container {
  align-items: center;
  min-height: 4rem;
}

body.comptableo-gridlove-child
  .gridlove-header-sticky
  .gridlove-main-nav
  > li
  > a {
  color: var(--comptableo-muted);
  min-height: 2.75rem;
}

body.comptableo-gridlove-child .gridlove-header-responsive .gridlove-logo,
body.comptableo-gridlove-child .gridlove-header-responsive .gridlove-logo-mini {
  max-height: 2.1rem;
  max-width: 10.5rem;
  width: auto;
}

body.comptableo-gridlove-child
  .gridlove-header-responsive
  .gridlove-actions-button
  > span,
body.comptableo-gridlove-child .gridlove-mobile-menu .gridlove-sidebar-action {
  align-items: center;
  border-radius: var(--ct-radius-md);
  color: var(--comptableo-ink);
  display: inline-flex;
  justify-content: center;
  min-height: var(--ct-size-target-min);
  min-width: var(--ct-size-target-min);
}

body.comptableo-gridlove-child .gridlove-mobile-menu,
body.comptableo-gridlove-child .gridlove-sidebar-action-inside {
  background: var(--comptableo-surface);
  color: var(--comptableo-ink);
}

body.comptableo-gridlove-child .gridlove-mobile-menu .widget {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.comptableo-gridlove-child .gridlove-mobile-menu .menu-item > a {
  align-items: center;
  border-bottom: 1px solid var(--comptableo-line);
  color: var(--comptableo-ink);
  display: flex;
  font-size: 1rem;
  font-weight: var(--ct-font-weight-medium);
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.8rem 0;
}

/* Editorial cover */

body.comptableo-gridlove-child .gridlove-cover-area {
  animation: none;
  background: var(--comptableo-surface);
  border-bottom: 1px solid var(--comptableo-line);
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
}

body.comptableo-gridlove-child .gridlove-cover-area .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-inline: 0;
}

body.comptableo-gridlove-child .gridlove-cover-area .row > [class*='col-'] {
  flex: 0 0 calc((100% - 2rem) / 3);
  padding: 0;
  width: calc((100% - 2rem) / 3);
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .gridlove-post.comptableo-card--cover {
  background: var(--comptableo-surface);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-lg);
  box-shadow: none;
  height: 19rem;
  max-height: 19rem;
  min-height: 19rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--cover
  .entry-image,
body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--cover
  .entry-image
  a,
body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--cover
  .entry-image
  img {
  display: block;
  height: 100%;
  width: 100%;
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--cover
  .entry-image
  img {
  object-fit: cover;
  transition: transform var(--ct-motion-duration-slow)
    var(--ct-motion-easing-standard);
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--has-image
  .entry-image
  a::after {
  /* ct-exception: a restrained functional image overlay preserves title contrast */
  background: linear-gradient(
    180deg,
    rgb(18 20 24 / 2%) 20%,
    rgb(18 20 24 / 88%) 100%
  );
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--has-image:hover
  img {
  transform: scale(1.02);
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--cover
  .entry-overlay {
  background: transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

body.comptableo-gridlove-child .gridlove-cover-area .entry-title {
  font-family: var(--ct-font-family-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: var(--ct-letter-spacing-tight);
  line-height: 1.22;
  margin: 0;
  text-wrap: balance;
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--has-image
  .entry-title
  a,
body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--has-image
  .entry-meta,
body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--has-image
  .entry-meta
  a,
body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--has-image
  .entry-meta
  span {
  color: var(--ct-color-text-inverse);
}

body.comptableo-gridlove-child .gridlove-cover-area .entry-title a {
  color: inherit;
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--cover
  .entry-meta {
  border: 0;
  bottom: auto;
  margin-top: 0.8rem;
  padding: 0;
  position: static;
}

body.comptableo-gridlove-child .gridlove-cover-area .meta-author {
  display: none;
}

body.comptableo-gridlove-child .gridlove-cover-area .comptableo-card--no-image {
  background: var(--comptableo-surface-soft);
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--no-image
  .entry-overlay {
  height: 100%;
  justify-content: space-between;
  padding: 1.5rem;
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--no-image
  .entry-title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-block: auto;
}

body.comptableo-gridlove-child
  .gridlove-cover-area
  .comptableo-card--no-image
  .entry-title
  a {
  color: var(--comptableo-ink);
}

body.comptableo-gridlove-child .gridlove-cover-area .gridlove-cover-arrow {
  align-items: center;
  background: var(--comptableo-surface);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-pill);
  box-shadow: var(--ct-shadow-sm);
  color: var(--comptableo-ink);
  display: flex;
  height: var(--ct-size-target-min);
  justify-content: center;
  width: var(--ct-size-target-min);
}

/* Sections and cards */

body.comptableo-gridlove-child .gridlove-module {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

body.comptableo-gridlove-child .gridlove-module .module-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--comptableo-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

body.comptableo-gridlove-child .gridlove-module .module-title {
  color: var(--comptableo-ink);
  font-family: var(--ct-font-family-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: var(--ct-letter-spacing-tight);
  line-height: 1.15;
  margin: 0;
}

body.comptableo-gridlove-child .gridlove-post.gridlove-box {
  background: var(--comptableo-surface);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-lg);
  box-shadow: none;
  height: 18rem;
  overflow: hidden;
  transition: transform var(--ct-motion-duration-fast)
    var(--ct-motion-easing-standard);
}

body.comptableo-gridlove-child .gridlove-post.gridlove-box:hover {
  border-color: var(--comptableo-line-strong);
  box-shadow: var(--ct-shadow-sm);
  transform: translateY(-2px);
}

body.comptableo-gridlove-child .gridlove-post .entry-image {
  background: var(--comptableo-surface-soft);
  overflow: hidden;
}

body.comptableo-gridlove-child .gridlove-post .entry-image img {
  transition: transform var(--ct-motion-duration-slow)
    var(--ct-motion-easing-standard);
}

body.comptableo-gridlove-child .gridlove-post:hover .entry-image img {
  transform: scale(1.02);
}

body.comptableo-gridlove-child .gridlove-post .box-inner-p,
body.comptableo-gridlove-child .gridlove-post .box-inner-ptbr {
  padding: clamp(1rem, 2vw, 1.35rem);
}

body.comptableo-gridlove-child .gridlove-post .entry-title {
  color: var(--comptableo-ink);
  font-family: var(--ct-font-family-heading);
  font-size: clamp(1.08rem, 1.65vw, 1.32rem);
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0;
  text-wrap: balance;
}

body.comptableo-gridlove-child .gridlove-post .entry-title a {
  color: inherit;
  text-decoration: none;
}

body.comptableo-gridlove-child .gridlove-post .entry-title a:hover {
  color: var(--comptableo-brand-hover);
}

body.comptableo-gridlove-child .gridlove-post .entry-content,
body.comptableo-gridlove-child .gridlove-post .entry-content p {
  color: var(--comptableo-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

body.comptableo-gridlove-child .gridlove-post .entry-category {
  margin-bottom: 0.65rem;
}

body.comptableo-gridlove-child .gridlove-post .entry-category a,
body.comptableo-gridlove-child
  .gridlove-single-layout-3
  .entry-header
  .entry-category
  a {
  align-items: center;
  background: var(--comptableo-tint);
  border: 0;
  border-radius: var(--ct-radius-pill);
  color: var(--comptableo-brand-hover);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: var(--ct-font-weight-semibold);
  justify-content: center;
  letter-spacing: 0.045em;
  line-height: 1.2;
  min-height: 1.75rem;
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
}

body.comptableo-gridlove-child .gridlove-post .entry-category a:hover,
body.comptableo-gridlove-child
  .gridlove-single-layout-3
  .entry-header
  .entry-category
  a:hover {
  background: var(--comptableo-brand);
  color: var(--ct-color-accent-contrast);
}

body.comptableo-gridlove-child .gridlove-post .entry-meta,
body.comptableo-gridlove-child .gridlove-post .entry-meta a,
body.comptableo-gridlove-child .gridlove-post .entry-meta span {
  color: var(--comptableo-quiet);
  font-size: 0.76rem;
  line-height: 1.45;
}

body.comptableo-gridlove-child .gridlove-post .entry-meta {
  align-items: center;
  border-top: 1px solid var(--comptableo-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
}

body.comptableo-gridlove-child .comptableo-editorial-dates,
body.comptableo-gridlove-child .comptableo-article-date {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

body.comptableo-gridlove-child .comptableo-editorial-dates time {
  font-variant-numeric: tabular-nums;
}

body.comptableo-gridlove-child .comptableo-date-updated {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: var(--ct-font-weight-medium);
  min-height: auto;
  padding: 0;
}

body.comptableo-gridlove-child .gridlove-post-a.comptableo-card--listing {
  display: grid;
  grid-template-columns: minmax(12rem, 0.82fr) minmax(0, 1.18fr);
  height: 18.5rem;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .entry-image,
body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .entry-image
  > a,
body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .entry-image
  img {
  display: block;
  height: 100%;
  width: 100%;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .entry-image
  img {
  object-fit: cover;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .box-inner-p,
body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .box-inner-ellipsis {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  min-width: 0;
  overflow: visible;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .box-inner-p {
  justify-content: center;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .entry-content {
  display: -webkit-box;
  margin-top: 0.7rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing
  .entry-meta {
  bottom: auto;
  position: static;
}

body.comptableo-gridlove-child
  .gridlove-post-a.comptableo-card--listing.comptableo-card--no-image {
  display: flex;
  height: auto;
  min-height: 13rem;
}

body.comptableo-gridlove-child .gridlove-post.comptableo-card--textual {
  background: var(--comptableo-surface-soft);
}

body.comptableo-gridlove-child
  .gridlove-post.comptableo-card--textual
  .comptableo-card__kicker {
  color: var(--comptableo-brand-hover);
  font-size: 0.7rem;
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* Empty states, inputs and pagination */

body.comptableo-gridlove-child .gridlove-not-found .gridlove-box,
body.comptableo-gridlove-child .gridlove-module-empty,
body.comptableo-gridlove-child .comptableo-empty-state {
  background: var(--comptableo-surface-soft);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-lg);
  box-shadow: none;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

body.comptableo-gridlove-child :where(input, select, textarea) {
  background: var(--comptableo-surface);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-md);
  color: var(--comptableo-ink);
  min-height: var(--ct-size-control-sm);
}

body.comptableo-gridlove-child
  :where(.gridlove-button, button, input[type='submit']) {
  border-radius: var(--ct-radius-md);
  min-height: var(--ct-size-target-min);
}

body.comptableo-gridlove-child .gridlove-pagination a,
body.comptableo-gridlove-child .gridlove-pagination span {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--ct-radius-md);
  display: inline-flex;
  justify-content: center;
  min-height: var(--ct-size-target-min);
  min-width: var(--ct-size-target-min);
}

body.comptableo-gridlove-child .gridlove-pagination .current {
  background: var(--comptableo-surface);
  border-color: var(--comptableo-line-strong);
  color: var(--comptableo-ink);
}

/* Article */

body.comptableo-gridlove-child.single-post {
  background: var(--comptableo-surface);
}

body.comptableo-gridlove-child.single-post
  .gridlove-site-content.gridlove-sidebar-none {
  max-width: 70rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-content.gridlove-single-layout-3 {
  float: none;
  margin-inline: auto;
  max-width: 64rem;
  width: 100%;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  > article.gridlove-box {
  background: var(--comptableo-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .box-inner-p-smaller,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .box-inner-p-bigger {
  padding-inline: clamp(0.25rem, 5vw, 5rem);
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .box-inner-p-smaller {
  padding-block: clamp(1.75rem, 4vw, 3rem) 1.5rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-header {
  padding-block: 0;
  text-align: left;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-header
  .gridlove-breadcrumbs {
  color: var(--comptableo-quiet);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-header
  .entry-title {
  color: var(--comptableo-ink);
  font-family: var(--ct-font-family-heading);
  font-size: clamp(2.1rem, 5vw, 3.65rem);
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0.9rem 0 1.25rem;
  max-width: 18ch;
  text-wrap: balance;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-header
  .entry-meta {
  align-items: center;
  color: var(--comptableo-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.45rem 1rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-header
  .entry-meta
  a,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-header
  .entry-meta
  span {
  color: inherit;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-image {
  background: var(--comptableo-surface-soft);
  border-radius: var(--ct-radius-lg);
  overflow: hidden;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content {
  color: var(--comptableo-ink);
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.78;
  margin-inline: auto;
  max-width: 46rem;
  overflow-wrap: anywhere;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  h2,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  h3,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  h4 {
  color: var(--comptableo-ink);
  font-family: var(--ct-font-family-heading);
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: var(--ct-letter-spacing-tight);
  line-height: 1.2;
  scroll-margin-top: 6rem;
  text-wrap: balance;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 2.8rem 0 1rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  margin: 2.1rem 0 0.8rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  h4 {
  font-size: 1.12rem;
  margin: 1.75rem 0 0.65rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  p,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  ul,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  ol {
  margin-bottom: 1.35rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  a {
  color: var(--comptableo-brand-hover);
  font-weight: var(--ct-font-weight-medium);
  text-decoration: underline;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  blockquote,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  .wp-block-quote {
  background: var(--comptableo-surface-soft);
  border: 0;
  border-left: 3px solid var(--comptableo-brand);
  border-radius: 0 var(--ct-radius-md) var(--ct-radius-md) 0;
  color: var(--comptableo-ink);
  font-size: 1.05em;
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  .wp-block-table {
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-md);
  display: block;
  margin: 2rem 0;
  max-width: 100%;
  overflow-x: auto;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  table {
  border: 0;
  margin: 0;
  min-width: 34rem;
  width: 100%;
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  th {
  background: var(--comptableo-surface-soft);
  color: var(--comptableo-ink);
  font-size: 0.85rem;
  font-weight: var(--ct-font-weight-semibold);
}

body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  th,
body.comptableo-gridlove-child.single-post
  .gridlove-single-layout-3
  .entry-content
  td {
  border-color: var(--comptableo-line);
  overflow-wrap: anywhere;
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

body.comptableo-gridlove-child .gridlove-prev-next-nav {
  border-top: 1px solid var(--comptableo-line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  padding-top: 1.5rem;
}

body.comptableo-gridlove-child .gridlove-prev-next-nav a {
  background: var(--comptableo-surface-soft);
  border: 1px solid var(--comptableo-line);
  border-radius: var(--ct-radius-md);
  color: var(--comptableo-ink);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
}

/* Footer */

body.comptableo-gridlove-child .gridlove-footer {
  background: var(--comptableo-surface-soft);
  border-top: 1px solid var(--comptableo-line);
  color: var(--comptableo-muted);
  margin-top: auto;
}

body.comptableo-gridlove-child .gridlove-footer .widget-title {
  color: var(--comptableo-ink);
  font-size: 0.85rem;
  font-weight: var(--ct-font-weight-semibold);
  letter-spacing: 0;
  text-transform: none;
}

body.comptableo-gridlove-child .gridlove-footer a {
  color: var(--comptableo-muted);
}

body.comptableo-gridlove-child .gridlove-footer a:hover {
  color: var(--comptableo-ink);
}

body.comptableo-gridlove-child .gridlove-copyright {
  background: transparent;
  border-top: 1px solid var(--comptableo-line);
  color: var(--comptableo-quiet);
  font-size: 0.78rem;
}

body.comptableo-gridlove-child .back-to-top {
  background: var(--comptableo-surface);
  border: 1px solid var(--comptableo-line);
  box-shadow: var(--ct-shadow-sm);
  color: var(--comptableo-ink);
}

@media (max-width: 1023px) {
  body.comptableo-gridlove-child .gridlove-cover-area .row {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
  }

  body.comptableo-gridlove-child .gridlove-cover-area .row > [class*='col-'] {
    flex-basis: min(76vw, 24rem);
    scroll-snap-align: start;
    width: min(76vw, 24rem);
  }
}

@media (max-width: 767px) {
  body.comptableo-gridlove-child .gridlove-header-4 .gridlove-header-middle,
  body.comptableo-gridlove-child .gridlove-header-bottom {
    display: none;
  }

  body.comptableo-gridlove-child .gridlove-cover-area {
    padding-block: 0.85rem 1rem;
  }

  body.comptableo-gridlove-child
    .gridlove-cover-area
    .gridlove-post.comptableo-card--cover {
    height: 16rem;
    max-height: 16rem;
    min-height: 16rem;
  }

  body.comptableo-gridlove-child .gridlove-cover-area .row > [class*='col-'] {
    flex-basis: min(88vw, 21rem);
    width: min(88vw, 21rem);
  }

  body.comptableo-gridlove-child
    .gridlove-cover-area
    .comptableo-card--no-image
    .entry-title {
    font-size: 1.45rem;
  }

  body.comptableo-gridlove-child .gridlove-post-a.comptableo-card--listing {
    display: flex;
    height: auto;
    min-height: 0;
  }

  body.comptableo-gridlove-child
    .gridlove-post-a.comptableo-card--listing
    .entry-image {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  body.comptableo-gridlove-child.single-post
    .gridlove-single-layout-3
    .entry-header
    .entry-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  body.comptableo-gridlove-child .gridlove-prev-next-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.comptableo-gridlove-child *,
  body.comptableo-gridlove-child *::before,
  body.comptableo-gridlove-child *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

@media (forced-colors: active) {
  body.comptableo-gridlove-child
    :where(a, button, input, select, textarea):focus-visible {
    outline-color: Highlight;
  }
}
