/*
 * V295: official-note topic-card contrast and semantic heading wrapping.
 *
 * Older reading-shell layers can classify nested articles as light reading
 * surfaces. The card surface and both text levels therefore own one final,
 * explicit colour contract instead of relying on inherited dark-theme ink.
 */

body.app-shell.page-official-note #main-content
  .official-note-section .official-note-topic-title {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  column-gap: .18em !important;
  row-gap: .06em !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 22px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: clamp(1.7rem, 3vw, 2.5rem) !important;
  line-height: 1.3 !important;
  text-wrap: wrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

body.app-shell.page-official-note #main-content
  .official-note-section .official-note-topic-title > span {
  display: inline-block !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  opacity: 1 !important;
}

body.app-shell.page-official-note #main-content
  .official-note-topic-grid > article {
  min-width: 0 !important;
  padding: 22px !important;
  border: 2px solid #8bc8ed !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #f8fbff 0%, #eaf3ff 100%) !important;
  background-color: #f8fbff !important;
  color: #102b49 !important;
  -webkit-text-fill-color: #102b49 !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  isolation: isolate !important;
  box-shadow: 0 12px 28px rgba(0, 8, 28, .18) !important;
}

body.app-shell.page-official-note #main-content
  .official-note-topic-grid > article > strong {
  display: block !important;
  color: #0b2b50 !important;
  -webkit-text-fill-color: #0b2b50 !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

body.app-shell.page-official-note #main-content
  .official-note-topic-grid > article > p {
  margin: 9px 0 0 !important;
  color: #294c6d !important;
  -webkit-text-fill-color: #294c6d !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

@media (max-width: 760px) {
  body.app-shell.page-official-note #main-content
    .official-note-section .official-note-topic-title {
    column-gap: .14em !important;
    font-size: clamp(1.65rem, 7.4vw, 2.05rem) !important;
  }

  body.app-shell.page-official-note #main-content
    .official-note-topic-grid > article {
    padding: 20px !important;
  }
}

@media (forced-colors: active) {
  body.app-shell.page-official-note #main-content
    .official-note-topic-grid > article {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    forced-color-adjust: auto !important;
  }

  body.app-shell.page-official-note #main-content
    .official-note-topic-grid > article > :is(strong, p) {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
  }
}
