.icon { width: 24px; height: 24px; flex: none; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    min-height: var(--control); padding: var(--s3) var(--s5); border-radius: var(--radius-control); border: 2px solid var(--terracotta);
    background: var(--terracotta); color: var(--white); font: inherit; font-size: var(--text-base); font-weight: var(--weight-strong);
    text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--white); }
.button .icon { width: 20px; height: 20px; }
.button-large { min-height: calc(var(--control) + var(--s3)); padding: var(--s4) var(--s6); font-size: var(--text-lg); }
.button-small { min-height: var(--control-small); padding: var(--s2) var(--s4); font-size: var(--text-sm); }
.button-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.button-ghost:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.dark .button-ghost { color: var(--white); border-color: rgb(255 255 255 / 45%); }
.dark .button-ghost:hover { background: var(--white); border-color: var(--white); color: var(--graphite); }
.button-light { background: var(--white); color: var(--graphite); border-color: var(--white); }
.button-light:hover { background: var(--clay); border-color: var(--clay); color: var(--graphite); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s6); }
.card h2, .card h3 { font-family: var(--font-display); }
.card > :last-child { margin-bottom: 0; }
.card-shadow { border: 0; box-shadow: var(--shadow); }

.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-control); background: var(--accent-bg); color: var(--terracotta); margin-bottom: var(--s4); }
.dark .icon-badge { background: var(--graphite-raised); color: var(--accent-on-dark); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0; }
.tags li { border-radius: var(--radius-tag); font-size: var(--text-xs); font-weight: var(--weight-body); }
/* Plain chips: no page of their own, so flat grey with nothing that suggests a click. */
.tags .tag-plain { background: var(--surface-sunken); color: var(--text-soft); padding: var(--s1) var(--s3); cursor: default; }
/* Linked chips: the homepage pill, with an arrow on hover and focus. */
.tags .tag-link a { display: inline-flex; align-items: center; gap: var(--s1); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-tag); padding: var(--s1) var(--s3); color: var(--graphite); text-decoration: none; }
.tags .tag-link a::after { content: "→"; display: inline-block; width: 0; overflow: hidden; transition: width 0.15s; }
.tags .tag-link a:hover, .tags .tag-link a:focus-visible { border-color: var(--terracotta); color: var(--terracotta); }
.tags .tag-link a:hover::after, .tags .tag-link a:focus-visible::after { width: 1em; }

.checks { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.checks li { display: flex; gap: var(--s3); margin-bottom: var(--s3); }
.checks .icon { color: var(--graphite); width: 22px; height: 22px; margin-top: var(--s1); }
.dark .checks .icon { color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); font-weight: var(--weight-strong); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* FAQ: question list beside its heading on wide screens. */
.faq-layout { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 1fr 2fr; gap: var(--s8); } }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s5) 0; font-weight: var(--weight-strong); font-size: var(--text-lg); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--graphite); font-size: var(--text-xl); line-height: 1; transition: transform 0.15s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 var(--s5); color: var(--muted); max-width: 680px; }

/* Developer profiles (shown only when real, consented profiles exist). */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.filter label { font-weight: var(--weight-body); }
.result-count { color: var(--muted); }
.profile-head { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s4); }
.profile-head h2 { margin: 0; font-size: var(--text-lg); }
.profile-head p { margin: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--graphite); color: var(--white); display: grid; place-items: center; font-weight: var(--weight-strong); object-fit: cover; }
.profile-facts { display: flex; gap: var(--s5); margin: 0 0 var(--s4); }
.profile-facts dt { font-size: var(--text-xs); color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: var(--weight-strong); }
.profile .tags { margin-bottom: var(--s4); }
.availability { font-weight: var(--weight-strong); color: var(--muted); }
.availability.is-available { color: var(--success); }
.card-flat { background: var(--white); }
