/* Catalog style "demo12" — tags add-on (loaded instead of _tags.css). */
/* tags as lens pills: each carries a small aperture ring; yours closes the ring and gets the yellow double rim, like the chosen f-stop */

/* list page: the cloud, centred under the role pills */
.tagcloud { margin: 28px auto 0; max-width: 980px; text-align: center; }
.tagcloud__title { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--soft); font-size: 15px; font-weight: 600; }
.tagcloud__title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--yellow); }
.tagcloud__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tagcloud__link {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
    background: var(--field); border: 1px dashed rgb(238 240 234 / 0.34); font-size: 15px; font-weight: 600; text-decoration: none;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.tagcloud__link::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--soft); box-shadow: inset 0 0 0 3px var(--field); transition: background 300ms var(--ease), border-color 200ms ease; }
.tagcloud__link:hover { border-style: solid; border-color: var(--ink); }
.tagcloud__link:hover::before { border-color: var(--yellow); }
.tagcloud__link.is-active { background: var(--ink); border: 1px solid var(--ink); color: var(--ground); }
.tagcloud__link.is-active::before { border-color: var(--ground); background: var(--ground); box-shadow: inset 0 0 0 3px var(--ink); }
.tagcloud__count { color: var(--yellow); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tagcloud__link.is-active .tagcloud__count { color: var(--moss); }
.tagcloud__empty { margin: 0; color: var(--soft); font-size: 16px; }
.listing__tag strong { color: var(--ink); font-weight: 800; font-stretch: 112%; }
.listing__tag a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.listing__tag a:hover { color: var(--yellow); }

/* cards: the top tags as small pills under the rating ring, centred like the card */
.post__fits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.post__fit a {
    display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px dashed rgb(238 240 234 / 0.3);
    color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color 200ms ease, background 200ms ease;
}
.post__fit a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--yellow); }
.post__fit a:hover { border-style: solid; border-color: var(--yellow); background: var(--field); }

/* post: a centred section like the rating — the ring mark, the pills, the add field */
.fits { max-width: 760px; margin: clamp(64px, 7vw, 96px) auto 0; text-align: center; }
.fits__title { margin: 0 0 14px; font: 800 clamp(34px, 3.6vw, 56px)/0.95 var(--font); font-stretch: 112%; letter-spacing: -0.035em; }
.fits__title::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--yellow); }
.fits__intro { max-width: 46ch; margin: 0 auto 30px; color: var(--soft); font-size: 16px; }
.fits__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; margin: 0 0 40px; padding: 0; list-style: none; }
.fits__vote { margin: 0; }
.fits__tag {
    display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 22px 0 16px; border-radius: 999px;
    border: 1px solid rgb(238 240 234 / 0.28); background: var(--field); color: var(--ink);
    font: 700 17px/1.2 var(--font); font-stretch: 105%; text-align: left; cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 400ms var(--ease);
}
.fits__tag::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed rgb(238 240 234 / 0.5); transition: border-color 200ms ease, background 300ms var(--ease); }
.fits__tag:hover { border-color: var(--yellow); }
.fits__tag:hover::before { border-style: solid; border-color: var(--yellow); }
.fits__tag.is-mine { background: var(--yellow); border-color: var(--yellow); color: var(--dark); box-shadow: 0 0 0 6px var(--ground), 0 0 0 7px var(--yellow); }
.fits__tag.is-mine::before { border: 2px solid var(--dark); background: var(--dark); box-shadow: inset 0 0 0 3px var(--yellow); }
.fits__tag:focus-visible { outline: 3px solid var(--ink); outline-offset: 10px; }
.fits__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; border: 1.5px solid var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fits__tag.is-mine .fits__count { border-color: var(--dark); color: var(--dark); }
.fits__empty { margin: 0 0 32px; color: var(--soft); }
.fits-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 auto; padding: 10px; max-width: 620px; border-radius: 34px; background: var(--field); border: 1px solid var(--moss); }
.fits-form__label { width: 100%; padding-top: 6px; color: var(--soft); font-size: 14px; font-weight: 700; }
.fits-form__input {
    flex: 1 1 240px; min-width: 0; min-height: 50px; padding: 12px 20px; border: 1px solid rgb(238 240 234 / 0.28); border-radius: 999px;
    background: var(--ground); color: var(--ink); font: 400 17px/1.45 var(--font); transition: border-color 200ms ease, box-shadow 200ms ease;
}
.fits-form__input::placeholder { color: #8e9a90; }
.fits-form__input:hover { border-color: var(--soft); }
.fits-form__input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgb(255 181 0 / 0.35); }
.fits-form__submit { min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--dark); text-decoration: none; font-stretch: 105%; cursor: pointer; }
.fits-form__submit:hover { background: var(--ink); color: var(--dark); }
@media (max-width: 640px) {
    .fits__tag { font-size: 16px; padding-right: 18px; }
    .fits-form { border-radius: 26px; padding: 14px; }
    .fits-form__submit { flex: 1 1 100%; justify-content: center; }
}
