/* Rashi Compatibility Calculator */

body.page-rashi-compat .rc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

body.page-rashi-compat .rc-form-card {
  overflow: visible;
}

body.page-rashi-compat .rc-form-card__head {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--maroon, #7a1834);
  letter-spacing: 0.02em;
}

body.page-rashi-compat .rc-dont-know {
  margin: 1rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hero */
body.page-rashi-compat .rc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.25rem;
  margin: 0 0 1.25rem;
  border: 2px solid var(--rc-tint, var(--cream-border));
  border-radius: 14px;
  background: #fff;
}

body.page-rashi-compat .rc-hero--good {
  background: linear-gradient(180deg, rgba(31, 122, 77, 0.08) 0%, rgba(31, 122, 77, 0.16) 100%);
}

body.page-rashi-compat .rc-hero--ok {
  background: linear-gradient(180deg, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0.18) 100%);
}

body.page-rashi-compat .rc-hero--weak {
  background: linear-gradient(180deg, rgba(179, 32, 59, 0.08) 0%, rgba(179, 32, 59, 0.16) 100%);
}

body.page-rashi-compat .rc-hero__pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.page-rashi-compat .rc-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 84px;
}

body.page-rashi-compat .rc-sign__glyph {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--rc-tint, var(--cream-border));
  border-radius: 50%;
  overflow: hidden;
}

body.page-rashi-compat .rc-sign__glyph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

body.page-rashi-compat .rc-sign__person {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

body.page-rashi-compat .rc-sign__name {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--maroon, #7a1834);
}

body.page-rashi-compat .rc-sign__en {
  font-size: 0.8rem;
  color: var(--muted);
}

body.page-rashi-compat .rc-hero__heart {
  font-size: 1.5rem;
  color: var(--rc-tint, #b3203b);
}

body.page-rashi-compat .rc-hero__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 160px;
}

body.page-rashi-compat .rc-score-ring {
  --rc-pct: 0;
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    conic-gradient(var(--rc-tint, #7a1834) calc(var(--rc-pct) * 1%), rgba(0, 0, 0, 0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-rashi-compat .rc-score-ring::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
}

body.page-rashi-compat .rc-score-ring__num {
  position: relative;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--rc-tint, #7a1834);
  line-height: 1;
}

body.page-rashi-compat .rc-score-ring__num small {
  font-size: 0.9rem;
}

body.page-rashi-compat .rc-hero__verdict {
  margin: 0.55rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rc-tint, var(--maroon, #7a1834));
}

body.page-rashi-compat .rc-hero__sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Person cards */
body.page-rashi-compat .rc-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.25rem;
}

body.page-rashi-compat .rc-person {
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  background: var(--cream-card);
  overflow: hidden;
}

body.page-rashi-compat .rc-person__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--cream-border);
}

body.page-rashi-compat .rc-person__glyph {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-rashi-compat .rc-person__glyph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.page-rashi-compat .rc-person__title {
  font-weight: 700;
  color: var(--ink);
}

body.page-rashi-compat .rc-person__rows {
  margin: 0;
  padding: 0.4rem 0.85rem 0.6rem;
}

body.page-rashi-compat .rc-person__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--cream-border);
}

body.page-rashi-compat .rc-person__row:last-child {
  border-bottom: 0;
}

body.page-rashi-compat .rc-person__row dt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

body.page-rashi-compat .rc-person__row dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* Factor breakdown */
body.page-rashi-compat .rc-factors {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

body.page-rashi-compat .rc-factor {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cream-border);
  border-left: 4px solid var(--muted);
  border-radius: 10px;
  background: #fff;
}

body.page-rashi-compat .rc-factor--good { border-left-color: #1f7a4d; }
body.page-rashi-compat .rc-factor--ok { border-left-color: #b8860b; }
body.page-rashi-compat .rc-factor--weak { border-left-color: #b3203b; }

body.page-rashi-compat .rc-factor__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

body.page-rashi-compat .rc-factor__label {
  font-weight: 700;
  color: var(--ink);
}

body.page-rashi-compat .rc-factor__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon, #7a1834);
  text-align: right;
}

body.page-rashi-compat .rc-factor__sub {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

body.page-rashi-compat .rc-factor__bar {
  height: 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

body.page-rashi-compat .rc-factor__fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--muted);
}

body.page-rashi-compat .rc-factor--good .rc-factor__fill { background: #1f7a4d; }
body.page-rashi-compat .rc-factor--ok .rc-factor__fill { background: #b8860b; }
body.page-rashi-compat .rc-factor--weak .rc-factor__fill { background: #b3203b; }

body.page-rashi-compat .rc-factor__note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Strengths & challenges */
body.page-rashi-compat .rc-pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}

body.page-rashi-compat .rc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

body.page-rashi-compat .rc-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

body.page-rashi-compat .rc-list--good li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f7a4d;
  font-weight: 700;
}

body.page-rashi-compat .rc-list--watch li::before {
  content: "\26A0";
  position: absolute;
  left: 0;
  top: 0;
  color: #b8860b;
}

body.page-rashi-compat .rc-grid {
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  body.page-rashi-compat .rc-hero {
    flex-direction: column;
    text-align: center;
  }
}
