/* * The explorer : Slash in the browser for the visitors (tokens in slash.css) */

.layout {
    display: grid; grid-template-columns: 220px minmax(0, 620px) 300px; gap: 2.2rem; justify-content: center;
    max-width: 1240px; margin: 0 auto; padding: 1.8rem clamp(1rem, 3vw, 2rem) 4rem;
}
.side { position: sticky; top: 5.2rem; align-self: start; display: flex; flex-direction: column; gap: 1.6rem; }

.menu { display: flex; flex-direction: column; gap: .2rem; }
.menu a { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 12px; color: var(--muted); font-weight: 500; }
.menu a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.menu a[aria-current] { color: var(--text); background: var(--surface); }
.menu a[aria-current] .icon { color: var(--accent); }
.menu .icon { width: 1.3rem; height: 1.3rem; }
.join { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .88rem; color: var(--muted); }
.join p { margin: 0 0 1rem; }
.join strong { color: var(--text); }
.join .button { width: 100%; justify-content: center; min-block-size: 2.6rem; }

.search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--dim); }
.search:focus-within { border-color: var(--accent); color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 1rem var(--sans); padding: .75rem 0; }
.search.big { margin-bottom: 1.6rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.1rem 1.2rem; }
.panel h2 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0 0 .8rem; }
.panel h2 .icon { color: var(--accent); }
.trends { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trends a { display: flex; flex-direction: column; padding: .55rem 0; color: var(--text); border-top: 1px solid var(--line); }
.trends li:first-child a { border-top: 0; }
.trends a:hover { text-decoration: none; }
.trends a:hover b { color: var(--accent); }
.trends small { color: var(--dim); font-size: .8rem; }

/* * Column */

.column { min-width: 0; }
.heading { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; font-size: 1.3rem; font-weight: 800; }
.heading .icon { color: var(--accent); }
.heading button { margin-right: .2rem; }
.icon-button { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface); }
.loading, .empty { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 3rem 1rem; color: var(--dim); }
.more { display: flex; justify-content: center; padding: 1.4rem 0; }

/* * Post */

