/* ===================================
   RESOURCES PAGE
   =================================== */

/* ===================================
   HERO SECTION
   =================================== */

.resources-hero {
  position: relative;
  padding: 60px 0 40px;
  color: var(--color-white);
  overflow: hidden;
}

/* Background with image */
.resources-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.resources-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #3A3A3A;
  z-index: 1;
}

.resources-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  z-index: 2;
}

.resources-hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.resources-hero__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 853px;
}

/* Базові налаштування анімації */
.breadcrumbs svg {
    transition: transform 0.3s ease;
}

.breadcrumbs svg path,
.breadcrumbs svg rect {
    transition: stroke 0.3s ease, fill 0.3s ease;
}

/* --- ГОЛОВНА ЛОГІКА --- */

/* 1. Рухаємо стрілку */
/* Читається як: "SVG, у якого БУДЬ-ЯКИЙ безпосередній сусід (+) зараз під курсором (:hover)" */
.breadcrumbs svg:has(+ *:hover) {
    transform: translateX(5px);
}

/* 2. Фарбуємо лінії */
.breadcrumbs svg:has(+ *:hover) path {
    stroke: var(--color-green-50);
}

/* 3. Фарбуємо прямокутник */
.breadcrumbs svg:has(+ *:hover) rect {
    stroke: var(--color-green-50);
    fill: var(--color-green-50);
}

.breadcrumbs__link:hover {
    color: var(--color-white);
}
/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs svg {
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

.breadcrumbs__separator {
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: #B0B2B5;
}

.breadcrumbs__link {
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: #B0B2B5;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--color-white);
}

.breadcrumbs__text {
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: #B0B2B5;
}

.breadcrumbs__current {
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: var(--color-white);
}

/* Title & Description */
.resources-hero__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resources-hero__title {
  font-size: var(--h1-size); /* 40px */
  font-weight: var(--font-bold);
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
}

.resources-hero__description {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-white);
  margin: 0;
}

/* Controls Row - Categories above, Search below */
.resources-hero__controls {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    flex-direction: column;
}

/* Categories (Desktop) */
.resources-hero__categories {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
    min-width: 0;
    min-height: 1px;
}

.resources-hero__categories-mobile {
  display: none;
}

.category-radio {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
}

.category-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-radio__button {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-white);
  border-radius: 12px;
  background-color: var(--color-white);
  padding: 5px;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.category-radio__button::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.category-radio input[type="radio"]:checked + .category-radio__button {
  border-color: var(--color-green-60);
}

.category-radio input[type="radio"]:checked + .category-radio__button::before {
  background-color: var(--color-green-60);
}

.category-radio__label {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-white);
  padding-top: 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.category-radio input[type="radio"]:not(:checked) + .category-radio__button + .category-radio__label {
  color: #B0B2B5;
}

.category-radio:hover .category-radio__label {
  color: var(--color-white);
}

/* Category Select (Mobile) */
.category-select {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background-color: var(--color-gray-30);
  border: 1px solid var(--color-gray-40);
  border-radius: var(--radius-md);
  font-size: var(--body-size);
  font-weight: var(--font-regular);
  color: var(--color-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

.category-select:focus {
  outline: none;
  border-color: var(--color-green-60);
}

/* Search wrapper */
.resources-hero__search {
  flex-shrink: 0;
}

/* ---- SEARCH COMPONENT ---- */
/* 3 blocks inside: [icon] [input] [clear-btn] */

/* Default state (empty): transparent bg, small compact pill */
/* Override global .search-input from controls-molecules.css */
.resources-hero__search .search-input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid #D5DBE1;
  background-color: transparent;
  cursor: text;
  box-sizing: border-box;
  transition: background-color 0.3s ease, width 0.3s ease;
  position: relative;
  width: 160px;
}

/* Expanded state (has text): white bg, bigger — room for close btn */
.resources-hero__search .search-input.expanded {
  background-color: #FFFFFF;
  width: 200px;
}

/* 1. Search icon - always left, flex-shrink: 0 */
/* Override global .search-input__icon from controls-molecules.css */
.resources-hero__search .search-input__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  transform: none;
  right: auto;
  top: auto;
  pointer-events: auto;
  color: inherit;
}

/* Default: gray icon */
.resources-hero__search .search-input__icon path {
  fill: #B0B2B5;
  transition: fill 0.3s ease;
}

