/*
 * The blog's pages (Modules\Blog\Archive), the owner's design: the hero (the owner's
 * picture behind; the way back, the two-line title, a line and the search on a light
 * panel), the categories as chips, the posts as cards, the page numbers; beside them the
 * popular categories, the newsletter (the owner's picture as its ground) and the popular
 * posts (Sidebar). A post's page (Modules\Blog\Post) uses these too, with post.css.
 *
 * Concentric corners (DESIGN.md §4.5): a box publishes its radius and the inset of what
 * sits in its corner (--hs-parent-r, --hs-parent-p); that uses R − p. The hero panel
 * (R 28) holds the search 12 px in (R 16), the search its button 6 px in (R 10); a card
 * (R 28) its picture 12 px in (R 16); the categories' box (R 28) its rows 12 px in (R 16).
 *
 * Contrast: the categories' colours carry white words at ≥ 4.5:1 (Categories::COLORS);
 * the current chip and page number on --hs-orange-700 (5.18:1); the title's orange line
 * #e06c00 is large text (≥ 3:1 on the hero's white panel); "Read the post" #0070e0 4.78:1.
 */

.hs-blog {
  --hs-blog-r: calc(var(--hs-radius-xl, 28px) * var(--hs-corner-scale, 1));
  --hs-blog-inner-r: max(calc((var(--hs-radius-xl, 28px) - 12px) * var(--hs-corner-scale, 1)), var(--hs-r-min, 4px));

  background: #f8f9fc;
}

.hs-blog,
.hs-blog *,
.hs-blog *::before,
.hs-blog *::after {
  box-sizing: border-box;
}

.hs-blog :where(p, h1, h2, ol, ul) {
  margin: 0;
}

