/* Catalog style "demo38" — tags add-on: outlined chips on the dark ground, Bodoni Moda italics for the tag words, the visitor's own tag in ivory with a green tick. Mirrors /demo38/. */
.tagcloud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 8px; }
.tagcloud__title { margin: 0; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.tagcloud__list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.tagcloud__link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); font: italic 400 16px/1.2 var(--serif); text-decoration: none; transition: color 0.2s, box-shadow 0.2s; }
.tagcloud__link:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--soft); }
.tagcloud__link.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }
.tagcloud__count { color: var(--faint); font: 700 11px/1 var(--sans); font-style: normal; }
.tagcloud__link.is-active .tagcloud__count { color: var(--bg); opacity: 0.7; }
.tagcloud__empty { margin: 0; color: var(--faint); font-size: 14px; }
.listing__tag strong { color: var(--green); }
.listing__tag a { color: var(--ink); text-underline-offset: 3px; }

.post__fits { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; padding: 0; list-style: none; }
.post__fit a { display: inline-flex; padding: 3px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); font: italic 400 14px/1.35 var(--serif); text-decoration: none; }
.post__fit a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--soft); }

.fits { margin-top: 56px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.fits__title { margin: 0 0 8px; color: var(--ink); font: 500 clamp(30px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -0.015em; }
.fits__intro { max-width: 62ch; margin: 0 0 20px; color: var(--soft); }
.fits__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.fits__vote { margin: 0; }
.fits__tag { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: italic 400 18px/1.2 var(--serif); text-align: left; cursor: pointer; transition: box-shadow 0.2s, background-color 0.2s, color 0.2s; }
.fits__tag::before { content: "+"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule); color: var(--green); font: 700 14px/1 var(--sans); font-style: normal; }
.fits__tag:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.fits__tag.is-mine { background: var(--ink); color: var(--bg); box-shadow: none; }
.fits__tag.is-mine::before { content: "✓"; background: var(--green); color: #0d1a10; box-shadow: none; font-size: 12px; }
.fits__tag:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.fits__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: var(--soft); font: 700 11px/1 var(--sans); font-style: normal; }
.fits__tag.is-mine .fits__count { background: rgb(0 0 0 / 0.12); color: var(--bg); }
.fits__empty { margin: 0 0 22px; color: var(--faint); font-style: italic; }
.fits-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.fits-form__label { width: 100%; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.fits-form__input { flex: 1 1 220px; min-width: 0; max-width: 380px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: inherit; }
.fits-form__input::placeholder { color: var(--faint); }
.fits-form__input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px rgb(83 245 126 / 0.35); }
.fits-form__submit { min-height: 44px; cursor: pointer; background: none; color: var(--ink); font-family: var(--sans); }
