/**
 * Tablet-only: full card-stars on public /events/, /collaborations/, «Просвещение».
 * Covers 768×1024 and 820×1180. Phone (<768) and wide desktop (>1180) untouched.
 *
 * Clipping: 3-col tablet cards + flex-wrap:nowrap + 20px stars +
 * .entity-star-rating { min-width:0 } + .card { overflow:hidden }.
 */

@media (min-width: 768px) and (max-width: 1180px) {
    /* Avoid .card overflow clipping the stars row (scoped cards only) */
    .events-page-cards:not(.personal-events__list) .index__events_event,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card,
    .expert-articles-page-cards .index__events_article,
    .tabs__content[data-target="knowlige"] .index__events_article,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article {
        overflow: visible;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom),
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom),
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom),
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom),
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 2px 4px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) > .entity-star-rating,
    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) > .card-stars,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) > .entity-star-rating,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) > .card-stars,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .entity-star-rating,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .card-stars,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .entity-star-rating,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .card-stars,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .entity-star-rating,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .card-stars {
        display: flex;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        width: auto;
        max-width: none;
        min-width: auto;
        gap: 1px;
        overflow: visible;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star,
    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .entity-star-rating .star,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card-stars .star,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star {
        flex-shrink: 0;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star svg,
    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star svg,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .entity-star-rating .star svg,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card-stars .star svg,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star svg,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star svg,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star svg,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star svg,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating .star svg,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card-stars .star svg {
        width: 14px;
        height: 12px;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating__avg,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .entity-star-rating__avg,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating__avg,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating__avg,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .entity-star-rating__avg {
        display: inline-block;
        flex-shrink: 0;
        min-width: 0;
        font-size: 11px;
        line-height: 1;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) > .card__buttons,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) > .card__buttons,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .card__buttons,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .card__buttons,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) > .card__buttons {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        align-items: center;
        gap: 2px;
        width: auto;
        max-width: none;
        min-width: auto;
        box-sizing: border-box;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card__action,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card__action,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action {
        display: inline-flex;
        align-items: center;
        gap: 1px;
        flex: 0 0 auto;
        min-width: auto;
        width: auto;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card__action-cnt,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card__action-cnt,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action-cnt,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action-cnt,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action-cnt {
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card__action .icon,
    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card__action .vs-likeit.icon-heart,
    .events-page-cards:not(.personal-events__list) .index__events_event > .card-stars__wrapper:not(.index__events_bottom) .card__action svg,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card__action .icon,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card__action .vs-likeit.icon-heart,
    .collaborations-page-cards:not(.personal-collaborations__list) .index__collaborations_card > .card-stars__wrapper:not(.index__collaborations_bottom) .card__action svg,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action .icon,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action .vs-likeit.icon-heart,
    .expert-articles-page-cards .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action svg,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action .icon,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action .vs-likeit.icon-heart,
    .tabs__content[data-target="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action svg,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action .icon,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action .vs-likeit.icon-heart,
    .cotinder-index-feed[data-cotinder-feed-tab="knowlige"] .index__events_article > .card-stars__wrapper:not(.index__events_bottom) .card__action svg {
        width: 14px;
        height: 12px;
        min-width: 14px;
        min-height: 12px;
        max-width: 14px;
        max-height: 12px;
        box-sizing: border-box;
    }
}

/* === 820-912 card height override (after mobile-card-fixes via footer BODY_END) === */
/**
 * 820–912: beat mobile-card-fixes (446) + equal-tablet (height:100%)
 * so post/pet feed cards show text + action buttons (same intent as 820).
 * Scope: index feed last/canals + another-pet lists. PC ≥1200 untouched.
 */
@media (min-width: 820px) and (max-width: 912.98px) {
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part),
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part),
  html body .tabs__content[data-target="last"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part),
  html body .tabs__content[data-target="canals"] .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part),
  html body .another-pet .index__posts > .index__post:not(.index__post_full):not(.index__post_be-part) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
  }

  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide,
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide,
  html body .tabs__content[data-target="last"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide,
  html body .tabs__content[data-target="canals"] .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide,
  html body .another-pet .index__posts > .index__post:not(.index__post_feed-banner):not(.index__post_curator-advice):not(.index__post_full) > .card.user-slide,
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__post > .card:not(.card__advice):not(.card__video):not(#post):not(.index__events_event):not(.index__events_article):not(.index__collaborations_card):not(.index__community-card),
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__post > .card:not(.card__advice):not(.card__video):not(#post):not(.index__events_event):not(.index__events_article):not(.index__collaborations_card):not(.index__community-card),
  html body .another-pet .index__post > .card:not(.card__advice):not(.card__video):not(#post):not(.index__events_event):not(.index__events_article):not(.index__collaborations_card):not(.index__community-card) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
  }

  /* Photo posts: 3:4 media like 820 tall fix (not 243px landscape lock) */
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__post .card.user-slide:not(.card__video) > .card__media-wrap.card-img-wrap,
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__post .card.user-slide:not(.card__video) > .card-img-wrap,
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__post .card.user-slide:not(.card__video) > a.card-img-wrap {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    flex: 0 0 auto !important;
  }

  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__post .card.user-slide:not(.card__video) img.card-img,
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__post .card-img {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
  }

  /* Pet canals: square media + visible footer (same as canals-tall-820) */
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__post .card.user-slide:not(.card__video) img.card-img,
  html body .tabs__content[data-target="canals"] .index__post .card.user-slide:not(.card__video) img.card-img {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post > .card.user-slide > .card-desc,
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__posts > .index__post > .card.user-slide > .card-desc,
  html body .another-pet .index__posts > .index__post > .card.user-slide > .card-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    min-height: 51px !important;
    max-height: none !important;
    flex: 0 0 auto !important;
  }

  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post > .card.user-slide > .card-stars__wrapper,
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__posts > .index__post > .card.user-slide > .card-stars__wrapper,
  html body .another-pet .index__posts > .index__post > .card.user-slide > .card-stars__wrapper,
  html body .cotinder-index-feed[data-cotinder-feed-tab="last"] .index__posts > .index__post > .card.user-slide > .card-likes,
  html body .cotinder-index-feed[data-cotinder-feed-tab="canals"] .index__posts > .index__post > .card.user-slide > .card-likes,
  html body .another-pet .index__posts > .index__post > .card.user-slide > .card-likes {
    flex: 0 0 auto !important;
    overflow: visible !important;
  }
}
/* Post/pet DETAIL: feed .card height + overflow must not clip stacked body */
@media (min-width: 768px) and (max-width: 1199.98px) {
  html body .post-public-page #post.card,
  html body .post-public-page #post.card.user-slide,
  html body #post.js-cotinder-post-modal.card,
  html body #post.js-cotinder-post-modal.card.user-slide {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    box-shadow: none !important;
  }

  html body .post-public-page #post .post__wrapper,
  html body #post.js-cotinder-post-modal .post__wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}