/* Gildensuche (ui/gsearch.js): the adverts of the guilds and the applications. Panels .fp and rows .fp-row of imperial.css.
   Without a guild: the list left (ten rows a page, the pager at its foot), the chosen guild right; in a guild the
   applications and the advert. Every page keeps its height while the list changes; lists scroll in their own box. */
#ui #gsearch .win-body { padding: 5px 6px 6px; }
#gsearch .gs-cols { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px; height: 229px; }
#gsearch :is(.gs-list, .gs-detail) { display: flex; flex-direction: column; min-height: 0; }
#gsearch :is(.gs-list, .gs-detail) > .fp-h { flex: none; }
#gsearch .gs-rows { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; }
#gsearch .gs-row { --fp-row: 20px; gap: 4px; font-size: 7px; cursor: default; }
#gsearch .gs-row.hov { cursor: pointer; }
#gsearch .gs-nm { font-size: 8px; color: #eee3c8; }
#gsearch :is(.gs-lv, .gs-n, .gs-who, .gs-gs, .gs-at) { flex: none; white-space: nowrap; text-shadow: var(--ol); }
#gsearch .gs-n { min-width: 22px; text-align: right; }
/* applied at this guild */
#gsearch .gs-dot { flex: none; width: 4px; height: 4px; background: var(--green); box-shadow: 0 0 0 1px #0a0907; }
#gsearch .gs-pager { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 15px; box-shadow: inset 0 1px 0 #2a241d; }
#gsearch .gs-pager .btn { min-width: 14px; height: 11px; padding: 0; font-size: 8px; line-height: 10px; }
#gsearch .gs-pg { min-width: 28px; text-align: center; font-size: 7px; line-height: 9px; }
/* the chosen guild: four rows key / value, its text in a box that scrolls, the reason why not (or how long the advert runs) */
#gsearch .gs-dbody { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#ui #gsearch .gs-kv { flex: none; grid-template-columns: minmax(0, 1fr); }
#ui #gsearch .gs-kv > div { background: none; }
#ui #gsearch .gs-kv > div:nth-child(odd) { background: rgba(255, 228, 170, .035); }
#gsearch .gs-text { flex: 1 1 0; min-height: 30px; margin: 3px 4px; padding: 3px 4px; font-size: 7px; line-height: 9px; color: var(--text); overflow-x: hidden; overflow-y: auto;
  overflow-wrap: anywhere; background: #0c0a08; box-shadow: inset 0 0 0 1px #3a2e22; }
#gsearch .gs-text.dim { color: var(--dim); }
#gsearch .gs-why { flex: none; min-height: 16px; margin: 0 4px 4px; font-size: 7px; line-height: 8px; overflow-wrap: anywhere; }
#gsearch .gs-btns { width: 100%; margin-top: 4px; }
#gsearch .gs-note { margin-top: 4px; padding: 0 2px; font-size: 7px; line-height: 8px; overflow-wrap: anywhere; }
/* an own application: x takes it back */
#gsearch .gs-x { position: relative; flex: none; width: 9px; height: 9px; cursor: pointer; background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#gsearch .gs-x::before, #gsearch .gs-x::after { content: ''; position: absolute; left: 2px; top: 4px; width: 5px; height: 1px; background: var(--gold); transform: rotate(45deg); }
#gsearch .gs-x::after { transform: rotate(-45deg); }
#gsearch .gs-x:hover { box-shadow: inset 0 0 0 1px var(--bronze-l); }
/* the applications of the own guild: online dot, name, level and class, Gearscore, date - eight rows, more scroll */
#gsearch .gs-apps .gs-rows { height: 160px; flex: none; }
#gsearch .gs-on { translate: none; }
#gsearch .gs-on.on { background: var(--green); }
#gsearch .gs-who { color: var(--text); }
#gsearch .gs-gs { min-width: 26px; text-align: right; }
/* the advert: text, minimum level, the classes as switches */
#gsearch .gs-in { display: block; width: 100%; height: 48px; box-sizing: border-box; resize: none; padding: 2px 3px; font: inherit; font-size: 7px; line-height: 9px; }
#gsearch .gs-line { margin-top: 2px; }
#gsearch .gs-lvin { width: 34px; height: 11px; padding: 0 3px; font-size: 7px; text-align: right; }
#gsearch .gs-cap { margin: 3px 0 2px; font-size: 7px; line-height: 8px; }
#gsearch .gs-jobs { width: 100%; }
#ui #gsearch .gs-jobs > .btn.on { color: #ffe39a; background: linear-gradient(#5a4a2c, #3a2f1c 55%, #2a2214); box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #e2bf72; }
/* the buttons of the page Mitglieder of the guild window (ui/guild.js) */
#guild-win .gd-apps { margin-top: 3px; }

/* phones: wider; the two parts as high as the screen leaves room, each scrolling by itself (the list, the chosen guild
   with its text), so that the buttons stay in sight; rows, pager and the x a finger high */
html.touch #ui #gsearch { width: min(400px, calc((100% - 8px) / var(--wz))) !important; }
html.touch #ui #gsearch .gs-cols { grid-template-columns: 170px minmax(0, 1fr); height: min(229px, max(70px, calc(100vh / (var(--px) * var(--wz)) - 96px))); }
/* (no head over the list: the tab says "Gilden", the room goes to the rows) */
html.touch #ui #gsearch .gs-list > .fp-h { display: none; }
html.touch #ui #gsearch .gs-row { --fp-row: var(--finger); }
html.touch #ui #gsearch .gs-pager { min-height: var(--finger); }
html.touch #ui #gsearch .gs-pager .btn { min-width: var(--finger); min-height: var(--finger); }
html.touch #ui #gsearch .gs-dbody { display: block; overflow-x: hidden; overflow-y: auto; }
html.touch #ui #gsearch .gs-text { min-height: 0; overflow: visible; }
html.touch #ui #gsearch .gs-apps .gs-rows { height: min(160px, max(44px, calc(100vh / (var(--px) * var(--wz)) - 112px))); }
html.touch #ui #gsearch .gs-x { width: var(--finger); height: var(--finger); margin-right: -4px; background: none; box-shadow: none; }
html.touch #ui #gsearch .gs-x::before, html.touch #ui #gsearch .gs-x::after { left: calc(50% - 4px); top: 50%; width: 8px; }
html.touch #ui #gsearch .gs-lvin { width: 44px; }
