/* Wiki do Habblit: seção Wireds (/wiki/wireds, /wiki/wired/<interaction>). Cor por tipo:
   ativador amarelo, efeito rosa, condição verde, seletor e extra azul. */
:root { --wkw-trg: #f2c200; --wkw-act: #ff4fa3; --wkw-cnd: #2fb344; --wkw-xtra: #2f86ff; }
.is-trg { --wkw-c: var(--wkw-trg); } .is-act { --wkw-c: var(--wkw-act); } .is-cnd { --wkw-c: var(--wkw-cnd); }
.is-slc, .is-xtra { --wkw-c: var(--wkw-xtra); }

.wkw-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: .8rem 0; }
.wkw-tabs { display: flex; flex-wrap: wrap; gap: .3rem; }
.wkw-tabs small { opacity: .7; font-size: .75em; }
.wkw-tab { box-shadow: inset 0 -3px 0 var(--wkw-c), var(--ds-raised); }
.wkw-bar .wk-inline-search { flex: 1 1 16rem; }

.wkw-steps { margin: 0 0 .7rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.wkw-steps li { padding: .45rem .6rem; border-radius: 2px; background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-border-soft); border-left: 6px solid var(--wkw-c); }

.wkw-group { margin: 1rem 0; }
.wkw-gh { display: flex; align-items: center; gap: .4rem; padding-bottom: .25rem; border-bottom: 3px solid var(--wkw-c); }
.wkw-gh small { font-size: .75em; color: var(--ds-text-muted); }
.wkw-group .wk-lead { margin-bottom: .6rem; }

.wkw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wkw-card { height: 100%; display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .6rem; border-radius: 2px; text-decoration: none; color: var(--ds-text);
    background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-border-soft), var(--ds-raised); border-left: 6px solid var(--wkw-c); }
.wkw-card:hover, .wkw-card:focus-visible { box-shadow: 0 0 0 2px var(--ds-brand), var(--ds-raised); }
.wkw-card .wk-card-img { flex: none; }
.wkw-card-txt { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.wkw-card-txt b { font-size: .9rem; line-height: 1.2; color: var(--ds-text-strong); overflow-wrap: anywhere; }
.wkw-card-txt > span:not(.wkw-card-tags) { font-size: .8rem; line-height: 1.3; color: var(--ds-text-muted); overflow-wrap: anywhere; }
.wkw-card-tags { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .1rem; }
.wkw-card-tags em { font-style: normal; font-size: .7rem; padding: 0 .3rem; border-radius: 2px; background: var(--ds-surface-alt); color: var(--ds-text-muted); }
.wkw-card-tags em.wkw-st-enfeite { background: #fff4c7; color: #8a5a00; }

.wkw-badge { background: var(--wkw-c); color: #111; box-shadow: 0 0 0 1px #111; }
.wkw-badge .ds-icon { width: 12px; height: 12px; }
.wkw-how { margin: 0 0 .5rem; padding-left: 1.3rem; display: grid; gap: .3rem; }
.wkw-exs { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.wkw-ex { padding: .55rem .65rem; border-radius: 2px; background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-border-soft); }
.wkw-ex h3 { margin: 0 0 .35rem; font-size: .95rem; color: var(--ds-text-strong); }
.wkw-ex p { margin: .35rem 0 0; }
.wkw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.wkw-chip { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .15rem .45rem .15rem .2rem; border-radius: 2px; font-size: .8rem; font-weight: 700;
    text-decoration: none; color: var(--ds-text-strong); background: var(--ds-surface-alt); box-shadow: 0 0 0 1px var(--ds-border-soft); border-left: 4px solid var(--wkw-c); }
.wkw-chip img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; flex: none; }
.wkw-chip span { overflow-wrap: anywhere; }
.wkw-chip:hover, .wkw-chip:focus-visible { box-shadow: 0 0 0 2px var(--ds-brand); }
.wkw-plus { font-weight: 700; color: var(--ds-text-muted); }
.wkw-box { min-height: 9rem; border-bottom: 6px solid var(--wkw-c); }
.wkw-box img.is-icon { --wk-zoom: 3; }
.wkw-full { width: 100%; justify-content: center; }
.wkw-facts { grid-template-columns: 1fr; margin-bottom: .7rem; }
.wk-item-main .ds-alert { margin: .6rem 0; }

@media (max-width: 520px) {
    .wkw-bar .wk-inline-search { flex-basis: 100%; max-width: none; }
    .wkw-box { min-height: 7rem; }
}
