/* Card keywords (markup comes from keywords.py): where-tags, bold effects, italic "when" phrases. */
.kw { font-weight: 800; cursor: help; }
.kw-where { font-size: .86em; letter-spacing: .03em; text-transform: uppercase; padding: 0 .38em; border-radius: 3px;
  color: #fff; background: #6b5a3a; white-space: nowrap; }
.kw-treasure { background: #9a6b0c; }
.kw-vessel   { background: #7a2a22; }
.kw-skirmish { background: #a3331b; }
.kw-harbor   { background: #1f6b73; }
.kw-home     { background: #3f5f2a; }
.kw-island   { background: #2a6a45; }
.kw-misc     { background: #5b4a73; }
.kw-eff { color: #5a1d12; }
.kw-when { font-style: italic; opacity: .85; }
/* inside dark panels */
.modtext .kw-eff, html.tbl body.gamepage .modtext .kw-eff { color: #ffd98a; }
/* Catalog glossary */
.cat-gloss { grid-column: 1 / -1; width: 100%; box-sizing: border-box; padding: 18px 24px; color: #2b2118; font-size: 1.05rem; line-height: 1.5; }
.cat-gloss h3 { margin: 18px 0 8px; font-size: 1.15rem; color: #7a2a22; }
.cat-gloss ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 22px; }
.cat-gloss li span { opacity: .9; }
.cat-gloss .kw { cursor: default; }
/* floating reminder */
#kwtip { position: fixed; z-index: 99999; max-width: 280px; padding: 8px 11px; border-radius: 6px; font-size: 14px; line-height: 1.35;
  background: #1c1713; color: #f1e7cc; border: 1px solid #b8893a; box-shadow: 0 6px 18px rgba(0,0,0,.5); pointer-events: none; }
