/**
 * Around — Blog
 *
 * Styles for the single post and the post archive/listing.
 *
 * Written direction-agnostic: CSS logical properties keep the layout correct in
 * both LTR (English) and RTL (fa_IR), so a single file serves both and no
 * `-rtl` companion sheet is needed. Colours follow the theme palette
 * (primary #394454, accent #ffcc44, ink #4a4b65, hairline #e9e9f2).
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

.around-blog {
  --ab-ink: #2b2c42;
  --ab-heading: #4a4b65;
  --ab-body: #5c5d78;
  --ab-muted: #737491;
  --ab-faint: #9e9fb4;
  --ab-line: #e9e9f2;
  --ab-line-soft: #f1f1f7;
  --ab-surface: #fff;
  --ab-surface-alt: #faf9f6;
  --ab-brand: #394454;
  --ab-accent: #ffcc44;
  --ab-accent-soft: rgba(255, 204, 68, 0.16);
  --ab-radius: 1rem;
  --ab-radius-sm: 0.625rem;
  --ab-radius-pill: 50rem;
  --ab-measure: 44rem;
  --ab-measure-wide: 52rem;
  --ab-shadow: 0 0.125rem 0.5rem -0.125rem rgba(43, 44, 66, 0.06);
  --ab-shadow-lg: 0 1.25rem 2.5rem -1rem rgba(43, 44, 66, 0.18);
  --ab-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reading progress bar
   ========================================================================== */

.around-reading-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1085;
  height: 0.1875rem;
  background-color: rgba(57, 68, 84, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.around-reading-progress.is-visible {
  opacity: 1;
}

.around-reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(to right, #394454, #ffcc44);
  border-start-end-radius: 0.1875rem;
  border-end-end-radius: 0.1875rem;
  transition: width 0.12s linear;
}

[dir="rtl"] .around-reading-progress__bar {
  background-image: linear-gradient(to left, #394454, #ffcc44);
}

@media (prefers-reduced-motion: reduce) {
  .around-reading-progress,
  .around-reading-progress__bar {
    transition: none;
  }
}

/* ==========================================================================
   Shared blog atoms
   ========================================================================== */

.around-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius-pill);
  background-color: var(--ab-surface-alt);
  color: var(--ab-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s var(--ab-ease), border-color 0.2s var(--ab-ease), color 0.2s var(--ab-ease);
}

.around-chip:hover,
.around-chip:focus {
  background-color: var(--ab-accent);
  border-color: var(--ab-accent);
  color: var(--ab-ink);
  text-decoration: none;
}

.around-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: 1.125rem;
  padding: 0;
  list-style: none;
}

.around-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ab-faint);
}

.around-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ab-ease);
}

.around-meta a:hover {
  color: var(--ab-brand);
  text-decoration: none;
}

.around-meta__dot {
  flex: none;
  width: 0.1875rem;
  height: 0.1875rem;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.55;
}

.around-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  white-space: nowrap;
}

.around-meta__item i {
  font-size: 0.875rem;
  opacity: 0.75;
}

/* Byline -------------------------------------------------------------- */

.around-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.around-byline__avatar {
  flex: none;
  display: block;
  line-height: 0;
}

.around-byline__avatar img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.around-byline__body {
  min-width: 0;
}

