/* Catalog style "demo35" — tags add-on (loaded instead of _tags.css). */
/*
 * "Suits a site for …" as the demo's chips: 50px outlined pills that fill cream when they are
 * your answer (a yellow tick), counts in the serif yellow; adding a tag is one more underlined
 * answer line with a cream "Add ↵". Mirrors /demo35/ like demo35.css.
 */

/* list page: the cloud follows the categories, titled as a question */
.tagcloud { margin: clamp(36px, 4vw, 56px) 0 0; }
.tagcloud__title { margin: 0 0 18px; font: 400 clamp(26px, 3vw, 40px)/1.06 var(--serif); }
.tagcloud__title::after { content: "…?"; color: var(--yellow); }
.tagcloud__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tagcloud__item { min-width: 0; max-width: 100%; }
.tagcloud__link {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 6px 18px; border: 1.5px solid var(--line); border-radius: 999px;
    color: var(--cream); font: 400 15px/1.25 var(--sans); text-decoration: none; overflow-wrap: anywhere; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tagcloud__link:hover { border-color: var(--cream); }
.tagcloud__link.is-active { background: var(--cream); border-color: var(--cream); color: var(--night); font-weight: 600; }
.tagcloud__count { font: 400 16px/1 var(--serif); color: var(--yellow); }
.tagcloud__link.is-active .tagcloud__count { color: var(--night); opacity: 0.7; }
.tagcloud__empty { max-width: 52ch; margin: 0; color: var(--soft); }

.listing__tag strong { color: var(--yellow); font-weight: 600; }
.listing__tag a { color: var(--cream); text-underline-offset: 5px; }
.listing__tag a:hover { color: var(--yellow); }

/* cards: the top tags as small outlined chips in the hint area */
.post__fits { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.post__fit { min-width: 0; max-width: 100%; }
.post__fit a {
    display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--soft); font-size: 13.5px; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; transition: border-color 0.2s, color 0.2s;
}
.post__fit a:hover { border-color: var(--cream); color: var(--cream); }

/* post: one more question screen */
.fits { margin-top: clamp(72px, 9vw, 128px); padding-top: 30px; border-top: 2px solid var(--line); }
.fits__title { margin: 0 0 14px; font: 400 clamp(38px, 5vw, 68px)/1.04 var(--serif); letter-spacing: -0.01em; }
.fits__intro { max-width: 54ch; margin: 0 0 28px; color: var(--soft); font-size: clamp(16px, 1.4vw, 18px); }
.fits__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.fits__item { min-width: 0; max-width: 100%; }
.fits__vote { margin: 0; }
.fits__tag {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 50px; padding: 8px 22px; border: 1.5px solid var(--line); border-radius: 999px;
    background: none; color: var(--cream); font: 400 17px/1.25 var(--sans); text-align: left; overflow-wrap: anywhere; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.fits__tag:hover { border-color: var(--cream); }
.fits__tag:active { transform: scale(0.97); }
.fits__tag.is-mine { background: var(--cream); border-color: var(--cream); color: var(--night); font-weight: 600; }
.fits__tag.is-mine::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--night); font-size: 12px; }
.fits__tag:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.fits__count { font: 400 18px/1 var(--serif); color: var(--yellow); font-variant-numeric: tabular-nums; }
.fits__tag.is-mine .fits__count { color: var(--night); opacity: 0.7; }
.fits__empty { margin: 0 0 30px; color: var(--soft); font: 400 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); }

.fits-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 0; }
.fits-form__label { width: 100%; color: var(--soft); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.fits-form__input {
    flex: 1 1 280px; min-width: 0; max-width: 560px; padding: 8px 0 12px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent;
    color: var(--cream); font: 400 clamp(22px, 2.6vw, 32px)/1.3 var(--sans); letter-spacing: -0.01em; transition: border-color 0.25s;
}
.fits-form__input::placeholder { color: rgb(242 236 223 / 0.5); }
.fits-form__input:focus { outline: none; border-bottom-color: var(--yellow); }
.fits-form__submit { cursor: pointer; }
.fits-form__submit::after { content: "↵"; font-weight: 400; }

@media (max-width: 520px) {
    .fits__tag { min-height: 46px; padding: 6px 16px; font-size: 15px; }
    .fits-form__input { flex-basis: 100%; max-width: none; }
    .fits-form__submit { flex: 1 0 100%; justify-content: center; }
}
