/* Catalog style "demo1" — tags add-on (loaded instead of _tags.css). */
/*
 * Near-black photographer's landing: tags are the demo's dark pills; on the post each one is a
 * pill button with the white circle ("+", then "✓" once agreed, the pill turning white). The
 * cloud is centred under the categories with a Lazurski line; on cards the tags sit on the photo
 * as small blurred pills next to the counters.
 */

/* list page: a centred cloud under the categories */
.tagcloud { max-width: 980px; margin: clamp(18px, 2.4vw, 28px) auto 0; padding: 0 16px; text-align: center; }
.tagcloud__title { margin: 0 0 12px; color: var(--serif-ink); font: 400 clamp(18px, 1.6vw, 22px)/1.2 var(--serif); letter-spacing: -0.01em; }
.tagcloud__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tagcloud__link { display: inline-flex; align-items: baseline; gap: 8px; min-height: 38px; padding: 8px 18px; border-radius: 999px; background: var(--pill); color: var(--ink); font: 500 14px/1.35 var(--head); text-decoration: none; transition: background 200ms ease, color 200ms ease; }
.tagcloud__link:hover { background: var(--pill-hover); }
.tagcloud__link.is-active { background: #fff; color: #111; font-weight: 600; }
.tagcloud__count { color: var(--soft); font: 400 14px/1 var(--serif); }
.tagcloud__link.is-active .tagcloud__count { color: #55555c; }
.tagcloud__empty { margin: 0; color: var(--soft); font: 400 18px/1.4 var(--serif); }
.listing__tag strong { color: var(--ink); font-weight: 600; }
.listing__tag a { color: var(--ink); text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 4px; }
.listing__tag a:hover { text-decoration-color: #fff; }

/* cards: small blurred pills on the photo, under the counters */
.post--card .post__body:has(.post__fits) .post__meta { margin-top: -168px; }
.post--card .post__fits { position: relative; z-index: 1; }
.post__fits { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.post__fit a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border: 1px solid rgb(255 255 255 / 0.28); border-radius: 999px; background: rgb(11 11 12 / 0.72); color: #fff; font: 400 13px/1.25 var(--head); text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 200ms ease, color 200ms ease; }
.post__fit a:hover { background: #fff; color: #111; }

/* post: a centred column like the rating */
.fits { max-width: 760px; margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 16px; text-align: center; }
.fits__title { margin: 0 0 8px; color: var(--serif-ink); font: 400 clamp(26px, 2.8vw, 40px)/1.1 var(--serif); letter-spacing: -0.01em; }
.fits__intro { max-width: 52ch; margin: 0 auto clamp(20px, 3vw, 30px); color: var(--soft); font: 300 16px/1.55 var(--head); }
.fits__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; list-style: none; }
.fits__vote { margin: 0; }
.fits__tag {
    display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 20px 4px 4px; border: 0; border-radius: 999px;
    background: var(--pill); color: var(--ink); font: 500 15px/1.25 var(--head); text-align: left; cursor: pointer; transition: background 200ms ease, color 200ms ease;
}
.fits__tag::before { content: "+"; display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111; font: 600 20px/1 var(--head); transition: transform 250ms ease; }
.fits__tag:hover { background: var(--pill-hover); }
.fits__tag:hover::before { transform: rotate(90deg); }
.fits__tag.is-mine { background: #fff; color: #111; font-weight: 600; }
.fits__tag.is-mine::before { content: "✓"; background: #111; color: #fff; font-size: 16px; }
.fits__tag.is-mine:hover { background: #e4e4e6; }
.fits__tag.is-mine:hover::before { transform: none; }
.fits__tag:focus-visible { outline: 2px solid rgb(255 255 255 / 0.9); outline-offset: 3px; }
.fits__count { color: var(--soft); font: 400 16px/1 var(--serif); }
.fits__tag.is-mine .fits__count { color: #55555c; }
.fits__empty { margin: 0 0 clamp(28px, 4vw, 40px); color: var(--soft); font: 400 20px/1.4 var(--serif); }
.fits-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 0; }
.fits-form__label { width: 100%; color: var(--serif-ink); font: 400 18px/1.2 var(--serif); }
.fits-form__input { flex: 1 1 240px; min-width: 0; max-width: 380px; min-height: 48px; padding: 12px 20px; border: 1px solid #3a3a40; border-radius: 999px; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--head); transition: border-color 200ms ease, box-shadow 200ms ease; }
.fits-form__input::placeholder { color: #8a8a91; }
.fits-form__input:focus { border-color: #fff; outline: none; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.22); }
.fits-form__submit {
    gap: 12px; min-height: 46px; padding: 4px 22px 4px 4px; border: 0; border-radius: 999px; background: var(--pill); color: #fff;
    font: 500 15px/1.2 var(--head); text-decoration: none; cursor: pointer; transition: background 200ms ease;
}
.fits-form__submit::before { content: "→"; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111; font-weight: 700; transition: transform 250ms ease; }
.fits-form__submit:hover { background: var(--pill-hover); }
.fits-form__submit:hover::before { transform: translateX(4px); }

@media (max-width: 620px) {
    .post--card .post__body:has(.post__fits) .post__meta { margin-top: -160px; }
}