.around-byline__name {
  display: block;
  margin-block-end: 0.1875rem;
  color: var(--ab-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.around-byline__name:hover {
  color: var(--ab-brand);
  text-decoration: none;
}

/* ==========================================================================
   Single post
   ========================================================================== */

.around-single {
  color: var(--ab-body);
}

.around-single__container {
  padding-block: clamp(1.5rem, 4vw, 3.25rem);
}

.around-single__main {
  min-width: 0;
}

/* Hero ----------------------------------------------------------------- */

.around-single__hero {
  max-width: var(--ab-measure-wide);
  margin-inline: auto;
  margin-block-end: clamp(1.75rem, 4vw, 2.5rem);
}

.around-single__hero .breadcrumb {
  margin-block-end: 1.25rem;
  padding: 0;
  background-color: transparent;
  font-size: 0.8125rem;
}

.around-single__hero .breadcrumb-item,
.around-single__hero .breadcrumb-item a {
  color: var(--ab-faint);
}

.around-single__hero .breadcrumb-item a:hover {
  color: var(--ab-brand);
}

.around-single__title {
  margin-block-end: 1rem;
  color: var(--ab-ink);
  font-size: clamp(1.875rem, 1.15rem + 2.6vw, 3.125rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.around-single__lead {
  max-width: var(--ab-measure);
  margin-block-end: 0;
  color: var(--ab-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.75;
}

.around-single__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-block-start: clamp(1.5rem, 3vw, 2rem);
  padding-block: 1.125rem;
  border-block: 1px solid var(--ab-line);
}

/* Wrapper around around_share_display(), which brings its own button styles. */
.around-single__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.around-single__share h6 {
  margin-block: 0;
  margin-inline: 0 0.75rem;
  color: var(--ab-faint);
  font-size: 0.8125rem;
  font-weight: 600;
}

.around-single__share ul {
  padding-inline-start: 0;
}

/* Hero without a featured image: a typographic panel instead of a gap. */
.around-single--no-media .around-single__hero {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3.5vw, 2.75rem);
  border: 1px solid var(--ab-line);
  border-radius: calc(var(--ab-radius) * 1.25);
  background-image: linear-gradient(135deg, #faf9f6 0%, #fff 58%, rgba(255, 204, 68, 0.16) 100%);
  overflow: hidden;
}

[dir="rtl"] .around-single--no-media .around-single__hero {
  background-image: linear-gradient(225deg, #faf9f6 0%, #fff 58%, rgba(255, 204, 68, 0.16) 100%);
}

.around-single--no-media .around-single__hero::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0.25rem;
  height: 100%;
  background-image: linear-gradient(to bottom, #394454, #ffcc44);
}

.around-single--no-media .around-single__byline {
  border-block-end: 0;
  padding-block-end: 0;
}

/* Featured media -------------------------------------------------------- */

.around-single__media {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
}

.around-single__media img {
  display: block;
  width: 100%;
  height: auto;
  /* Keeps a very tall featured image from pushing the article off screen. */
  max-height: 34rem;
  object-fit: cover;
  border-radius: var(--ab-radius);
  box-shadow: var(--ab-shadow);
}

.around-single__media figcaption {
  margin-block-start: 0.75rem;
  color: var(--ab-faint);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

/* Article body ---------------------------------------------------------- */

.around-single__content {
  max-width: var(--ab-measure);
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ab-body);
}

.around-single__content .post__content > *:first-child {
  margin-block-start: 0;
}

.around-single__content p {
  margin-block-end: 1.5rem;
}

.around-single__content h2,
.around-single__content h3,
.around-single__content h4,
.around-single__content h5,
.around-single__content h6 {
  margin-block-start: 2.5rem;
  margin-block-end: 1rem;
  color: var(--ab-ink);
  line-height: 1.3;
  scroll-margin-block-start: 6rem;
}

.around-single__content h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
}

.around-single__content h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

.around-single__content h4 {
  font-size: 1.1875rem;
}

.around-single__content ul,
.around-single__content ol {
  margin-block-end: 1.5rem;
  padding-inline-start: 1.35rem;
}

.around-single__content li {
  margin-block-end: 0.5rem;
}

.around-single__content a:not(.btn):not(.around-chip) {
  color: var(--ab-brand);
  text-decoration: underline;
  text-decoration-color: var(--ab-accent);
  text-decoration-thickness: 0.125em;
  text-underline-offset: 0.18em;
}

.around-single__content a:not(.btn):not(.around-chip):hover {
  color: var(--ab-ink);
  text-decoration-color: currentColor;
}

.around-single__content img,
.around-single__content iframe,
.around-single__content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--ab-radius-sm);
}

.around-single__content figure {
  margin-block: 2rem;
}

.around-single__content figcaption,
.around-single__content .wp-caption-text {
  margin-block-start: 0.625rem;
  color: var(--ab-faint);
  font-size: 0.8125rem;
  text-align: center;
}

.around-single__content blockquote {
  margin-block: 2rem;
  padding-block: 0.25rem;
  padding-inline: 1.5rem 0;
  border-inline-start: 0.1875rem solid var(--ab-accent);
  color: var(--ab-ink);
  font-size: 1.1875rem;
  line-height: 1.65;
}

.around-single__content pre {
  margin-block: 1.75rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--ab-radius-sm);
  background-color: #f6f6fa;
  overflow-x: auto;
  font-size: 0.875rem;
  direction: ltr;
  text-align: left;
}

.around-single__content :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  background-color: var(--ab-surface-alt);
  color: var(--ab-brand);
  font-size: 0.9em;
}