/* Expanded: dark icon */
.resources-hero__search .search-input.expanded .search-input__icon path {
  fill: #3A3A3A;
}

/* 2. Input field - center, takes available space */
/* Override global .search-input__field from controls-molecules.css */
.resources-hero__search .search-input__field {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-medium);
  line-height: 1.6;
  color: #3A3A3A;
  min-width: 40px;
  width: auto;
  height: auto;
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0;
  box-shadow: none;
}

.resources-hero__search .search-input__field::placeholder {
  color: #B0B2B5;
  text-align: center;
}

.resources-hero__search .search-input__field:focus {
  outline: none;
  box-shadow: none;
}

/* 3. Close button - right, small X icon 11x11 */
/* Override global .search-input__clear from controls-molecules.css */
/* Always takes space in layout, but invisible until has-value */
.resources-hero__search .search-input__clear {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  position: static;
  transform: none;
  right: auto;
  top: auto;
  width: 11px;
  height: 11px;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.resources-hero__search .search-input__clear svg {
  width: 11px;
  height: 11px;
  display: block;
}

/* Show close button when input has value */
.resources-hero__search .search-input.has-value .search-input__clear {
  opacity: 1;
  pointer-events: auto;
}

.resources-hero__search .search-input__clear:hover path {
  fill: var(--color-green-60);
}

/* ===================================
   CONTENT SECTION
   =================================== */

.resources-content {
  padding: 60px 0 80px;
  background-color: var(--color-white);
}

.resources-layout {
  display: grid;
  grid-template-columns: 1fr 266px;
  gap: 30px;
}

/* Main Content */
.resources-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 22px;
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card__inner {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-95);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card__image {
  position: relative;
  height: 162px;
  overflow: hidden;
  background-color: var(--color-gray-95);
}

.post-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay 30% */
.post-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(58, 58, 58, 0.3);
  pointer-events: none;
}

.post-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.post-card__category {
  font-size: var(--caption-size);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.5px;
  color: #23A859;
  text-transform: uppercase;
}

.post-card__title {
  font-size: var(--body-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-gray-20);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card__date {
  font-size: var(--body-xs-size);
  font-weight: var(--font-regular);
  line-height: 1.55;
  color: var(--color-gray-30);
  margin-top: auto;
}

/* Load More Button */
.resources-load-more {
  align-self: center;
  margin-top: 20px;
}

/* Empty State */
.resources-empty {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 60px 20px;
  width: 100%;
}

.resources-empty__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.resources-empty__title {
  font-size: var(--h2-size); /* 32px */
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-gray-20);
  margin: 0;
}

.resources-empty__description {
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
}

.resources-empty__search {
  display: flex;
  gap: 20px;
  width: 100%;
}

.resources-empty__input {
  flex: 1;
  min-width: 290px;
  height: 60px;
  padding: 0 20px;
  background-color: var(--color-white);
  border: 1px solid #B0B2B5;
  border-radius: var(--radius-md);
  font-size: var(--body-size);
  font-weight: var(--font-medium);
  line-height: 1.6;
  color: var(--color-gray-20);
  transition: border-color var(--transition-fast);
}

.resources-empty__input::placeholder {
  color: #A6A6A6;
}

.resources-empty__input:focus {
  outline: none;
  border-color: var(--color-green-60);
}

.resources-empty__btn {
  width: 234px;
  flex-shrink: 0;
}

/* ===================================
   SIDEBAR
   =================================== */

.resources-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 12px;
  align-self: flex-start;
}

/* Tags */
.sidebar-tags {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.sidebar-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

/* Tags hidden beyond current page */
.sidebar-tags__list .tag-chip {
  background-color: var(--color-gray-95);
  border: none;
  border-radius: var(--radius-md);
  padding: 4px 12px;
  height: 40px;
  font-size: var(--body-small-size);
  font-weight: var(--font-regular);
  line-height: 1.55;
  color: var(--color-gray-20);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-transform: capitalize;
}

.tag-chip.tag-hidden {
  display: none;
}

.tag-chip:hover {
    background-color: var(--color-gray-20);
    color: var(--color-gray-95);
}

.tag-chip.active {
    background-color: var(--color-gray-20);
    color: var(--color-gray-95);
}

.sidebar-tags__toggle {
  width: 32px;
  height: 40px;
  background-color: var(--color-gray-95);
  border: 1px solid var(--color-green-50);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-gray-20);
  transition: all var(--transition-fast);
}

