/* Zodiac compatibility (compatibility.php); hero comes from blog.css */

:root {
  --cp-night: #1a0f2e;
  --cp-night-2: #2a1845;
  --cp-gold: #D4A574;
  --cp-gold-light: #E8C9A1;
  --cp-bronze: #9A6B3C;
  --cp-ink: #2D2A32;
  --cp-muted: #6B6670;
  --cp-line: #E8E4DF;
  --cp-high: #4E8A3E;
  --cp-mid: #C08A3E;
  --cp-low: #C0583F;
}

.cp-el-fire  { --cp-el: #E0703A; --cp-el-soft: rgba(224, 112, 58, 0.12); }
.cp-el-earth { --cp-el: #6E9A5B; --cp-el-soft: rgba(110, 154, 91, 0.13); }
.cp-el-air   { --cp-el: #7C8FD6; --cp-el-soft: rgba(124, 143, 214, 0.14); }
.cp-el-water { --cp-el: #3A9AB5; --cp-el-soft: rgba(58, 154, 181, 0.13); }

.cp-page { padding-bottom: 88px; }

.cp-layout::before, .cp-layout::after,
.cp-factors::before, .cp-factors::after,
.cp-lists::before, .cp-lists::after,
.cp-lovers::before, .cp-lovers::after,
.cp-best::before, .cp-best::after { content: none; display: none; }

/* Hero */
.cp-hero { padding: 44px 0 116px; text-align: center; }
.cp-hero--index { padding: 60px 0 128px; }
.cp-hero__inner { max-width: 860px; }
.cp-hero--index .bl-hero__subtitle { margin: 14px auto 0; }

.cp-crumbs { margin-bottom: 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cp-crumbs a { color: var(--cp-gold); text-decoration: none; }
.cp-crumbs a:hover { color: var(--cp-gold-light); }

.cp-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cp-duo__glyph {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', sans-serif;
  font-size: 2.2rem;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--cp-el), rgba(26, 15, 46, 0.6) 80%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 34px var(--cp-el-soft);
}

.cp-duo__amp { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; color: var(--cp-gold); }

.cp-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.cp-hero__name {
  margin: 10px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cp-gold-light);
}

.cp-hero__score {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 8px 20px 8px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.cp-hero__verdict { font-weight: 700; color: #fff; }

/* Score ring */
.cp-ring {
  --c: var(--cp-gold);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 64px;
  height: 64px;
  color: #fff;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
  border-radius: 50%;
}

.cp-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--cp-night);
  border-radius: 50%;
}

.cp-ring strong,
.cp-ring small { position: relative; }
.cp-ring strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; line-height: 1; }
.cp-ring small { font-size: 0.7rem; font-weight: 700; opacity: 0.7; }
.cp-ring--high { --c: #7DBE6A; }
.cp-ring--mid { --c: var(--cp-gold); }
.cp-ring--low { --c: #E3876F; }

/* Picker */
.cp-bar {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: -44px auto 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(26, 15, 46, 0.1);
}

.cp-bar--index { margin-top: -64px; padding: 26px; }

.cp-picker {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.cp-picker__field { flex: 1 1 0; min-width: 0; margin: 0; }

.cp-picker__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-bronze);
}

.cp-picker select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--cp-ink);
  background-color: #FBF8F4;
  border: 1px solid #DCD5CC;
  border-radius: 12px;
}

.cp-picker select:focus { outline: 2px solid var(--cp-gold); outline-offset: 1px; }

.cp-picker__amp {
  flex-shrink: 0;
  padding-bottom: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  color: var(--cp-gold);
}

.cp-btn,
button.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 50px;
  padding: 0 24px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.cp-btn--gold,
button.cp-btn--gold { color: var(--cp-night); background: var(--cp-gold); }

.cp-btn--gold:hover,
button.cp-btn--gold:hover {
  color: var(--cp-night);
  text-decoration: none;
  background: var(--cp-gold-light);
  box-shadow: 0 10px 26px rgba(212, 165, 116, 0.35);
  transform: none;
}

/* Pair layout */
.cp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 40px;
  margin-top: 48px;
}

.cp-article { min-width: 0; }

.cp-sec { margin-bottom: 40px; }

