/* Mundane Lo Shu Square Tracker */

.ls-hero {
  text-align: center;
  padding: 1.15rem 1rem 1.25rem;
  background: linear-gradient(180deg, #2c1230, #4a1f50);
  border: 1px solid #220e26;
  border-radius: 12px;
  margin: 0 0 1rem;
  color: #f3e8f5;
}

.ls-hero__label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cfa8d6;
}

.ls-hero__year {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.ls-hero__centre {
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
  color: #f3e8f5;
}

.ls-hero__centre strong {
  color: #f0c987;
}

.ls-hero__meta {
  margin: 0;
  font-size: 0.84rem;
  color: #d8bfdd;
}

.ls-grid-list {
  margin-bottom: 0.4rem;
}

.ls-orient {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted, #6b5e58);
}

.ls-square {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 1.1rem;
}

.ls-cell {
  border: 1px solid #e0d4c4;
  border-radius: 10px;
  padding: 0.55rem 0.4rem 0.6rem;
  text-align: center;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ls-cell--good {
  background: #f0f7ec;
  border-color: #c9dec0;
}

.ls-cell--bad {
  background: #fbeeec;
  border-color: #e8c8c2;
}

.ls-cell--centre {
  outline: 2px solid var(--crimson, #7a1834);
  outline-offset: -2px;
}

.ls-cell__dir {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #6b5e58);
  font-weight: 600;
}

.ls-cell__num {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  color: #2a2220;
}

.ls-cell--good .ls-cell__num {
  color: #2f6b2f;
}

.ls-cell--bad .ls-cell__num {
  color: #a3322a;
}

.ls-cell__name {
  font-size: 0.7rem;
  color: var(--color-muted, #6b5e58);
}

.ls-cell__nature {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4a0e1f;
}

.ls-card {
  border: 1px solid #e0d4c4;
  border-left: 4px solid #b9a98e;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.6rem;
  background: #fffdf8;
}

.ls-card--good {
  border-left-color: #3c7a3c;
}

.ls-card--bad {
  border-left-color: #a3322a;
}

.ls-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  justify-content: space-between;
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.ls-card__nature {
  font-weight: 700;
  font-size: 0.78rem;
  color: #4a0e1f;
}

.ls-card__row {
  margin: 0 0 0.3rem;
  font-size: 0.89rem;
  line-height: 1.55;
}

.ls-card__advice {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-muted, #6b5e58);
}

.ls-table td {
  vertical-align: top;
}

.ls-row--current {
  background: #f4ecf7;
}

.ls-row--current td {
  font-weight: 600;
}

@media (max-width: 480px) {
  .ls-cell__num {
    font-size: 1.4rem;
  }

  .ls-cell__name {
    font-size: 0.62rem;
  }
}
