/* Tips from the Mess
   Every tip is structurally equal. Rank is expressed only through the
   accent colour used on the card edge and officer name. */

body[data-route="general"] .tab-panel[data-panel="notices"] .mess-board {
  align-items: stretch;
}

body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip {
  --tip-rank: 139, 181, 211;
  --tip-rank-colour: #8bb5d3;
  height: 100%;
  border-color: rgba(var(--tip-rank), .34);
  box-shadow: inset 0 3px 0 rgba(var(--tip-rank), .28);
}

body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip footer strong {
  color: var(--tip-rank-colour);
}

/* Junior officer */
body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip[data-rank="sub-lieutenant"] {
  --tip-rank: 110, 159, 199;
  --tip-rank-colour: #7fb7df;
}

/* Lieutenant */
body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip[data-rank="lieutenant"] {
  --tip-rank: 112, 232, 255;
  --tip-rank-colour: #70e8ff;
}

/* Command officer */
body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip[data-rank="commander"] {
  --tip-rank: 167, 124, 209;
  --tip-rank-colour: #b58bdf;
}

/* Senior fleet command */
body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip[data-rank="commodore"] {
  --tip-rank: 238, 179, 66;
  --tip-rank-colour: #eeb342;
}

/* Admiralty */
body[data-route="general"] .tab-panel[data-panel="notices"] .mess-tip[data-rank="admiral"] {
  --tip-rank: 255, 217, 110;
  --tip-rank-colour: #ffd96e;
}

/* Defensive: the refresh script removes this, but keep it hidden if old
   markup briefly appears during a rerender. */
body[data-route="general"] .tab-panel[data-panel="notices"] .mess-feature-grid {
  display: none !important;
}