.around-single__content table {
  display: block;
  width: 100%;
  margin-block-end: 1.75rem;
  overflow-x: auto;
  border-collapse: collapse;
}

.around-single__content th,
.around-single__content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ab-line);
  text-align: start;
}

.around-single__content hr {
  margin-block: 2.5rem;
  border: 0;
  border-block-start: 1px solid var(--ab-line);
}

/* Footer: tags + share --------------------------------------------------- */

.around-single__aside {
  max-width: var(--ab-measure);
  margin-inline: auto;
}

.around-single__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-block: clamp(2rem, 4vw, 3rem);
  padding-block: 1.25rem;
  border-block: 1px solid var(--ab-line);
}

.around-single__tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.around-single__tags-label {
  margin-inline-end: 0.25rem;
  color: var(--ab-faint);
  font-size: 0.8125rem;
  font-weight: 600;
}

.around-single__tags-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius-pill);
  background-color: var(--ab-surface-alt);
  color: var(--ab-brand);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ab-ease), border-color 0.2s var(--ab-ease);
}

.around-single__tags-list a:hover {
  background-color: var(--ab-accent);
  border-color: var(--ab-accent);
  color: var(--ab-ink);
  text-decoration: none;
}

/* Prev / next ------------------------------------------------------------ */

.around-single__nav {
  display: grid;
  gap: 1rem;
  max-width: var(--ab-measure);
  margin-inline: auto;
  margin-block: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 576px) {
  .around-single__nav--both {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.around-single__nav-link {
  display: block;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background-color: var(--ab-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ab-ease), box-shadow 0.2s var(--ab-ease), transform 0.2s var(--ab-ease);
}

.around-single__nav-link:hover {
  border-color: transparent;
  box-shadow: var(--ab-shadow-lg);
  color: inherit;
  text-decoration: none;
  transform: translateY(-0.125rem);
}

.around-single__nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-block-end: 0.625rem;
  color: var(--ab-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.around-single__nav-link--next {
  text-align: end;
}

.around-single__nav-link--next .around-single__nav-label {
  flex-direction: row-reverse;
}

/* The feather arrows are direction-aware, so they mirror under RTL. */
[dir="rtl"] .around-single__nav-label i {
  transform: scaleX(-1);
}

.around-single__nav-body {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.around-single__nav-text {
  min-width: 0;
}

.around-single__nav-link--next .around-single__nav-body {
  flex-direction: row-reverse;
}

.around-single__nav-thumb {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: var(--ab-radius-sm);
  overflow: hidden;
}

.around-single__nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.around-single__nav-title {
  display: block;
  margin: 0;
  color: var(--ab-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.around-single__nav-author {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--ab-faint);
  font-size: 0.75rem;
}

@media (max-width: 575.98px) {
  .around-single__nav-thumb {
    display: none;
  }
}

/* ==========================================================================
   Archive / blog listing
   ========================================================================== */

.around-archive__hero {
  /*
   * `.cs-sidebar-enabled::before` paints the sidebar's tinted band as an
   * absolutely positioned pseudo-element, which would otherwise cover the hero
   * (only `.cs-content` is lifted above it by the theme).
   */
  position: relative;
  z-index: 2;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-block-end: 1px solid var(--ab-line);
  background-color: var(--ab-surface-alt);
}

.around-archive__hero .breadcrumb {
  margin-block-end: 1rem;
  padding: 0;
  background-color: transparent;
  font-size: 0.8125rem;
}

.around-archive__hero .breadcrumb-item,
.around-archive__hero .breadcrumb-item a {
  color: var(--ab-faint);
}

.around-archive__hero .breadcrumb-item a:hover {
  color: var(--ab-brand);
}

.around-archive__header {
  max-width: var(--ab-measure-wide);
}

.around-archive__eyebrow {
  display: block;
  margin-block-end: 0.625rem;
  color: var(--ab-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.around-archive__title {
  margin-block-end: 0.75rem;
  color: var(--ab-ink);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.around-archive__description {
  max-width: var(--ab-measure);
  margin-block-end: 0;
  color: var(--ab-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.around-archive__description p:last-child {
  margin-block-end: 0;
}

.around-archive__container {
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.around-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.875rem);
}

.around-archive__footer {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--ab-line);
}

.around-archive__footer .results-count {
  margin-block-end: 0.75rem;
  color: var(--ab-faint);
  font-size: 0.875rem;
  text-align: start;
}

.around-archive__footer .pagination {
  margin-block-end: 0;
}

/* Card ------------------------------------------------------------------- */

/*
 * No explicit height: an explicit cross-size on a grid item opts it out of
 * `align-items: stretch`, which is what keeps every card in a row the same
 * height. The card stays a flex column so `.around-card__meta` can pin itself
 * to the bottom with `margin-block-start: auto`.
 */
.around-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
  background-color: var(--ab-surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ab-ease), box-shadow 0.25s var(--ab-ease), transform 0.25s var(--ab-ease);
}

.around-card:hover {
  border-color: transparent;
  box-shadow: var(--ab-shadow-lg);
  transform: translateY(-0.25rem);
}

.around-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background-color: var(--ab-surface-alt);
  overflow: hidden;
}

.around-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ab-ease);
}

.around-card:hover .around-card__media img {
  transform: scale(1.04);
}

.around-card__badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.625rem;
  border-radius: var(--ab-radius-pill);
  background-color: var(--ab-accent);
  color: var(--ab-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* No image to overlay: the badge becomes a pill at the top of the card. */
.around-card__badge--inline {
  position: static;
  align-self: flex-start;
  margin: clamp(1.125rem, 2.5vw, 1.5rem) clamp(1.125rem, 2.5vw, 1.5rem) 0;
}

.around-card__badge--inline + .around-card__body {
  padding-block-start: 0.875rem;
}

.around-card__badge--inline + .around-card__body::before {
  display: none;
}

.around-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
}

.around-card .around-chips {
  margin-block-end: 0.75rem;
  position: relative;
  z-index: 2;
}

/* Capped at three lines so an unusually long title cannot skew its row. */
.around-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-block-end: 0.75rem;
  color: var(--ab-ink);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

@supports not (-webkit-line-clamp: 3) {
  .around-card__title {
    display: block;
    max-height: calc(3 * 1.35em);
  }
}

.around-card__title a {
  color: inherit;
  text-decoration: none;
}

.around-card__title a:hover {
  color: var(--ab-brand);
  text-decoration: none;
}

/* Whole card is clickable, while chips and meta links stay reachable. */
.around-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/*
 * The excerpt is clamped to a fixed number of lines so one long summary cannot
 * stretch its whole grid row. `--ab-card-excerpt-lines` can be overridden per
 * card variant (see the feature card below).
 */
.around-card__excerpt {
  --ab-card-excerpt-lines: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--ab-card-excerpt-lines);
  line-clamp: var(--ab-card-excerpt-lines);
  overflow: hidden;
  margin-block-end: 1.25rem;
  color: var(--ab-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Height cap for the rare engine without line clamping. */
@supports not (-webkit-line-clamp: 3) {
  .around-card__excerpt {
    display: block;
    max-height: calc(var(--ab-card-excerpt-lines) * 1.7em);
  }
}

.around-card__meta {
  margin-block-start: auto;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--ab-line-soft);
}

.around-card__meta .around-byline__avatar img {
  width: 1.75rem;
  height: 1.75rem;
}

.around-card__meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  position: relative;
  z-index: 2;
}

.around-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ab-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.around-card__author:hover {
  color: var(--ab-brand);
  text-decoration: none;
}

/* Text-only card: no empty image slot, a typographic panel instead. */
.around-card--text {
  background-image: linear-gradient(150deg, #faf9f6 0%, #fff 55%, rgba(255, 204, 68, 0.16) 100%);
}

[dir="rtl"] .around-card--text {
  background-image: linear-gradient(210deg, #faf9f6 0%, #fff 55%, rgba(255, 204, 68, 0.16) 100%);
}

.around-card--text .around-card__body {
  padding-block-start: clamp(1.5rem, 3vw, 2rem);
}

.around-card--text .around-card__body::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.1875rem;
  margin-block-end: 1.125rem;
  border-radius: var(--ab-radius-pill);
  background-image: linear-gradient(to right, #394454, #ffcc44);
}

[dir="rtl"] .around-card--text .around-card__body::before {
  background-image: linear-gradient(to left, #394454, #ffcc44);
}

.around-card--text .around-card__title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

/* Feature card (first post of the first page) ---------------------------- */

@media (min-width: 768px) {
  .around-card--feature {
    grid-column: 1 / -1;
  }

  .around-card--feature.around-card--media {
    flex-direction: row;
    align-items: stretch;
  }

  .around-card--feature .around-card__media {
    flex: 0 0 46%;
    max-width: 46%;
    /* The image column tracks the text column's height instead of its own
       intrinsic ratio, so a portrait photo cannot stretch the card. */
    aspect-ratio: auto;
  }

  .around-card--feature .around-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .around-card--feature {
    min-height: 17rem;
  }

  .around-card--feature .around-card__body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }

  .around-card--feature .around-card__title {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  }

  .around-card--feature .around-card__excerpt {
    --ab-card-excerpt-lines: 4;
    max-width: 42rem;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Sidebar-aware spacing (the Bootstrap grid is already direction-aware)
   ========================================================================== */

.around-blog .cs-sidebar {
  padding-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

/* ==========================================================================
   RTL / Persian typography refinements
   ========================================================================== */

[dir="rtl"] .around-single__title,
[dir="rtl"] .around-archive__title,
[dir="rtl"] .around-card__title {
  letter-spacing: normal;
  line-height: 1.4;
}

[dir="rtl"] .around-single__content {
  line-height: 2.05;
}

[dir="rtl"] .around-single__lead,
[dir="rtl"] .around-archive__description {
  line-height: 1.95;
}

[dir="rtl"] .around-archive__eyebrow,
[dir="rtl"] .around-single__nav-label,
[dir="rtl"] .around-card__badge {
  letter-spacing: normal;
}

/* ==========================================================================
   Comments and the related-posts carousel share the reading measure
   ========================================================================== */

.around-single__main .comments-area,
.around-single__main .comment-respond {
  max-width: var(--ab-measure);
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .around-card,
  .around-card__media img,
  .around-single__nav-link {
    transition: none;
  }

  .around-card:hover,
  .around-single__nav-link:hover {
    transform: none;
  }

  .around-card:hover .around-card__media img {
    transform: none;
  }
}
