/* Catalog style "demo29" — tags add-on (loaded instead of _tags.css): soft frosted pills, a gradient glow when agreed. Mirrors /demo29/. */
/*
 * List page: the tag cloud is a centred frosted panel of soft pills under the sections; the active
 * one fills white. Cards: quiet italic serif tags centred under the counters. Post: a frosted
 * panel; each tag is a glass pill with a small breathing dot, agreed (is-mine) = gradient-filled.
 */

/* list page: the cloud */
.tagcloud { margin: 0 0 6px; padding: 18px 20px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--glass); text-align: center; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tagcloud__title { margin: 0 0 12px; color: var(--mute); font: 400 12px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.tagcloud__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tagcloud__item { min-width: 0; max-width: 100%; }
.tagcloud__link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 4px 6px 4px 14px; border: 1px solid var(--edge); border-radius: 50px; color: var(--soft); font-size: 14px; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; transition: border-color 0.6s ease, color 0.6s ease, background 0.6s ease; }
.tagcloud__link:hover { border-color: var(--edge-2); color: #fff; }
.tagcloud__link.is-active { border-color: transparent; background: rgb(255 255 255 / 0.9); color: var(--night); }
.tagcloud__count { display: inline-grid; place-items: center; flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 50px; background: rgb(255 255 255 / 0.08); color: var(--mute); font-size: 12px; }
.tagcloud__link.is-active .tagcloud__count { background: rgb(6 7 9 / 0.12); color: var(--night); }
.tagcloud__empty { margin: 0; color: var(--mute); font: italic 300 18px/1.4 var(--serif); }
.listing__tag { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 14px; padding: 6px 8px 6px 18px; border: 1px solid var(--edge-2); border-radius: 50px; font-size: 15px; }
.listing__tag strong { font: italic 400 20px/1 var(--serif); color: #fff; }
.listing__tag a { padding: 4px 12px; border-radius: 50px; background: rgb(255 255 255 / 0.08); color: var(--ink); font-size: 13px; text-decoration: none; }
.listing__tag a:hover { background: rgb(255 255 255 / 0.18); }

/* cards */
.post__fits { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin: -6px 0 16px; padding: 0; list-style: none; }
.post__fit a { color: var(--lilac); font: italic 400 17px/1.4 var(--serif); text-decoration: none; }
.post__fit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* post: the tag block */
.fits { margin-top: 56px; padding: 32px 30px; border: 1px solid var(--edge); border-radius: calc(var(--r) + 8px); background: var(--glass); text-align: center; -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); }
.fits__title { margin: 0 0 8px; color: #fff; font: italic 300 36px/1.15 var(--serif); }
.fits__intro { max-width: 54ch; margin: 0 auto 22px; color: var(--soft); }
.fits__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.fits__item { max-width: 100%; }
.fits__vote { margin: 0; }
.fits__tag { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 6px 8px 6px 16px; border: 1px solid var(--edge-2); border-radius: 50px; background: rgb(255 255 255 / 0.04); color: var(--ink); font: 300 15px/1.25 var(--sans); text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease; }
.fits__tag::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 10px var(--azure); animation: rx-dot 6s ease-in-out infinite; }
@keyframes rx-dot { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.fits__tag:hover { border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.08); }
.fits__tag.is-mine { border-color: transparent; background: linear-gradient(100deg, rgb(76 201 240 / 0.9), rgb(183 156 255 / 0.9)); color: #0b0c14; font-weight: 500; box-shadow: 0 0 30px -6px rgb(183 156 255 / 0.8); }
.fits__tag.is-mine::before { background: #0b0c14; box-shadow: none; animation: none; }
.fits__tag:focus-visible { outline: 2px solid var(--azure); outline-offset: 4px; }
.fits__count { display: inline-grid; place-items: center; flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 50px; background: rgb(255 255 255 / 0.08); color: var(--mute); font-size: 12px; }
.fits__tag.is-mine .fits__count { background: rgb(11 12 20 / 0.15); color: #0b0c14; }
.fits__empty { margin: 0 0 24px; color: var(--mute); font: italic 300 20px/1.4 var(--serif); }
.fits-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0; padding-top: 22px; border-top: 1px solid var(--edge); }
.fits-form__label { width: 100%; color: var(--mute); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.fits-form__input { flex: 1 1 220px; min-width: 0; max-width: 380px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--edge-2); border-radius: 50px; background: rgb(0 0 0 / 0.35); color: var(--ink); font: inherit; }
.fits-form__input::placeholder { color: rgb(238 240 246 / 0.5); }
.fits-form__input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgb(76 201 240 / 0.18); }
.fits-form__submit { min-height: 44px; }

@media (max-width: 640px) { .fits { padding: 24px 16px; } }
@media (prefers-reduced-motion: reduce) { .fits__tag::before { animation: none; } }
