/* Catalog style "demo17" — tags add-on (loaded instead of _tags.css). */
/* tags: small satellites — each tag a rounded capsule with its own glowing moon; the agreed ones
   light up in yellow like the picked score, the cloud floats as a ring of capsules around the eye */

/* list page: the cloud, centred under the role pills */
.tagcloud { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 28px 0 0; }
.tagcloud__title { margin: 0; font: 800 15px/1 var(--display); letter-spacing: 0.01em; color: var(--green-hi); }
.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: center; gap: 10px; min-height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
    background: var(--ground-2); box-shadow: inset 0 0 0 1px rgb(124 197 138 / 0.35); color: var(--ink); font: 500 15px/1.2 var(--text); text-decoration: none;
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.tagcloud__link::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 10px rgb(124 197 138 / 0.6); }
.tagcloud__link:hover { background: var(--ground-3); box-shadow: inset 0 0 0 1px var(--green-hi); }
.tagcloud__link.is-active { background: var(--yellow); box-shadow: 0 0 24px rgb(255 181 0 / 0.4); color: var(--ground); font-weight: 700; }
.tagcloud__link.is-active::before { background: var(--ground); box-shadow: none; }
.tagcloud__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgb(0 0 0 / 0.28); font: 700 12px/1 var(--text); color: var(--soft); }
.tagcloud__link.is-active .tagcloud__count { background: var(--ground); color: var(--yellow); }
.tagcloud__empty { margin: 0; color: var(--soft); font-size: 15px; }
.listing__tag strong { font-weight: 700; color: var(--yellow); }
.listing__tag a { color: var(--green-hi); font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.listing__tag a:hover { color: var(--ink); }

/* cards: small capsules under the score pill */
.post__fits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.post__fit a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--ground-2); box-shadow: inset 0 0 0 1px rgb(238 238 228 / 0.14); color: var(--soft); font: 500 13px/1.3 var(--text); text-decoration: none; transition: color 200ms ease, box-shadow 200ms ease; }
.post__fit a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); }
.post__fit a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--green-hi); }

/* post: a rounded panel like the rating, its tags a row of satellites */
.fits {
    max-width: 980px; margin: 64px auto 0; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
    border-radius: 32px; background: var(--ground-2); box-shadow: inset 0 0 0 1px rgb(238 238 228 / 0.07);
}
.fits__title { margin: 0 0 10px; font: 800 clamp(30px, 3vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.fits__intro { max-width: 58ch; margin: 0 0 24px; color: var(--soft); }
.fits__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.fits__vote { margin: 0; }
.fits__tag {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px 0 16px; border: 0; border-radius: 999px;
    background: var(--ground-3); color: var(--ink); font: 700 16px/1.2 var(--display); text-align: left; cursor: pointer;
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.fits__tag::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 0 4px rgb(124 197 138 / 0.14); }
.fits__tag:hover { background: #1f3d2c; box-shadow: inset 0 0 0 1px var(--green-hi); }
.fits__tag.is-mine { background: var(--yellow); color: var(--ground); box-shadow: 0 0 24px rgb(255 181 0 / 0.45); }
.fits__tag.is-mine::before { background: var(--ground); box-shadow: 0 0 0 4px rgb(12 24 17 / 0.18); }
.fits__tag.is-mine:hover { background: var(--ink); }
.fits__tag:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.fits__count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--ground); color: var(--yellow); font: 800 13px/1 var(--display); }
.fits__tag.is-mine .fits__count { background: var(--ground); color: var(--yellow); }
.fits__empty { margin: 0 0 24px; color: var(--soft); }
.fits-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0; padding-top: 24px; border-top: 1px solid var(--ground-3); }
.fits-form__label { width: 100%; font: 700 14px/1.2 var(--display); color: var(--green-hi); }
.fits-form__input {
    flex: 1 1 240px; max-width: 380px; min-width: 0; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--ground);
    box-shadow: inset 0 0 0 1px rgb(238 238 228 / 0.18); color: var(--ink); font: 400 16px/1.4 var(--text); transition: box-shadow 200ms ease;
}
.fits-form__input::placeholder { color: var(--mute); }
.fits-form__input:hover { box-shadow: inset 0 0 0 1px rgb(124 197 138 / 0.55); }
.fits-form__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--yellow), 0 0 0 5px rgb(255 181 0 / 0.2); }
.fits-form__submit { border: 0; cursor: pointer; background: var(--green); color: #fff; }
.fits-form__submit:hover { background: var(--green-hi); color: var(--ground); }

@media (max-width: 620px) {
    .fits-form__input { max-width: none; }
}
