/* The one site search (src/lookup.mjs): Tag / Clan / Name tabs over one card.
   Radios + sibling selectors switch the panes; a container query lays the tag row out
   in one line when the block is wide (full-width on /player and /clan, narrower on home). */
.lookup{container-type:inline-size;position:relative;display:grid;grid-template-columns:minmax(0,1fr)}
.lk-tabs{display:flex;gap:4px;padding:4px 4px 0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-bottom:0;border-radius:16px 16px 0 0}
.lk-tab{flex:1 1 0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 10px;border-radius:12px 12px 0 0;font-weight:800;font-size:15px;color:rgba(255,255,255,.82);cursor:pointer;white-space:nowrap}
.lk-tab img{width:22px;height:22px;object-fit:contain}
.lk-tab:hover{color:#fff;background:rgba(255,255,255,.06)}
.lk-short{display:none}
#lk-tag:checked ~ .lk-tabs .lk-t-tag,
#lk-clan:checked ~ .lk-tabs .lk-t-clan,
#lk-name:checked ~ .lk-tabs .lk-t-name{background:var(--card);color:var(--stone-ink)}
#lk-tag:focus-visible ~ .lk-tabs .lk-t-tag,
#lk-clan:focus-visible ~ .lk-tabs .lk-t-clan,
#lk-name:focus-visible ~ .lk-tabs .lk-t-name{outline:3px solid var(--gold-1);outline-offset:-3px}
/* All panes share one grid cell, so the card keeps the height of the tallest pane and does not jump on a tab switch. */
.lk-pane{grid-row:2;grid-column:1;visibility:hidden;padding:16px;background:var(--card);border-radius:0 0 18px 18px;box-shadow:var(--soft);color:var(--stone-ink)}
#lk-tag:checked ~ .lk-p-tag,
#lk-clan:checked ~ .lk-p-clan,
#lk-name:checked ~ .lk-p-name{visibility:visible}
.lookup > :not(.lk-tabs):not(.lk-pane):not(.lk-pop):not(input){grid-row:3;grid-column:1}
.lookup .sp-body{padding:0;margin:0;background:none;border:0;box-shadow:none;border-radius:0}
.lk-p-tag .sp-status{min-height:20px;margin:8px 2px 0;font-size:14px;line-height:20px}

/* "?" help: one popover for all three tabs, over the card instead of pushing it down. */
.lk-q{flex:0 0 auto;align-self:center;display:grid;place-items:center;width:34px;height:34px;margin:0 6px 0 auto;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font:900 16px/1 "Nunito",sans-serif;cursor:pointer}
.lk-q:hover,.lk-q[aria-expanded="true"]{background:#fff;color:var(--stone-ink)}
.lk-pop{position:absolute;z-index:30;top:52px;right:0;width:min(380px,100%);padding:16px 18px;border-radius:16px;background:#fff;color:var(--stone-ink);box-shadow:0 1px 0 var(--card-line),0 18px 40px rgba(10,14,40,.35)}
.lk-pop[hidden]{display:none}
.lk-pop dl{margin:0}
.lk-pop dt{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px}
.lk-pop dt img{width:22px;height:22px;object-fit:contain}
.lk-pop dd{margin:4px 0 14px 30px;font-size:14px;line-height:1.45;color:var(--stone-mute)}
.lk-pop dd:last-child{margin-bottom:0}
.lk-form{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;margin:0}
.lk-form .inp{position:relative;flex:1 1 220px;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 6px 0 12px;background:#fff;border:1.5px solid #cfc8b8;border-radius:12px}
.lk-form .inp:focus-within{border-color:var(--blue-2);box-shadow:0 0 0 3px rgba(42,139,224,.2)}
.lk-form .inp > svg{width:18px;height:18px;flex:0 0 auto;color:var(--stone-mute)}
.lk-form .inp input{flex:1 1 auto;min-width:0;width:100%;height:48px;border:0;outline:0;background:transparent;font:800 16px "Nunito",sans-serif;color:var(--stone-ink)}
.lk-form .inp input::placeholder{color:#9aa0ad;font-weight:600}
.lk-form .btn{flex:0 0 auto;min-height:52px}
.lk-form .btn svg{width:13px;height:13px;flex:0 0 auto}
.lk-form .btn-blue svg{color:#fff}
.lk-note{flex:1 1 100%;margin:8px 0 0;font-size:14px;color:var(--stone-mute)}
.lk-note:empty{display:none}
.lk-note.err{color:var(--red-2);font-weight:800}
.lk-note .linkish{padding:0;min-height:0;font-size:14px}
.lk-pane .data-notice{margin:0 0 10px}
@container (max-width:519px){
  .lk-long{display:none}
  .lk-short{display:inline}
  .lk-form .btn{flex:1 1 100%}
  .lk-pane{padding:14px 12px}
  /* Stacked like the Clan and Name panes, so the shared height leaves no empty band under the tag row. */
  .lk-p-tag .sp-row{flex-wrap:wrap}
  .lk-p-tag .sp-field{flex:1 1 100%}
  .lk-p-tag .sp-go{flex:1 1 100%;min-height:52px;padding:0 14px;font-size:16px}
  .lk-p-tag .sp-field input{padding:0 10px;letter-spacing:.03em}
}
@container (min-width:640px){
  .lk-tab{flex:0 0 auto;padding:0 24px}
  .lk-pane{padding:18px 20px}
}
