/* nunubot.org/lookup: the Discord lookup tool. Uses the tokens from style.css. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav { background: var(--bg); }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: .92em; }

/* ---------- search ---------- */
.lk-hero { padding: clamp(48px, 8vh, 96px) 0 clamp(72px, 10vh, 120px); }
.lk-hero h1 { font-size: var(--step-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.lk-hero .lead { max-width: 52ch; }
.lk-form { margin-top: 36px; display: flex; gap: 10px; max-width: 860px; }
.lk-form input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--step-lead);
  transition: border-color .15s;
}
.lk-form input::placeholder { color: #6f7585; }
.lk-form input:focus { outline: none; border-color: var(--bot); }
.lk-form .btn { min-height: 60px; padding: 0 30px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: var(--step-lead); }
.lk-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.lk-try { margin-top: 14px; color: var(--muted); font-size: var(--step-small); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lk-try a { padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.lk-try a:hover { background: var(--surface-2); }

/* ---------- result ---------- */
.lk-out { margin-top: 40px; }
.lk-out:empty { display: none; }
.lk-note { color: var(--muted); padding: 22px 24px; border-radius: var(--r); background: var(--surface); max-width: 860px; }
.lk-note b { color: var(--ink); }
.lk-note.err { border-left: 4px solid #ef4444; }
.lk-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.lk-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--bot); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; animation: paneIn .35s var(--ease); }
.card-banner { aspect-ratio: 3.4 / 1; background: var(--surface-2) center / cover no-repeat; }
.card-banner.short { aspect-ratio: auto; height: 96px; }
.card-head { display: flex; gap: 24px; align-items: flex-start; padding: 0 clamp(20px, 3vw, 36px); margin-top: -64px; flex-wrap: wrap; }
.card-av { position: relative; width: 136px; height: 136px; flex: none; }
.card-av > img:first-child { width: 136px; height: 136px; border-radius: 50%; outline: 8px solid var(--surface); background: var(--surface-2); object-fit: cover; }
.card-av.square > img:first-child { border-radius: 32px; }
.card-av .deco { position: absolute; inset: -16px; width: 168px; height: 168px; max-width: none; pointer-events: none; }
.card-name { padding-top: 80px; min-width: 0; flex: 1; }   /* starts below the banner, next to the avatar */
.card-name h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; }
.card-sub { margin-top: 6px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: var(--step-small); font-weight: 600; }
.tag img { width: 16px; height: 16px; }
.tag.blurple { background: #5865f2; color: #fff; }
.tag.green { background: #1f6f43; color: #fff; }
.card-body { padding: 28px clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px); display: grid; gap: 28px; }
.card-desc { color: var(--ink); max-width: 70ch; white-space: pre-line; }

.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.fact { background: var(--bg-2); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.fact > span:first-child { color: var(--muted); font-size: var(--step-small); }
.fact b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fact small { color: var(--muted); font-size: var(--step-small); }
.fact.big b { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.copy { font: inherit; font-size: var(--step-small); color: var(--bot); background: none; border: 0; padding: 0; cursor: pointer; justify-self: start; }
.copy:hover { text-decoration: underline; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -3px; margin-right: 8px; outline: 1px solid rgba(255,255,255,.15); }

.block h3 { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .tag { font-weight: 500; padding: 6px 12px; }
.emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.emojis img { width: 40px; height: 40px; object-fit: contain; background: var(--bg-2); border-radius: 10px; padding: 4px; }
.media { display: flex; flex-wrap: wrap; gap: 10px; }
.media a { color: var(--ink); background: var(--surface-2); padding: 8px 14px; border-radius: 999px; font-size: var(--step-small); font-weight: 500; }
.media a:hover { background: #262b3e; }
.card-act { display: flex; flex-wrap: wrap; gap: 10px; }
.card-foot { color: var(--muted); font-size: var(--step-small); }

/* ---------- information ---------- */
.lk-info { padding: clamp(80px, 12vh, 140px) 0; background: var(--bg-2); }
.lk-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lk-what { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.lk-what h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; }
.lk-what .ticks { margin-top: 18px; }
.lk-private { background: var(--bot-fill); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); }
.lk-private h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.lk-private p { margin-top: 16px; }

.lk-how { padding: clamp(80px, 12vh, 140px) 0; background: var(--bg); }
.lk-steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lk-steps li { counter-increment: s; background: var(--surface); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 8px; align-content: start; }
.lk-steps li::before { content: counter(s); font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--bot); }
.lk-steps b { font-size: var(--step-lead); font-weight: 600; }
.lk-steps span { color: var(--muted); }
.lk-faq { margin-top: 28px; display: grid; gap: 8px; max-width: 860px; }
.lk-faq details { background: var(--surface); border-radius: var(--r); padding: 0 22px; }
.lk-faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lk-faq summary::-webkit-details-marker { display: none; }
.lk-faq summary::after { content: "+"; color: var(--bot); font-size: 1.4em; line-height: 1; }
.lk-faq details[open] summary::after { content: "−"; }
.lk-faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

@media (max-width: 1000px) {
  .lk-cols { grid-template-columns: 1fr; }
  .lk-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lk-form { flex-direction: column; }
  .lk-form .btn { width: 100%; }
  .lk-what { grid-template-columns: 1fr; }
  .card-head { margin-top: -48px; gap: 14px; }
  .card-av, .card-av > img:first-child { width: 104px; height: 104px; }
  .card-av .deco { inset: -12px; width: 128px; height: 128px; }
  .card-name { flex-basis: 100%; padding-top: 0; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 14px; }
}
