/* Love & Friendship Compatibility — scoped styles (lf-) */

.lf-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.lf-form-card__head {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: #7a1834;
}

.lf-bond-field {
  margin-top: 1rem;
  max-width: 320px;
}

.lf-dont-know {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #6b5e58;
}

.lf-dont-know a {
  color: #b3123b;
  font-weight: 600;
  text-decoration: none;
}

/* Hero */
.lf-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #7a1834, #b3123b);
}

.lf-hero--good {
  background: linear-gradient(135deg, #1f7a4d, #2fae6b);
}

.lf-hero--ok {
  background: linear-gradient(135deg, #b06a14, #d99a2b);
}

.lf-hero--weak {
  background: linear-gradient(135deg, #7a1834, #b3123b);
}

.lf-hero__score {
  flex: none;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
}

.lf-hero__score span {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 0.1rem;
}

.lf-hero__verdict {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.lf-hero__pair {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.lf-hero__sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.lf-headline {
  margin: 0 0 1.2rem;
  padding: 0.8rem 0.95rem;
  border-left: 3px solid #c9a227;
  background: #fbf4ef;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  color: #3a2c26;
}

/* People */
.lf-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.2rem;
}

.lf-person {
  padding: 0.7rem 0.85rem;
  border: 1px solid #ece1d2;
  border-radius: 10px;
  background: #fff;
}

.lf-person__name {
  margin: 0;
  font-weight: 700;
  color: #4a0e1f;
}

.lf-person__nak {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.95rem;
  color: #2f241f;
}

.lf-person__nak span {
  color: #8a6b52;
}

.lf-person__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lf-person__tags li {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f3ebe0;
  color: #6b4a2f;
}

/* Theme meters */
.lf-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.4rem;
}

.lf-theme {
  padding: 0.8rem 0.9rem;
  border: 1px solid #ece1d2;
  border-radius: 12px;
  background: #fbf5ee;
}

.lf-theme__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.lf-theme__label {
  font-weight: 700;
  color: #4a0e1f;
}

.lf-theme__pct {
  font-size: 1.15rem;
  font-weight: 800;
  color: #7a1834;
}

.lf-theme__pts {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: #6b5e58;
}

/* Meters */
.lf-meter {
  height: 10px;
  border-radius: 999px;
  background: #ece1d2;
  overflow: hidden;
}

.lf-meter--sm {
  height: 7px;
}

.lf-meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #b3123b;
}

.lf-meter__fill--good {
  background: #2fae6b;
}

.lf-meter__fill--ok {
  background: #d99a2b;
}

.lf-meter__fill--weak {
  background: #c0392b;
}

/* Factors */
.lf-subhead {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7a1834;
  border-bottom: 2px solid #eadfce;
  padding-bottom: 0.35rem;
  margin: 0 0 0.9rem;
}

.lf-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.3rem;
}

.lf-factor {
  padding: 0.75rem 0.85rem;
  border: 1px solid #ece1d2;
  border-left: 4px solid #b3123b;
  border-radius: 10px;
  background: #fff;
}

.lf-factor--good {
  border-left-color: #2fae6b;
}

.lf-factor--ok {
  border-left-color: #d99a2b;
}

.lf-factor--weak {
  border-left-color: #c0392b;
}

.lf-factor__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.lf-factor__label {
  font-weight: 700;
  color: #4a0e1f;
  font-size: 0.95rem;
}

.lf-factor__pts {
  font-weight: 700;
  color: #7a1834;
  white-space: nowrap;
}

.lf-factor__status {
  margin: 0.45rem 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5d4c42;
}

.lf-factor__note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4d3d34;
}

/* Cautions */
.lf-cautions {
  border: 1px solid #f0d9a8;
  background: #fdf7ea;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0 0 1.2rem;
}

.lf-cautions__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #8a5a00;
}

.lf-cautions ul {
  margin: 0;
  padding-left: 1.1rem;
}

.lf-cautions li {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5d4c42;
}

.lf-disclaimer {
  margin: 0.5rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px dashed #e0d4c4;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #6b5e58;
}

@media (max-width: 480px) {
  .lf-hero__score {
    font-size: 2.2rem;
  }
}
