/* The plugin tag (plugin-tag.js): a plugin's name as a small tag in the plugin's colour, with its
   icon. The content pages and the server list load this one sheet (moved here from
   lab/content/content.css on 2026-11-19, unchanged; w69, Dali: the list uses "the same ones used
   for the content pages").
   MagmaGuy (11-12): "give the tags a color pallete that better fits our 'burnt glow'". Each
   plugin keeps its hue family (Dali named red, yellow, green and cyan), pulled into the site's
   world: warmer, deeper, less saturated. One line per plugin: the deep burnt fill, the words on
   it (-ink) and the hue as light on the dark page (-lit). White on every fill is 4.6 to 1 or
   more. The lit tone on the glow look's own fill is 5.6 to 1 or more, 5 to 1 under the pointer.
   The look is the glow: a near-black fill tinted with the hue, a 1 px border, the words and
   the icon in the lit tone, and a soft glow of it round the tag, so the colour reads as light,
   not paint. A second look, the deep fill with white words, was tried beside it on 11-12 and
   dropped. The deep fill and its -ink tone stay in the palette; no rule uses them today.
   A page that shows the tag smaller says so in its own sheet (content.css, .ct-info__uses). */
:root {
  --plugin-elitemobs: #bd2f27;           --plugin-elitemobs-ink: #fff;           --plugin-elitemobs-lit: #f26a6c;             /* ember red */
  --plugin-freeminecraftmodels: #a06a08; --plugin-freeminecraftmodels-ink: #fff; --plugin-freeminecraftmodels-lit: #e9ae45;   /* amber */
  --plugin-betterstructures: #587a2c;    --plugin-betterstructures-ink: #fff;    --plugin-betterstructures-lit: #a5bf63;      /* moss */
  --plugin-eternaltd: #1d7b76;           --plugin-eternaltd-ink: #fff;           --plugin-eternaltd-lit: #58bdb4;             /* deep teal */
  --plugin-resurrectionchest: #81508c;   --plugin-resurrectionchest-ink: #fff;   --plugin-resurrectionchest-lit: #d09fe0;     /* dusty plum */
  --plugin-cannonrtp: #4766a8;           --plugin-cannonrtp-ink: #fff;           --plugin-cannonrtp-lit: #7f9bdc;             /* slate blue */
  --plugin-resourcepackmanager: #70675e; --plugin-resourcepackmanager-ink: #fff; --plugin-resourcepackmanager-lit: #cdc3b6;   /* warm ash */
  --plugin-betterfood: #a4574b;          --plugin-betterfood-ink: #fff;          --plugin-betterfood-lit: #e2a08c;            /* copper rose */
  /* Not one of ours: LibsDisguises, which some packs use for their bosses' looks. */
  --plugin-libsdisguises: #5d52a3;       --plugin-libsdisguises-ink: #fff;       --plugin-libsdisguises-lit: #a9a0ee;         /* dusk violet */
}
/* A plugin with no colour yet: grey. */
.ct-ptag {
  --ptag: #4d5160; --ptag-ink: #fff; --ptag-lit: #c9ccd6;
  align-items: center; border: 1px solid; border-radius: 4px; display: inline-flex; font: 700 13px/1 var(--font); gap: 5px; margin-block: 2px; padding: 3px 8px 3px 6px;
  text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; vertical-align: middle; white-space: nowrap;
}
.ct-ptag__icon { flex: none; height: 16px; width: 16px; }
.ct-ptag[data-plugin="elitemobs"] { --ptag: var(--plugin-elitemobs); --ptag-ink: var(--plugin-elitemobs-ink); --ptag-lit: var(--plugin-elitemobs-lit); }
.ct-ptag[data-plugin="freeminecraftmodels"] { --ptag: var(--plugin-freeminecraftmodels); --ptag-ink: var(--plugin-freeminecraftmodels-ink); --ptag-lit: var(--plugin-freeminecraftmodels-lit); }
.ct-ptag[data-plugin="betterstructures"] { --ptag: var(--plugin-betterstructures); --ptag-ink: var(--plugin-betterstructures-ink); --ptag-lit: var(--plugin-betterstructures-lit); }
.ct-ptag[data-plugin="eternaltd"] { --ptag: var(--plugin-eternaltd); --ptag-ink: var(--plugin-eternaltd-ink); --ptag-lit: var(--plugin-eternaltd-lit); }
.ct-ptag[data-plugin="resurrectionchest"] { --ptag: var(--plugin-resurrectionchest); --ptag-ink: var(--plugin-resurrectionchest-ink); --ptag-lit: var(--plugin-resurrectionchest-lit); }
.ct-ptag[data-plugin="cannonrtp"] { --ptag: var(--plugin-cannonrtp); --ptag-ink: var(--plugin-cannonrtp-ink); --ptag-lit: var(--plugin-cannonrtp-lit); }
.ct-ptag[data-plugin="resourcepackmanager"] { --ptag: var(--plugin-resourcepackmanager); --ptag-ink: var(--plugin-resourcepackmanager-ink); --ptag-lit: var(--plugin-resourcepackmanager-lit); }
.ct-ptag[data-plugin="betterfood"] { --ptag: var(--plugin-betterfood); --ptag-ink: var(--plugin-betterfood-ink); --ptag-lit: var(--plugin-betterfood-lit); }
.ct-ptag[data-plugin="libsdisguises"] { --ptag: var(--plugin-libsdisguises); --ptag-ink: var(--plugin-libsdisguises-ink); --ptag-lit: var(--plugin-libsdisguises-lit); }
/* Glow. The first value of each pair is for a browser without color-mix(). Under the pointer
   the tag burns brighter: more of the hue in the fill, the full border, a wider glow. */
.ct-ptag--glow {
  background: #0e1015; background: color-mix(in srgb, var(--ptag-lit) 13%, #0b0c10);
  border-color: var(--ptag-lit); border-color: color-mix(in srgb, var(--ptag-lit) 60%, transparent);
  box-shadow: 0 0 10px -1px color-mix(in srgb, var(--ptag-lit) 40%, transparent), inset 0 0 6px color-mix(in srgb, var(--ptag-lit) 10%, transparent);
  color: var(--ptag-lit);
}
a.ct-ptag--glow:hover {
  background: color-mix(in srgb, var(--ptag-lit) 20%, #0b0c10); border-color: var(--ptag-lit);
  box-shadow: 0 0 14px 0 color-mix(in srgb, var(--ptag-lit) 55%, transparent), inset 0 0 8px color-mix(in srgb, var(--ptag-lit) 16%, transparent);
}
a.ct-ptag:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