.hs-blog :where(ol, ul) {
  padding: 0;
  list-style: none;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

/*
 * The picture is 3:1, its drawing on the right (47–98 % of its width). From 1280 px it
 * is the hero's ground (cover, kept to the right) and the panel sits on its clouds; from
 * 900 px a panel on the right half cut around the drawing; narrower, left out (the posts
 * come first on a phone).
 */
.hs-blog-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(30rem 20rem at 88% 20%, #fde7f0, transparent 70%),
    radial-gradient(26rem 18rem at 4% 30%, #e7f0ff, transparent 70%), linear-gradient(180deg, #fff8f3, #fdf4f8);
}

.hs-blog-hero__art {
  display: none;
}

.hs-blog-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) and (max-width: 1279px) {
  .hs-blog-hero__art {
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    width: 52%;
    transform: translateY(-50%);
  }

  .hs-blog-hero__image {
    height: auto;
    aspect-ratio: 1.5;
    object-position: 96% 50%;
    mask-image: linear-gradient(90deg, transparent 0, #000 18%);
  }
}

@media (min-width: 1280px) {
  .hs-blog-hero__art {
    position: absolute;
    inset: 0;
    display: block;
  }

  .hs-blog-hero__image {
    object-position: 78% 50%;
  }
}

.hs-blog-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 20px 24px;
}

@media (min-width: 900px) {
  .hs-blog-hero__inner {
    display: flex;
    align-items: center;
    min-height: 360px;
    padding-block: 32px 40px;
  }
}

/* The panel: R 28; the search 12 px in from its sides and bottom. */
.hs-blog-hero__intro {
  --hs-parent-r: var(--hs-radius-xl, 28px);
  --hs-parent-p: 12px;

  width: 100%;
  max-width: 540px;
  padding: 22px 22px 12px;
  border-radius: var(--hs-blog-r);
  corner-shape: var(--hs-corner-shape, round);
  background: rgb(255 255 255 / 78%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 60%) inset,
    0 24px 60px -36px rgb(31 37 71 / 35%);
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .hs-blog-hero__intro {
    padding: 28px 28px 12px;
  }
}

.hs-blog .hs-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  color: var(--hs-muted, #5b6180);
  font-size: 13.5px;
  font-weight: 600;
}

.hs-blog .hs-crumbs__list > li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hs-blog .hs-crumbs__list > li + li::before {
  flex: none;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  content: '';
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.hs-blog .hs-crumbs a {
  color: var(--hs-muted, #5b6180);
  text-decoration: none;
}

.hs-blog .hs-crumbs a:hover {
  color: var(--hs-blue-600, #0070e0);
  text-decoration: underline;
}

.hs-blog .hs-crumbs [aria-current] {
  color: var(--hs-ink, #1f2547);
  font-weight: 700;
}

.hs-blog-hero__title {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  color: var(--hs-ink, #1f2547);
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hs-blog-hero__accent {
  color: var(--hs-orange-600, #e06c00);
}

.hs-blog-hero__lead {
  margin-top: 12px;
  color: var(--hs-muted, #5b6180);
  font-size: 16px;
  line-height: 1.55;
}

/* The search: 12 px from the panel's sides and bottom (R − 12); its button 6 px in. */
.hs-blog-search {
  --hs-parent-r: calc(var(--hs-radius-xl, 28px) - 12px);
  --hs-parent-p: 6px;

  position: relative;
  display: flex;
  align-items: center;
  margin: 20px -10px 0;
}

@media (min-width: 768px) {
  .hs-blog-search {
    margin-inline: -16px;
  }
}

.hs-blog .hs-blog-search__input {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 0 64px 0 18px;
  border: 1px solid var(--hs-line, #e6e9f0);
  border-radius: var(--hs-blog-inner-r);
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-surface, #fff);
  box-shadow: 0 10px 26px -20px rgb(31 37 71 / 40%);
  color: var(--hs-ink, #1f2547);
  font: inherit;
  font-size: 16px; /* No zoom on focus in iOS. */
}

.hs-blog .hs-blog-search__input::placeholder {
  color: var(--hs-placeholder, #646a87);
  opacity: 1;
}

.hs-blog .hs-blog-search__input:focus {
  border-color: var(--hs-blue-600, #0070e0);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--hs-blue-600, #0070e0);
}

.hs-blog .hs-blog-search__submit,
.hs-blog .hs-blog-search__submit:is(:hover, :focus, :active) {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: max(calc((var(--hs-parent-r) - var(--hs-parent-p)) * var(--hs-corner-scale, 1)), var(--hs-r-min, 4px));
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-orange-600, #e06c00);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
}

.hs-blog .hs-blog-search__submit:hover {
  background: var(--hs-orange-700, #c2410c);
}

.hs-blog .hs-blog-search__submit:focus-visible {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

/* ─── Chips ────────────────────────────────────────────────────────────── */

.hs-blog__body {
  padding-block: 24px 64px;
}

.hs-blog-chips {
  margin: 0 calc(-1 * var(--hs-gutter, 24px)) 24px;
  padding: 4px var(--hs-gutter, 24px) 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hs-blog-chips::-webkit-scrollbar {
  display: none;
}

.hs-blog-chips__list {
  display: flex;
  gap: 12px;
  width: max-content;
}

@media (min-width: 1024px) {
  .hs-blog-chips {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .hs-blog-chips__list {
    flex-wrap: wrap;
    width: auto;
  }
}

.hs-blog-chip {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 0 20px 0 16px;
  border-radius: var(--hs-r-pill, 999px);
  background: var(--hs-surface, #fff);
  box-shadow:
    0 0 0 1px rgb(31 37 71 / 6%),
    0 8px 20px -14px rgb(31 37 71 / 35%);
  color: var(--hs-ink, #1f2547);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.hs-blog-chip .hs-icon {
  flex: none;
  color: var(--hs-cat, var(--hs-orange-700, #c2410c));
}

.hs-blog-chip:hover {
  color: var(--hs-cat, var(--hs-orange-700, #c2410c));
  box-shadow:
    0 0 0 1px var(--hs-cat, var(--hs-orange-700, #c2410c)),
    0 10px 24px -14px rgb(31 37 71 / 35%);
}

.hs-blog-chip.is-current,
.hs-blog-chip.is-current:hover {
  background: var(--hs-orange-700, #c2410c);
  box-shadow: 0 10px 22px -12px rgb(194 65 12 / 60%);
  color: #fff;
}

.hs-blog-chip.is-current .hs-icon {
  color: #fff;
}

.hs-blog-chip:focus-visible {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

/* ─── Posts and the side ───────────────────────────────────────────────── */

.hs-blog__layout {
  display: grid;
  gap: 28px;
}

@media (min-width: 1024px) {
  .hs-blog__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .hs-blog__layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
  }
}

.hs-blog-list {
  display: grid;
  gap: 20px;
}

/*
 * A card: the picture (the category on it) and the words beside it (under it on a phone).
 * What it is reads in one look: the category, the title, two lines; under a line who,
 * when, how long, and "Read the post". The title's link covers the card.
 */
.hs-post-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 12px;
  border-radius: var(--hs-blog-r);
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-surface, #fff);
  box-shadow:
    0 0 0 1px rgb(31 37 71 / 6%),
    0 18px 40px -30px rgb(31 37 71 / 38%);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (min-width: 640px) {
  .hs-post-card {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1280px) {
  .hs-post-card {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 26px;
  }
}

.hs-post-card:hover {
  box-shadow:
    0 0 0 1px rgb(31 37 71 / 8%),
    0 24px 48px -26px rgb(31 37 71 / 42%);
}

@media (prefers-reduced-motion: no-preference) {
  .hs-post-card:hover {
    transform: translateY(-2px);
  }
}

.hs-post-card:has(.hs-post-card__link:focus-visible) {
  box-shadow:
    0 0 0 3px var(--hs-focus, #1f2547),
    0 24px 48px -26px rgb(31 37 71 / 42%);
}

.hs-post-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--hs-blog-inner-r);
  corner-shape: var(--hs-corner-shape, round);
  background: #f1f3f8;
}

@media (min-width: 640px) {
  .hs-post-card__media {
    aspect-ratio: auto;
    min-height: 172px;
    height: 100%;
  }
}

.hs-post-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .hs-post-card__image {
    transition: transform 0.35s ease;
  }

  .hs-post-card:hover .hs-post-card__image {
    transform: scale(1.04);
  }
}

.hs-post-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--hs-orange, #f09820);
}

/* The category on the picture: its colour, white words (≥ 4.5:1), above the card's link. */
.hs-post-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 5px 12px 5px 9px;
  border-radius: var(--hs-r-pill, 999px);
  background: var(--hs-cat, var(--hs-orange-700, #c2410c));
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.hs-post-card__cat span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-post-card__cat:hover,
.hs-post-card__cat:focus {
  color: #fff;
  text-decoration: underline;
}

.hs-post-card__cat:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hs-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0 6px 4px;
}

@media (min-width: 640px) {
  .hs-post-card__body {
    padding: 8px 10px 4px 0;
  }
}

.hs-post-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 1280px) {
  .hs-post-card__title {
    font-size: 20px;
  }
}

.hs-post-card__link {
  color: var(--hs-ink, #1f2547);
  text-decoration: none;
}

/* The title's link covers the card (the category's stays above it). */
.hs-post-card__link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  content: '';
}

.hs-post-card__link:focus {
  outline: none;
}

.hs-post-card:hover .hs-post-card__link {
  color: var(--hs-blue-700, #185c9f);
}

.hs-post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--hs-muted, #5b6180);
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Under a line: who, when, how long; "Read the post" at the end. */
.hs-post-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hs-line, #e6e9f0);
}

.hs-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  color: var(--hs-muted, #5b6180);
  font-size: 13px;
  font-weight: 600;
}

.hs-post-card__author {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--hs-ink, #1f2547);
  font-weight: 700;
}

.hs-post-card__logo {
  width: 20px;
  height: 20px;
}

.hs-post-card__fact {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.hs-post-card__fact .hs-icon {
  flex: none;
}

.hs-post-card__cta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--hs-blue-600, #0070e0);
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
}

.hs-post-card:hover .hs-post-card__cta {
  color: var(--hs-blue-700, #185c9f);
  text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
  .hs-post-card__cta .hs-icon {
    transition: transform 0.2s ease;
  }

  .hs-post-card:hover .hs-post-card__cta .hs-icon {
    transform: translateX(3px);
  }
}

/* Nothing to show. */
.hs-blog-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 48px 20px;
  border-radius: var(--hs-blog-r);
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-surface, #fff);
  text-align: center;
}

.hs-blog-empty > .hs-icon {
  color: var(--hs-orange, #f09820);
}

.hs-blog-empty__title {
  color: var(--hs-ink, #1f2547);
  font-size: 17px;
  font-weight: 800;
}

.hs-blog-empty__link {
  color: var(--hs-blue-600, #0070e0);
  font-weight: 700;
}

/* ─── Page numbers ─────────────────────────────────────────────────────── */

/*
 * ─── Changing pages (blog.js, D-117) ────────────────────────────────────────
 * After a swap the list takes the focus (a ring only for the keyboard). An answer that
 * takes a moment: skeleton cards in the cards' place, each as tall as the card it stands
 * for (the script sets it), a soft light passing over the picture box and the lines, as
 * on the catalogue's skeleton cards (product-tile.css).
 */
.hs-blog-list:focus,
.hs-blog-empty:focus {
  outline: none;
}

.hs-blog-list:focus-visible,
.hs-blog-empty:focus-visible {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 6px;
  border-radius: var(--hs-blog-r);
}

.hs-blog-list.is-skeleton > li {
  display: grid;
}

.hs-post-card--skeleton {
  --hs-post-shine: rgb(255 255 255 / 70%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgb(31 37 71 / 6%);
}

.hs-post-card--skeleton .hs-post-card__body {
  gap: 12px;
  padding-top: 14px;
}

.hs-post-card__line {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1em;
  border-radius: 6px;
  background: #eef0f6;
}

.hs-post-card__line:first-child {
  width: 80%;
  height: 1.4em;
}

.hs-post-card__line--short {
  width: 55%;
}

.hs-post-card--skeleton .hs-post-card__media::before,
.hs-post-card__line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--hs-post-shine) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: hs-post-shimmer 1.5s ease-in-out infinite;
}

@keyframes hs-post-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-post-card--skeleton .hs-post-card__media::before,
  .hs-post-card__line::before {
    background: none;
    animation: none;
  }
}

.hs-blog-pages {
  margin-top: 32px;
}

.hs-blog-pages__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hs-blog-pages .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: calc(var(--hs-radius-md, 14px) * var(--hs-corner-scale, 1));
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-surface, #fff);
  box-shadow:
    0 0 0 1px rgb(31 37 71 / 7%),
    0 6px 16px -12px rgb(31 37 71 / 35%);
  color: var(--hs-ink, #1f2547);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.hs-blog-pages a.page-numbers:hover {
  color: var(--hs-blue-700, #185c9f);
  box-shadow: 0 0 0 1px var(--hs-blue-600, #0070e0);
}

.hs-blog-pages .page-numbers.current {
  background: var(--hs-orange-700, #c2410c);
  box-shadow: none;
  color: #fff;
}

.hs-blog-pages .page-numbers.dots {
  background: none;
  box-shadow: none;
}

.hs-blog-pages a.page-numbers:focus-visible {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

/* ─── The side ─────────────────────────────────────────────────────────── */

.hs-blog__aside {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .hs-blog__aside {
    position: sticky;
    top: 20px;
  }
}

.hs-blog-box {
  position: relative;
  padding: 20px 22px 22px;
  border-radius: var(--hs-blog-r);
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-surface, #fff);
  box-shadow:
    0 0 0 1px rgb(31 37 71 / 6%),
    0 18px 40px -30px rgb(31 37 71 / 38%);
}

.hs-blog-box__title {
  margin-bottom: 12px;
  color: var(--hs-ink, #1f2547);
  font-size: 18px;
  font-weight: 900;
}

/*
 * The popular categories: rows 12 px in from the box (R − 12), each a link as wide as
 * the box: the icon in a circle tinted with the category's colour, the name, the number
 * of posts in a badge, a chevron. Hover and the page's own: the row tinted.
 */
.hs-blog-cats {
  padding: 20px 12px 12px;
}

.hs-blog-cats .hs-blog-box__title {
  margin: 0 10px 8px;
}

.hs-blog-cats__list {
  display: grid;
  gap: 2px;
}

.hs-blog-cats__link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 7px 10px;
  border-radius: var(--hs-blog-inner-r);
  corner-shape: var(--hs-corner-shape, round);
  color: var(--hs-ink, #1f2547);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hs-blog-cats__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f6f9;
  background: color-mix(in srgb, var(--hs-cat, #c2410c) 12%, #fff);
  color: var(--hs-cat, var(--hs-orange-700, #c2410c));
}

.hs-blog-cats__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-blog-cats__count {
  min-width: 30px;
  padding: 3px 9px;
  border-radius: var(--hs-r-pill, 999px);
  background: #f1f3f8;
  color: var(--hs-muted, #5b6180);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.hs-blog-cats__chevron {
  color: var(--hs-muted, #5b6180);
  opacity: 0.55;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.hs-blog-cats__link:hover,
.hs-blog-cats__link.is-current {
  background: #f4f6f9;
  background: color-mix(in srgb, var(--hs-cat, #c2410c) 8%, #fff);
}

.hs-blog-cats__link:hover .hs-blog-cats__count,
.hs-blog-cats__link.is-current .hs-blog-cats__count {
  background: var(--hs-cat, var(--hs-orange-700, #c2410c));
  color: #fff;
}

.hs-blog-cats__link:hover .hs-blog-cats__chevron,
.hs-blog-cats__link.is-current .hs-blog-cats__chevron {
  color: var(--hs-cat, var(--hs-orange-700, #c2410c));
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hs-blog-cats__link:hover .hs-blog-cats__chevron {
    transform: translateX(2px);
  }
}

.hs-blog-cats__link:focus-visible,
.hs-blog-popular__link:focus-visible {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

/*
 * The newsletter (Sidebar::newsletter). "ground", the blog's pages: the owner's picture as
 * the box's ground (the megaphone at its top right), the form stacked. "gift", a post's
 * page: post.css.
 */
.hs-blog-news {
  overflow: hidden;
  background: linear-gradient(160deg, #eef4ff, #f7f0ff 60%, #fff4f8);
}

.hs-blog-news__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hs-blog-news > :not(.hs-blog-news__ground) {
  position: relative;
}

.hs-blog-news__title {
  color: var(--hs-ink, #1f2547);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.hs-blog-news__text {
  margin: 10px 0 18px;
  color: #3a4064;
  font-size: 14.5px;
  line-height: 1.5;
}

.hs-blog-news--ground .hs-blog-news__title {
  max-width: 10ch;
}

.hs-blog-news--ground .hs-blog-news__text {
  max-width: 52%; /* clear of the megaphone */
}

.hs-blog-news--ground.has-art .hs-blog-news__form {
  margin-top: 36px;
}

.hs-blog-news--ground .hs-newsletter__row,
.hs-blog-news--ground .hs-newsletter__row:hover,
.hs-blog-news--ground .hs-newsletter__row:focus-within {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.hs-blog-news--ground .hs-newsletter .hs-newsletter__email {
  flex: none;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--hs-border-strong, #8a90ab);
  border-radius: var(--hs-r-pill, 999px);
  background: var(--hs-surface, #fff);
}

.hs-blog-news--ground .hs-newsletter .hs-newsletter__email:focus {
  border-color: var(--hs-blue-600, #0070e0);
  box-shadow: inset 0 0 0 1px var(--hs-blue-600, #0070e0);
}

.hs-blog-news--ground .hs-newsletter .hs-newsletter__submit {
  justify-content: center;
  width: 100%;
}

.hs-blog-news .hs-newsletter__consent {
  font-size: 12.5px;
}

/* The popular posts. */
.hs-blog-popular__list {
  display: grid;
  gap: 14px;
}

.hs-blog-popular__link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--hs-ink, #1f2547);
  text-decoration: none;
}

.hs-blog-popular__image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: calc(var(--hs-radius-md, 14px) * var(--hs-corner-scale, 1));
  corner-shape: var(--hs-corner-shape, round);
  background: #f1f3f8;
  object-fit: cover;
  color: var(--hs-orange, #f09820);
}

.hs-blog-popular__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hs-blog-popular__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hs-blog-popular__link:hover .hs-blog-popular__name {
  color: var(--hs-blue-700, #185c9f);
  text-decoration: underline;
}

.hs-blog-popular__time {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--hs-muted, #5b6180);
  font-size: 12.5px;
  font-weight: 600;
}
