/* Azurine (the game currency) on member cards, the warn meter, and the author card title and join line.
 * Kept out of forum.css and forum2.css (another job holds them). lib/layout.php azurine_html, warn_meter, title_html. */

/* the author card: one title, then Joined small and muted with a little air */
.pa-txt .pa-joined { margin-top: -2px; font-size: 10.5px; line-height: 1.3; color: var(--muted); letter-spacing: .02em; }
.pa-txt .pa-role { display: none; }

/* the Azurine line: the game's gem and the number, centred like the character line */
.az { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 12.5px/1.2 var(--ui); color: var(--gold); font-variant-numeric: tabular-nums; }
.az-val { position: relative; display: inline-flex; align-items: center; gap: 5px; cursor: default; border-radius: 3px; }
.az-ic { width: 16px; height: 16px; flex: none; display: block; image-rendering: auto; }
.az-n { letter-spacing: .02em; }
.az-locked .az-val { color: rgba(214, 112, 100, .78); }
.az-locked .az-ic { opacity: .45; filter: saturate(.4); }
.az-lock { width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.az-pend { font-size: 10.5px; font-weight: 500; color: var(--muted); font-style: italic; }
.az-ro { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.kv .az { justify-content: flex-start; }
.az-row { justify-content: flex-start; margin-top: 3px; font-size: 12px; }
.dl-side .az-row, .pa .az { justify-content: center; }

/* the hover tip, styled like the reaction list */
[data-az-tip]::after { content: attr(data-az-tip); position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); z-index: 30;
  display: none; padding: 5px 10px; border: 1px solid rgba(201, 164, 90, .45); border-radius: 3px; background: #17130e; box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
  font: 500 12.5px/1.4 var(--ui); color: var(--text); white-space: nowrap; pointer-events: none; }
[data-az-tip]:hover::after, [data-az-tip]:focus-visible::after { display: block; }

/* the admin pencil and its small form (Admins and Ancients only) */
.az-edit { position: static; display: inline-block; }
.az-edit > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; color: var(--gold-dim); cursor: pointer; }
.az-edit > summary::-webkit-details-marker { display: none; }
.az-edit > summary:hover, .az-edit[open] > summary { color: var(--gold2); background: rgba(227, 194, 122, .1); }
.az-form { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 40; display: grid; gap: 6px; width: 200px; padding: 10px;
  border: 1px solid rgba(201, 164, 90, .45); border-radius: 3px; background: #17130e; box-shadow: 0 10px 24px rgba(0, 0, 0, .6); font-weight: 400; }
.az-form select, .az-form input { width: 100%; box-sizing: border-box; font-size: 13px; padding: 5px 8px; }
.kv .az-form { left: 0; transform: none; }

/* the warn level: a thin bar 0 to 100, amber to red as it fills, nothing at 0 points */
.warn-m { position: relative; display: grid; gap: 3px; width: 100%; max-width: 132px; margin: 0 auto; justify-items: center; cursor: default; }
.warn-l { font: 600 10.5px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--wc); opacity: .9; }
.warn-bar { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.warn-bar > i { display: block; width: var(--wf); height: 100%; border-radius: 2px; background: linear-gradient(90deg, #d9a23a, var(--wc)); }
.pr-side .warn-m { margin: 12px 0 2px; max-width: none; justify-items: start; }

/* the role's symbol right after the name (lib/layout.php role_mark) */
.pa-name { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pa-txt .pa-rank .rank-pin { display: none; }
.pa-name { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* the React picker: a clean thin gold frame (the stretched worn border broke up on such a small box) */
.react-pick { background: linear-gradient(180deg, #1f1912, #15110c) !important; border: 1px solid rgba(201, 164, 90, .55) !important; border-radius: 3px !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .4) !important; }
.react-pick::before, .react-pick::after { display: none !important; }
/* on the team cards the role symbol sits beside the name, not on its own line */
.team-who > .uname, .team-who > a.uname { display: inline-flex; align-items: center; gap: 5px; }
/* Support team: each role a section (its colour, corner pieces, description), each member their own roomy card */
.team-sections { display: grid; gap: 28px; }
.team-sections .team-role { padding: 26px 30px 30px; }
.team-sections .team-role h2 { padding-left: 14px; }
.team-sections .team-role > p { padding-left: 14px; margin-bottom: 18px; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; padding-left: 14px; }
.team-card { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 16px 18px; text-align: center; border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 8%, #1b1611), #14100c); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); }
.team-card .tc-name { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.team-card .team-char { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.team-card .team-msg { margin-top: 6px; }
@media (max-width: 760px) { .team-sections .team-role { padding: 20px 16px; } .team-cards { padding-left: 0; } }
.uname-wrap { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: middle; }
/* Support team: no big box round each role, just its heading and line; every member card wears the role's accent frame
   (corner pieces, coloured edge and wash) on its own */
.team-sections .team-role { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.team-sections .team-role::before { display: none !important; }
.team-sections .team-role h2, .team-sections .team-role > p { padding-left: 0; }
.team-cards { padding-left: 0; grid-template-columns: repeat(auto-fill, minmax(210px, 240px)); gap: 22px; }
.team-card { position: relative; border: 0 !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent), inset 3px 0 0 color-mix(in srgb, var(--rc) 70%, transparent), 0 0 18px color-mix(in srgb, var(--rc) 10%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, #1b1611), #14100c 75%); }
.team-card::before { content: ""; position: absolute; top: -3px; bottom: -3px; left: -3px; width: 52px; pointer-events: none;
  background: color-mix(in srgb, var(--rc) 78%, #fff3d0);
  -webkit-mask: url("orn-staff-tl.svg?v=1") left top / 52px 52px no-repeat, url("orn-staff-bl.svg?v=1") left bottom / 52px 52px no-repeat;
  mask: url("orn-staff-tl.svg?v=1") left top / 52px 52px no-repeat, url("orn-staff-bl.svg?v=1") left bottom / 52px 52px no-repeat; opacity: .9; }

/* role icons (lib/layout.php role_mark): one vector per Conclave role, the same 16 px box everywhere, engraved gold
   shading over the role colour, centred on the name's line */
.role-mark { display: inline-block !important; flex: none !important; width: 16px !important; height: 16px !important; margin: 0 0 0 5px !important;
  vertical-align: middle !important; transform: none !important; border-radius: 0 !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rmc) 55%, #fff) 0%, var(--rmc) 48%, color-mix(in srgb, var(--rmc) 70%, #000) 100%) !important;
  -webkit-mask: var(--rmi) center / contain no-repeat !important; mask: var(--rmi) center / contain no-repeat !important;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)); }
.uname-wrap .role-mark, .pa-name .role-mark, .team-who .role-mark, .tc-name .role-mark { margin: 0 !important; }
/* flex centring puts the icon on the line box middle, which sits above the name x-height middle: drop it by .11em so the ink centres on the lowercase letters (measured within 1 px) */
.role-mark { position: relative; top: .11em; }
.uname-wrap .role-mark { top: .2em !important; }

/* the forum bot's tag after its name (lib/layout.php role_mark), Discord's bot tag in its Server Bot bronze, the
   same 16 px height as the role icons */
.bot-tag { display: inline-flex; align-items: center; flex: none; height: 16px; padding: 0 4px; margin-left: 5px; border-radius: 3px; background: #c27c0e;
  color: #fff8ec; font: 700 10px/1 var(--ui, system-ui), sans-serif; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
  position: relative; top: .2em; text-shadow: none; -webkit-text-fill-color: #fff8ec; }
.uname-wrap .bot-tag, .pa-name .bot-tag, .tc-name .bot-tag { margin: 0; }
.uname-wrap .role-mark { top: .11em !important; }   /* measured: the icon centre level with the middle of the lowercase letters */

/* the Azurine pencil form: clear fields with visible edges and readable placeholders */
.az-form { width: 220px; gap: 8px; padding: 12px; }
.az-form input { border: 1px solid rgba(201, 164, 90, .35) !important; background: #0f0c08 !important; color: var(--text); }
.az-form input::placeholder { color: rgba(236, 226, 207, .55); }
.az-form input:focus { border-color: rgba(227, 194, 122, .7) !important; outline: none; }
/* the Moderator gavel faces the other way */
.rm-moderator { transform: scaleX(-1); }
/* the Bot tag: a small polished gold bar with BOT etched into it, in the name's own font */
.bot-tag { height: 15px; padding: 0 6px; border-radius: 2px; font: inherit; font-weight: 700; font-size: .72em; letter-spacing: .12em;
  background: linear-gradient(180deg, #fbe7b0 0%, #e6bd68 38%, #b9862f 52%, #d6a752 78%, #f0cf86 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, .75), inset 0 -1px 0 rgba(90, 55, 12, .55), 0 0 0 1px #6e4a17, 0 1px 2px rgba(0, 0, 0, .6);
  color: #4a2f0b; -webkit-text-fill-color: #4a2f0b; text-shadow: 0 1px 0 rgba(255, 238, 190, .7), 0 -1px 0 rgba(60, 35, 5, .45); }
.bot-tag { height: 13px; padding: 0 4px; font-size: .62em; letter-spacing: .1em; top: .12em; }   /* the same size as the role icons */
/* Newest member: the label and the name on one centred line, label quiet like Threads / Posts / Members */
.index-side p.small:has(> .uname-wrap) { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 400; }
.index-side p.small > .uname-wrap { display: inline-flex; align-items: center; gap: 5px; }
.index-side p.small > .uname-wrap .role-mark { top: 0 !important; }
/* profile side box: the Azurine value sits flush right like the other values, the edit pencil goes in front of it */
.kv dd .az { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.kv dd .az .az-edit { order: -1; }
.kv dd .az-ro { text-align: right; }