.cp-sec h2,
.cp-block__head h2,
.cp-cta h2 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cp-ink);
}

.cp-sec h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }

.cp-sec p {
  margin: 0 0 1em;
  font-size: 1.06rem;
  line-height: 1.8;
  color: #45404A;
}

.cp-sec--lead p:first-of-type {
  font-size: 1.18rem;
  color: var(--cp-ink);
}

.cp-sec__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cp-sec__head h2 { margin: 0; }

.cp-pill {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
}

.cp-pill--high { color: #2F5E24; background: rgba(78, 138, 62, 0.14); }
.cp-pill--mid { color: #7A5220; background: rgba(192, 138, 62, 0.17); }
.cp-pill--low { color: #8E3521; background: rgba(192, 88, 63, 0.14); }

/* Strengths / challenges */
.cp-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cp-list {
  padding: 24px 24px 18px;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
}

.cp-list h2 { font-size: 1.5rem; }

.cp-list ul { margin: 0; padding: 0; list-style: none; }

.cp-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
  line-height: 1.55;
  color: #45404A;
}

.cp-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}

.cp-list--plus li::before { content: '+'; color: #2F5E24; background: rgba(78, 138, 62, 0.16); }
.cp-list--minus li::before { content: '!'; color: #8E3521; background: rgba(192, 88, 63, 0.15); }

/* Factors */
.cp-factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.cp-factor {
  padding: 22px;
  background: linear-gradient(180deg, #FBF8F4, #fff);
  border: 1px solid var(--cp-line);
  border-radius: 16px;
}

.cp-factor__kicker,
.cp-kicker,
.cp-card__kicker,
.cp-advice__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cp-bronze);
}

.cp-factor h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cp-ink);
}

.cp-sec .cp-factor p:not(.cp-factor__kicker),
.cp-factor p:not(.cp-factor__kicker) { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--cp-muted); }

/* Advice */
.cp-advice {
  position: relative;
  margin-bottom: 40px;
  padding: 30px 32px;
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 165, 116, 0.22), transparent 55%),
    linear-gradient(150deg, var(--cp-night-2), var(--cp-night));
  border-radius: 20px;
}

.cp-advice .cp-advice__kicker { color: var(--cp-gold); }
.cp-advice p:not(.cp-advice__kicker) { margin: 0 0 0.9em; font-size: 1.05rem; line-height: 1.75; }
.cp-advice p:last-child { margin-bottom: 0; }

/* How each sign loves */
.cp-lovers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-lovers:has(> :only-child) { grid-template-columns: 1fr; }

.cp-lover {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-top: 3px solid var(--cp-el);
  border-radius: 16px;
}

.cp-lover h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-lover h3 span { font-family: 'Noto Sans Symbols', sans-serif; color: var(--cp-el); }
.cp-sec .cp-lover p { font-size: 0.95rem; line-height: 1.65; color: var(--cp-muted); }
.cp-lover a { font-size: 0.9rem; font-weight: 700; color: #7A5230; text-decoration: none; }

.cp-note {
  padding-top: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #8F8993;
  border-top: 1px solid var(--cp-line);
}

/* Sidebar */
.cp-side { position: sticky; top: 24px; display: grid; gap: 16px; }

.cp-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
}

.cp-card__kicker { margin-bottom: 12px; }

.cp-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  margin-bottom: 12px;
}

.cp-meter:last-child { margin-bottom: 0; }
.cp-meter__label { font-size: 0.9rem; color: var(--cp-ink); }
.cp-meter__value { font-size: 0.9rem; font-weight: 700; color: var(--cp-ink); }
.cp-meter__track { grid-column: 1 / -1; height: 7px; background: #F1ECE6; border-radius: 99px; overflow: hidden; }
.cp-meter__fill { display: block; height: 100%; border-radius: 99px; }
.cp-meter__fill--high { background: var(--cp-high); }
.cp-meter__fill--mid { background: var(--cp-mid); }
.cp-meter__fill--low { background: var(--cp-low); }

.cp-others { margin: 0; padding: 0; list-style: none; }
.cp-others li { margin: 0; }

.cp-others a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  color: var(--cp-ink);
  text-decoration: none;
  border-radius: 10px;
}