.sidebar-tags__toggle:hover {
  background: linear-gradient(90deg, rgba(61, 208, 120, 0.2) 0%, rgba(61, 208, 120, 0.2) 100%), var(--color-gray-95);
}

/* Newsletter */
.sidebar-newsletter {
  background-color: var(--color-gray-95);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-newsletter__title {
  font-size: var(--h4-size); /* 20px */
  font-weight: 600; /* Semi Bold */
  line-height: 1.5;
  color: var(--color-gray-20);
  margin: 0;
  text-align: center;
}

.sidebar-newsletter__text {
  font-size: var(--body-small-size); /* 14px */
  font-weight: var(--font-regular);
  line-height: 1.55;
  color: var(--color-gray-20);
  margin: 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-form__input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background-color: var(--color-white);
  border: 1px solid #B0B2B5;
  border-radius: 12px;
  font-size: var(--body-size);
  font-weight: var(--font-medium);
  color: var(--color-gray-20);
  transition: border-color var(--transition-fast);
}

.newsletter-form__input::placeholder {
  color: #A6A6A6; /* Exact Figma color */
}

.newsletter-form__input:focus {
  outline: none;
  border-color: var(--color-green-60);
}

.newsletter-form__btn {
  width: 100%;
  height: 60px;
  border-radius: 12px;
  letter-spacing: 0.16px;
}

.newsletter-form__consent {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: var(--font-regular);
    line-height: 1.6;
    color: var(--color-gray-20);
}

.newsletter-form__consent span {
  flex: 1;
}

.newsletter-form__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 1.5px solid #525252;
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
  display: block;
}

.newsletter-form__consent input[type="checkbox"]:hover {
  background-color: rgba(61, 208, 120, 0.1);
}

.newsletter-form__consent input[type="checkbox"]:checked {
  background-color: transparent !important;
  border-color: var(--color-green-60) !important;
}

.newsletter-form__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6.5L5 9.5L11 3.5' stroke='%233A3A3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.newsletter-form__consent a {
  color: #3DD078;
  font-weight: var(--font-bold);
  text-decoration: none;
  border-bottom: 1px solid #3DD078;
  letter-spacing: 2px;
  line-height: 1.35;
  font-size: 12px;
}