.post { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 .9rem; padding: 1.3rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.post:first-of-type { border-top: 0; }
.post.main { cursor: default; padding: 1.6rem 0; }
.post.main .text { font-size: 1.15rem; }
.context { grid-column: 2; display: flex; align-items: center; gap: .4rem; color: var(--dim); font-size: .82rem; margin-bottom: .35rem; }
.context .icon { color: var(--accent); width: 1em; height: 1em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--accent); flex: none; }
.avatar img, .avatar canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.body { min-width: 0; }
.who { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.who a { color: var(--text); font-weight: 600; }
.who .handle, .who time { color: var(--dim); font-size: .92rem; }
.badge { display: inline-flex; width: 1em; height: 1em; color: var(--accent); vertical-align: -.1em; }
.badge svg { width: 100%; height: 100%; }
.replying { color: var(--dim); font-size: .88rem; }
.text { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.text a { color: var(--accent); }
.edited { color: var(--dim); font-size: .8rem; margin-left: .4rem; }

.media { display: grid; gap: 4px; margin-top: .9rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.media.n2, .media.n4 { grid-template-columns: 1fr 1fr; }
.media.n3 { grid-template-columns: 1fr 1fr; }
.media.n3 > :first-child { grid-row: span 2; }
.media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; background: var(--surface); }
.media.n1 img { object-fit: contain; max-height: 560px; background: var(--bg); }
.expired { display: flex; align-items: center; gap: .6rem; padding: 1.4rem; color: var(--dim); font-size: .9rem; background: var(--surface); }

.video { position: relative; background: #000; }
.video canvas { width: 100%; display: block; }
.video .play {
    position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
}
.video .play .icon { width: 30px; height: 30px; }
.video .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; color: var(--text); font: .8rem var(--mono); background: color-mix(in srgb, #000 55%, transparent); }
.video .bar button { background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; padding: .2rem; }
.video .progress { flex: 1; height: 3px; background: #ffffff33; border-radius: 2px; overflow: hidden; }
.video .progress i { display: block; height: 100%; width: 0; background: var(--accent); }

.quote { margin-top: .9rem; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: 12px; }
.quote .who { font-size: .92rem; }
.quote .text { font-size: .95rem; }

.counts { display: flex; gap: 2.2rem; margin-top: .9rem; color: var(--dim); font-size: .88rem; }
.counts button { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.counts button:hover { color: var(--accent); }
.counts .icon { width: 1.15rem; height: 1.15rem; }

.replies-title { margin: .6rem 0 0; padding: 1rem 0 .2rem; color: var(--dim); font-size: .85rem; border-top: 1px solid var(--line); }
.ancestor { position: relative; }
.ancestor::after { content: ""; position: absolute; left: 21px; top: 4.4rem; bottom: -.4rem; width: 2px; background: var(--line-strong); }
.ancestor + .post { border-top: 0; }

/* * Profile */

.profile { margin-bottom: 1rem; }
.banner { height: 180px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner.none { height: 110px; background: var(--surface); }
.profile .avatar { width: 112px; height: 112px; font-size: 2.4rem; margin: -56px 0 0 1.4rem; border: 4px solid var(--bg); position: relative; }
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.profile-head .button { margin-top: .8rem; min-block-size: 2.5rem; }
.profile h1 { margin: .8rem 0 0; font-size: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.profile .handle { color: var(--dim); }
.profile .bio { margin: .8rem 0; white-space: pre-wrap; }
.profile .facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--dim); font-size: .9rem; }
.profile .facts b { color: var(--text); }
.profile .facts .icon { width: 1rem; height: 1rem; }
.pinned-label { display: flex; align-items: center; gap: .4rem; color: var(--dim); font-size: .82rem; padding-top: 1rem; }
.pinned-label .icon { color: var(--accent); width: 1rem; height: 1rem; }

.users { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.user-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line); color: var(--text); }
.user-row:hover { text-decoration: none; }
.user-row small { display: block; color: var(--dim); }

.tag-list { list-style: none; padding: 0; margin: 0; }
.tag-list a { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; }
.tag-list small { color: var(--dim); font-weight: 400; }

.gate { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 1.8rem; max-width: 440px; }
.gate::backdrop { background: #000a; }
.gate h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: 1.2rem; }
.gate p { color: var(--muted); margin: 0 0 1rem; }
.gate code { display: block; padding: .7rem 1rem; margin-bottom: 1.2rem; }
.gate .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .layout { grid-template-columns: 200px minmax(0, 620px); }
    .side.right { display: none; }
}
@media (max-width: 760px) {
    .layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .side.left { position: sticky; top: 3.9rem; z-index: 5; background: var(--bg); padding: .5rem 0; border-bottom: 1px solid var(--line); gap: 0; }
    .menu { flex-direction: row; justify-content: space-around; }
    .menu a span { display: none; }
    .join { display: none; }
    .banner { height: 130px; }
    .profile .avatar { width: 88px; height: 88px; margin-top: -44px; }
}

/* * Polls, GIFs, status, link */

.poll { display: flex; flex-direction: column; gap: .4rem; margin-top: .9rem; }
.poll .option {
    position: relative; display: flex; justify-content: space-between; padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px;
    background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; overflow: hidden;
}
.poll .option::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.poll .option span, .poll .option b { position: relative; }
.poll .option:hover { border-color: var(--accent); }
.poll small { color: var(--dim); font-size: .82rem; }
.gif { position: relative; background: #000; }
.gif canvas { width: 100%; display: block; }
.gif .tag { position: absolute; left: .6rem; bottom: .6rem; padding: .05rem .4rem; border-radius: 5px; background: #000a; color: var(--text); font: 700 .72rem var(--mono); }
.context.boosted { color: var(--accent); }
.who .status { color: var(--muted); font-size: .85rem; }
.who .status::before { content: "· "; color: var(--dim); }
.status-line { margin: .6rem 0 0; color: var(--accent); }
.profile-link { display: inline-flex; align-items: center; gap: .3rem; }
