/* Catalog style "demo2" — tags add-on (loaded instead of _tags.css). */
/*
 * The DEPO brand home: tags are green-outlined pills (like the post's .tags__item) with a green
 * "+"; the visitor's own tag lights up gold with a tick, the way the chosen score does. The post
 * block is a surface panel with the green glow, gold Lazurski capitals between green dashes.
 */

/* list page: the cloud centred under the gold categories */
.tagcloud { max-width: 1100px; margin: clamp(24px, 3vw, 36px) auto 0; padding: 0 16px; text-align: center; }
.tagcloud__title { margin: 0 0 14px; color: #fff; font: 700 12px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.tagcloud__title::before, .tagcloud__title::after { content: "—"; margin: 0 0.6em; color: var(--green); letter-spacing: 0; }
.tagcloud__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.tagcloud__link { display: inline-flex; align-items: baseline; gap: 8px; min-height: 38px; padding: 8px 16px; border: 1px solid var(--green); border-radius: 999px; color: #dfe9e1; font: 400 15px/1.3 var(--sans); text-decoration: none; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.tagcloud__link:hover { background: rgb(70 154 88 / 0.18); color: #fff; }
.tagcloud__link.is-active { background: var(--gold); border-color: var(--gold); color: #18171a; font-weight: 700; box-shadow: 0 0 22px rgb(255 181 0 / 0.3); }
.tagcloud__count { color: var(--grey); font: 700 14px/1 var(--serif); }
.tagcloud__link.is-active .tagcloud__count { color: #4a3600; }
.tagcloud__empty { margin: 0; color: var(--grey); }
.listing__tag strong { color: var(--gold); }
.listing__tag a { color: #fff; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.listing__tag a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* cards: small green-outlined pills under the score */
.post__fits { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.post__fit a { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--green); border-radius: 999px; color: #dfe9e1; font-size: 13px; line-height: 1.35; text-decoration: none; transition: background 200ms ease, color 200ms ease; }
.post__fit a:hover { background: var(--gold); border-color: var(--gold); color: #18171a; }

/* post: a glowing panel like the rating */
.fits {
    max-width: 780px; margin: clamp(56px, 7vw, 88px) auto 0; padding: clamp(24px, 4vw, 44px); border-radius: 14px; text-align: center;
    background: radial-gradient(ellipse 70% 90% at 50% 0%, rgb(70 154 88 / 0.18), transparent 70%), var(--surface);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
}
.fits__title { margin: 0 0 10px; color: var(--gold); font: 700 clamp(24px, 2.8vw, 36px)/1.15 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; }
.fits__title::before, .fits__title::after { content: "—"; margin: 0 0.4em; color: var(--green); }
.fits__intro { max-width: 56ch; margin: 0 auto clamp(20px, 3vw, 28px); color: var(--grey); }
.fits__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(24px, 3vw, 32px); padding: 0; list-style: none; }
.fits__vote { margin: 0; }
.fits__tag {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 18px 8px 14px; border: 1px solid var(--green); border-radius: 999px;
    background: var(--bg); color: #fff; font: 400 16px/1.25 var(--sans); text-align: left; cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.fits__tag::before { content: "+"; flex: none; color: var(--green); font: 700 20px/1 var(--sans); }
.fits__tag:hover { background: rgb(70 154 88 / 0.18); border-color: var(--gold); }
.fits__tag.is-mine { background: var(--gold); border-color: var(--gold); color: #18171a; font-weight: 700; box-shadow: 0 0 24px rgb(255 181 0 / 0.35); }
.fits__tag.is-mine::before { content: "✓"; color: #18171a; font-size: 16px; }
.fits__tag.is-mine:hover { background: #ffc633; }
.fits__tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fits__count { color: var(--gold); font: 700 18px/1 var(--serif); }
.fits__tag.is-mine .fits__count { color: #18171a; }
.fits__empty { margin: 0 0 clamp(24px, 3vw, 32px); padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--grey); }
.fits-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 0; padding-top: clamp(20px, 3vw, 28px); border-top: 1px solid var(--line); }
.fits-form__label { width: 100%; color: var(--gold); font: 700 13px/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; }
.fits-form__input { flex: 1 1 240px; min-width: 0; max-width: 380px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: #fff; font: 400 16px/1.5 var(--sans); transition: border-color 200ms ease, box-shadow 200ms ease; }
.fits-form__input::placeholder { color: #8d8d93; }
.fits-form__input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgb(255 181 0 / 0.25); }
.fits-form__submit { min-height: 48px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--green-deep); color: #fff; text-decoration: none; cursor: pointer; transition: background 200ms ease; }
.fits-form__submit:hover { background: #255d31; color: #fff; }

@media (max-width: 520px) {
    .tagcloud__title::before, .tagcloud__title::after, .fits__title::before, .fits__title::after { display: none; }
}
