/* ==========================================================================
   High-yield panel
   Surfaces board-review sections on the topic pages. Deliberately quieter
   than the page's own content: it is a pointer to further reading, not the
   thing the reader came for.
   ========================================================================== */

.high-yield-panel {
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid #dfe6ee;
  border-left: 3px solid #0b6ab8;
  border-radius: 10px;
  background: #f8fafc;
}

/* Empty until the JSON lands, so it must not reserve space before then. */
.high-yield-panel:not(.is-ready) { display: none; }

.hy-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hy-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #1d2a36;
}

.hy-head h3 i { color: #0b6ab8; margin-right: 0.35rem; }

.hy-all {
  font-size: 0.76rem;
  font-weight: 600;
  color: #0b6ab8;
  text-decoration: none;
  white-space: nowrap;
}

.hy-all:hover { text-decoration: underline; }
.hy-all i { font-size: 0.68rem; }

.hy-sub {
  margin: 0.3rem 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b7783;
}

.hy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hy-item a {
  display: block;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.hy-item a:hover {
  border-color: #0b6ab8;
  transform: translateX(2px);
}

.hy-item-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d2a36;
  line-height: 1.35;
}

.hy-badge {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b5a17;
  background: #fbf0dd;
  border: 1px solid #e6cfa8;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  vertical-align: 1px;
}

.hy-item-part {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a95a1;
  margin: 0.15rem 0 0.25rem;
}

.hy-item-ex {
  display: block;
  font-size: 0.79rem;
  line-height: 1.5;
  color: #55616d;
}

.hy-item.is-updated a { border-left: 3px solid #c0894a; }

/* ------------------------------------------------------------------ dark */

body.dark .high-yield-panel {
  background: #1e262e;
  border-color: #333d49;
  border-left-color: #2a86d8;
}

body.dark .hy-head h3 { color: #eef3f8; }
body.dark .hy-head h3 i,
body.dark .hy-all { color: #58a9ec; }
body.dark .hy-sub { color: #9aa6b2; }

body.dark .hy-item a { background: #232c36; border-color: #3a4552; }
body.dark .hy-item a:hover { border-color: #2a86d8; }
body.dark .hy-item-title { color: #e6ecf2; }
body.dark .hy-item-part { color: #8b96a2; }
body.dark .hy-item-ex { color: #b3bec9; }
body.dark .hy-badge { color: #f0c489; background: #3a2f1d; border-color: #6a5327; }
body.dark .hy-item.is-updated a { border-left-color: #b5762a; }

@media (max-width: 560px) {
  .high-yield-panel { padding: 0.85rem 0.9rem 1rem; }
  .hy-head { gap: 0.4rem; }
}