.newsletter-form__consent a:hover {
  border-bottom-color: transparent;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet */
@media (max-width: 1279px) {
  /* Hero adjustments */
  .resources-hero {
    padding: 50px 0 35px;
  }

  .resources-hero__controls {
    gap: 16px;
  }

  .resources-hero__categories {
    gap: 16px 24px;
  }
  .resources-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Sidebar */
  .resources-sidebar {
    position: static;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
  }

  .sidebar-tags {
    flex: 1;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-tags::-webkit-scrollbar {
    display: none;
  }

  .sidebar-tags__list {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .tag-chip {
    flex-shrink: 0;
  }

  .sidebar-tags__toggle {
    display: none;
  }

  /* Show all tags on tablet (horizontal scroll) */
  .tag-chip.tag-hidden {
    display: flex;
  }

  .sidebar-newsletter {
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 400px;
  }

  /* Grid */
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .post-card__image {
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero Section */
  .resources-hero {
    padding: 40px 0 30px;
  }

  .resources-hero__content {
    margin-bottom: 24px;
    gap: 24px;
  }

  .resources-hero__text {
    gap: 8px;
  }

  .resources-hero__title {
    font-size: var(--h1-mobile-size); /* 30px */
    letter-spacing: 0.9px;
  }

  .resources-hero__description {
    font-size: var(--body-size);
  }

  /* Categories & Search on Mobile */
  .resources-hero__controls {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
  }

  .resources-hero__categories {
    display: none;
  }

  .resources-hero__categories-mobile {
    display: block;
    width: 100%;
  }

  .resources-hero__search {
    width: 100%;
  }

  .category-select {
    width: 100%;
    height: 60px;
    font-size: var(--body-size);
  }

  /* Search Input Mobile */
  .resources-hero__search .search-input {
    display: flex;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 12px 10px 12px 20px;
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    border-color: #D5DBE1;
  }

  .resources-hero__search .search-input.expanded {
    width: 100%;
  }

  .resources-hero__search .search-input__field,
  .resources-hero__search .search-input.expanded .search-input__field {
    flex: 1;
    max-width: none;
    text-align: left;
  }

  .resources-hero__search .search-input__icon path {
    fill: #3A3A3A;
  }

  /* Content Section */
  .resources-content {
    padding: 40px 0 60px;
  }

  .resources-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* Main Content */
  .resources-main {
    gap: 24px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card {
    padding-top: 0;
  }

  .post-card:hover {
    transform: none; /* Remove hover effect on mobile */
  }

  .post-card__image {
    height: 200px;
  }

  .resources-load-more {
    width: 100%;
    margin-top: 12px;
  }

  /* Empty State Mobile */
  .resources-empty {
    padding: 40px 16px;
    gap: 24px;
  }

  .resources-empty__title {
    font-size: var(--h3-size); /* 24px */
    text-align: center;
  }

  .resources-empty__description {
    text-align: center;
  }

  .resources-empty__search {
    flex-direction: column;
    gap: 16px;
  }

  .resources-empty__input {
    min-width: auto;
    width: 100%;
  }

  .resources-empty__btn {
    width: 100%;
  }

  /* Sidebar on Mobile */
  .resources-sidebar {
    flex-direction: column;
    gap: 24px;
  }

  .sidebar-tags {
    flex: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: 8px;
    /* Hide scrollbar but keep functionality */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-tags::-webkit-scrollbar {
    display: none;
  }

  .sidebar-tags__list {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .sidebar-tags__toggle {
    display: none; /* Hide toggle on mobile */
  }

  /* Show all tags on mobile (horizontal scroll) */
  .tag-chip.tag-hidden {
    display: flex;
  }

  .tag-chip {
    flex-shrink: 0;
    height: 40px;
    padding: 4px 16px;
    font-size: var(--body-small-size);
  }

  /* Newsletter on Mobile */
  .sidebar-newsletter {
    flex: none;
    min-width: auto;
    width: 100%;
    padding: 24px 20px;
  }

  .sidebar-newsletter__title {
    font-size: var(--h4-size);
    text-align: left;
  }

  .sidebar-newsletter__text {
    text-align: left;
  }

  .newsletter-form {
    gap: 16px;
  }

  .newsletter-form__input {
    height: 60px;
  }

  .newsletter-form__btn {
    width: 100%;
  }

  .newsletter-form__consent {
    font-size: var(--body-xs-size);
    gap: 8px;
  }

  .newsletter-form__consent input[type="checkbox"] {
    width: 21px;
    height: 21px;
  }

  /* Breadcrumbs on Mobile */
  .breadcrumbs {
    gap: 6px;
  }

  .breadcrumbs svg {
    width: 18px;
    height: 12px;
  }

  .breadcrumbs__separator,
  .breadcrumbs__link,
  .breadcrumbs__text,
  .breadcrumbs__current {
    font-size: var(--body-xs-size);
  }

}


/* ─── Blog: category tabs as links ─── */
a.category-radio {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  cursor: pointer;
}

a.category-radio .category-radio__label {
  color: #B0B2B5;
  transition: color var(--transition-fast);
}

a.category-radio--active .category-radio__label,
a.category-radio:hover .category-radio__label {
  color: var(--color-white);
}

/* Active dot indicator for link-based tabs */
a.category-radio::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-white);
  border-radius: 12px;
  background-color: var(--color-white);
  padding: 5px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: block;
  position: relative;
}

a.category-radio--active::before {
  border-color: var(--color-green-60);
  background-image: radial-gradient(circle, var(--color-green-60) 40%, transparent 41%);
}

/* ─── Tags: collapse/expand ─── */

.tag-chip--active,
a.tag-chip--active,
a.tag-chip.tag-chip--active {
  background-color: var(--color-gray-20);
  color: var(--color-gray-95);
}

a.tag-chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Expanded state — now handled by JS pagination */
.tag-chip {
  transition: opacity 0.25s ease;
}

.sidebar-tags__toggle svg {
  transition: transform var(--transition-fast);
  transform: rotate(-90deg);
}

.sidebar-tags__toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.wp-block-image img {
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    vertical-align: bottom;
    border-radius: 16px;
}