.branch-grid .lesson-card {
  position: relative;
  overflow: hidden;
}

.branch-symbol {
  float: right;
  margin: -12px 0 8px 16px !important;
  color: rgba(142, 72, 32, 0.18);
  font-family: serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.branch-note {
  margin-top: 20px;
}

.branch-han {
  color: #e9b96f;
  font-family: serif;
  white-space: nowrap;
}

.branch-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.branch-facts div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.branch-facts dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.branch-facts dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.branch-relations {
  margin: 0;
  padding-left: 22px;
}

.branch-relations li + li {
  margin-top: 8px;
}

.relation-links {
  margin-top: 16px !important;
}

.branch-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branch-nav a,
.branch-nav strong {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
}

.branch-nav strong {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (max-width: 620px) {
  .branch-facts {
    grid-template-columns: 1fr;
  }
}
