/* Instagram live like counter (livecounts.nl/instagram-like-counter/). Loaded after instagram-live.css,
   whose tokens, header, card, chart, studio, content and footer it reuses; only the layout and the
   parts a post has and an account has not are here. */

.like-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: var(--gap); align-items: start; }
/* instagram-live.css gives .main-col a named area of the follower page's grid */
.like-grid > .main-col { grid-area: auto; }
/* the side column: the post card at the top, the sponsored card pushed down next to the chart and
   the tools (never beside the ad under the buttons), the tips last */
.like-rail { display: flex; flex-direction: column; gap: 12px; align-self: stretch; min-width: 0; }
.like-rail .spacenode-promo-card { margin-top: auto; }
.tips ol { display: grid; gap: 8px; margin: 12px 0 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

.lk-thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; background: var(--sunken); object-fit: cover; }
.who-name .lk-owner { overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.who-name .lk-owner:hover { text-decoration: underline; text-underline-offset: 3px; }
.type-badge { display: inline-flex; align-items: center; height: 22px; padding-inline: 9px; border-radius: var(--r-pill); background: var(--sunken); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.type-badge:empty { display: none; }

.metrics { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; }
.metrics > div { display: flex; align-items: baseline; gap: 6px; }
.metrics > div[hidden] { display: none; }
.metrics dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.metrics dd { font-size: 18px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metrics .m-hidden dd { color: var(--muted); font-size: 14px; font-weight: 600; }

/* the line between the buttons and the ad under them */
.lk-note { margin: 14px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
/* instagram-live.css places the billboard in a grid area of the follower page; here it is a plain block */
.like-grid .ad-billboard { grid-area: auto; margin-top: var(--s6); }
.like-grid .actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@container maincol (max-width: 700px) {
    .like-grid .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.like-grid .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-info dl { display: grid; gap: 12px; margin-top: 12px; }
.post-info dt { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.post-info dd { margin-top: 2px; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.post-info dd a { color: var(--ink); text-underline-offset: 3px; }
.post-info [hidden] { display: none; }

.search-box .i-link { color: var(--muted); }
body.is-nf :is(.pace-card, .studio, .post-info, .lk-note) { display: none; }
.counter-card[data-state="nf"] .metrics { display: none; }

/* the widget preview shows a post picture: a rounded square, not a circle */
.w .w-avatar.sq { border-radius: 10px; }
.w-label { font-weight: 500; opacity: .85; }

@media (max-width: 1023.98px) {
    .like-grid { grid-template-columns: minmax(0, 1fr); }
    .like-rail .spacenode-promo-card { margin-top: 0; }
}
@media (max-width: 719.98px) {
    .lk-thumb { width: 52px; height: 52px; border-radius: 10px; }
    .metrics dd { font-size: 16px; }
    .like-grid .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .like-grid .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
