/* Bloodline v16 — theme-specific hero underline and rules visibility. */

/* Home title: daylight blue, night crimson. Do not change other decoration. */
body.page-home[data-theme="day"] .hero h1::after {
  background: linear-gradient(90deg, #3784e6 0%, #76b5fa 49%, rgba(118, 181, 250, 0) 100%) !important;
}
body.page-home[data-theme="night"] .hero h1::after {
  background: linear-gradient(90deg, #d74760 0%, #a52640 49%, rgba(165, 38, 64, 0) 100%) !important;
}

/* Rules — readable terms and cool-blue daytime accents. Night colors are untouched. */
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article {
  background: #f3f8fd !important;
  border: 1px solid rgba(42, 103, 181, .17) !important;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article strong {
  color: #142d4c !important;
  font-weight: 800;
}
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article p {
  color: #455f7c !important;
}
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article:hover,
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article.rule-match {
  background: #e5f1ff !important;
  border-color: rgba(42, 112, 210, .46) !important;
  box-shadow: 0 8px 18px rgba(37, 109, 205, .10) !important;
}
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article:hover strong,
body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article.rule-match strong {
  color: #125dbc !important;
}

/* Circular chapter badges, list markers, category links and active search: blue in day. */
body.page-rules[data-theme="day"] .rule-block > span {
  color: #236dc9 !important;
  border-color: rgba(35, 109, 201, .44) !important;
  background: rgba(35, 109, 201, .075) !important;
}
body.page-rules[data-theme="day"] .rule-block li::marker {
  color: #236dc9 !important;
}
body.page-rules[data-theme="day"] .rules-index a {
  color: #3e5875 !important;
  transition: color .2s ease, background-color .2s ease;
}
body.page-rules[data-theme="day"] .rules-index a:hover,
body.page-rules[data-theme="day"] .rules-index a:focus-visible {
  color: #1159b8 !important;
  background: rgba(35, 109, 201, .11) !important;
}
body.page-rules[data-theme="day"] .rule-block li.rule-match {
  color: #133f74 !important;
  background: linear-gradient(90deg, rgba(35, 109, 201, .10), transparent) !important;
}
body.page-rules[data-theme="day"] .rule-block li[data-rule-item]:hover {
  background: rgba(35, 109, 201, .045);
}
body.page-rules[data-theme="day"] .rules-search input:focus {
  border-color: rgba(35, 109, 201, .68) !important;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, .14) !important;
}
body.page-rules[data-theme="day"] .rules-search-clear:hover {
  color: #155bb5 !important;
  background: rgba(35, 109, 201, .12) !important;
}
body.page-rules[data-theme="day"] .rules-search > span {
  color: #236dc9 !important;
}

@media (hover: none) {
  body.page-rules[data-theme="day"] .rule-glossary .rule-term-grid article:active {
    background: #e5f1ff !important;
    border-color: rgba(42, 112, 210, .46) !important;
  }
}