.cp-others a:hover { background: #F8F4EF; }
.cp-others a[aria-current] { background: #F5EADD; font-weight: 700; }
.cp-others__glyph { width: 20px; font-family: 'Noto Sans Symbols', sans-serif; color: var(--cp-bronze); text-align: center; }
.cp-others__name { flex: 1; font-size: 0.93rem; }
.cp-others__score { font-size: 0.85rem; font-weight: 700; }
.cp-others__score--high { color: var(--cp-high); }
.cp-others__score--mid { color: var(--cp-mid); }
.cp-others__score--low { color: var(--cp-low); }

/* Closing call to action */
.cp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  padding: 32px 40px;
  background: #FBF4EC;
  border: 1px solid #EFDCC7;
  border-radius: 20px;
}

.cp-cta h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 4px; }
.cp-cta p { margin: 0; color: var(--cp-muted); }

/* Index blocks */
.cp-block { margin-top: 80px; }

.cp-block__head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.cp-block__head h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.cp-block__head p:not(.cp-kicker) { margin: 0; color: var(--cp-muted); }

.cp-matrix-wrap {
  overflow-x: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 20px;
}

.cp-matrix { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 4px; }

.cp-matrix th {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cp-ink);
  white-space: nowrap;
}

.cp-matrix thead th { font-family: 'Noto Sans Symbols', sans-serif; font-size: 1.1rem; color: var(--cp-bronze); text-align: center; }
.cp-matrix tbody th { padding-right: 8px; text-align: left; }
.cp-matrix tbody th span { font-family: 'Noto Sans Symbols', sans-serif; color: var(--cp-bronze); }
.cp-matrix td { padding: 0; }

.cp-cell {
  display: grid;
  place-items: center;
  height: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.12s, box-shadow 0.12s;
}

.cp-cell:hover { text-decoration: none; transform: scale(1.08); box-shadow: 0 6px 16px rgba(26, 15, 46, 0.15); }
.cp-cell--high { color: #fff; background: var(--cp-high); }
.cp-cell--mid { color: #5A3C12; background: #EBCB98; }
.cp-cell--low { color: #8E3521; background: #F4D5CC; }

.cp-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 14px 0 0; font-size: 0.85rem; color: var(--cp-muted); }
.cp-dot { display: inline-block; width: 12px; height: 12px; margin-right: -8px; border-radius: 3px; vertical-align: -1px; }
.cp-dot--high { background: var(--cp-high); }
.cp-dot--mid { background: #EBCB98; }
.cp-dot--low { background: #F4D5CC; }

.cp-best {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-best__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 16px;
}

.cp-best__glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-family: 'Noto Sans Symbols', sans-serif;
  font-size: 1.3rem;
  color: var(--cp-el);
  background: var(--cp-el-soft);
  border-radius: 50%;
}

.cp-best__item h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-best__item p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.cp-best__item a {
  padding: 4px 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--cp-ink);
  text-decoration: none;
  background: #F6F2ED;
  border-radius: 999px;
}

.cp-best__item a:hover { background: #F0E3D3; }
.cp-best__item a span { color: var(--cp-high); }

.cp-more { margin: 22px 0 0; text-align: center; }
.cp-more a { font-weight: 700; color: #7A5230; text-decoration: none; }

/* Responsive */
@media (max-width: 1000px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cp-best { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cp-picker { flex-wrap: wrap; }
  .cp-picker__field { flex: 1 1 40%; }
  .cp-picker .cp-btn { flex: 1 1 100%; }
  .cp-factors,
  .cp-lists,
  .cp-lovers { grid-template-columns: 1fr; }
  .cp-cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}

@media (max-width: 600px) {
  .cp-hero { padding: 36px 0 100px; }
  .cp-duo__glyph { width: 60px; height: 60px; font-size: 1.7rem; }
  .cp-bar { padding: 14px; }
  .cp-bar--index { padding: 18px; }
  .cp-picker__amp { display: none; }
  .cp-picker__field { flex: 1 1 100%; }
  .cp-best { grid-template-columns: 1fr; }
  .cp-advice { padding: 24px 20px; }
  .cp-sec p { font-size: 1rem; }
  .cp-cta .cp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-cell, .cp-btn { transition: none; }
  .cp-cell:hover { transform: none; }
}
