.ynm-zodiac-style {
  --ynm-zis-bg: #fffdf8;
  --ynm-zis-panel: #ffffff;
  --ynm-zis-ink: #111827;
  --ynm-zis-muted: #667085;
  --ynm-zis-line: #e3ded4;
  --ynm-zis-green: #1b9c85;
  --ynm-zis-green-dark: #147a68;
  --ynm-zis-rust: #b85f38;
  --ynm-zis-charcoal: #18212f;
  --ynm-zis-radius: 8px;
  max-width: 1120px; 
  margin: 24px auto; 
  padding: 0 14px; 
  color: var(--ynm-zis-ink);
  font-family: inherit;
}

.ynm-zodiac-style [hidden] {
  display: none !important;
}

.ynm-zodiac-style *, 
.ynm-zodiac-style *::before,
.ynm-zodiac-style *::after {
  box-sizing: border-box;
}

.ynm-zis__shell {
  border: 1px solid var(--ynm-zis-line);
  border-radius: var(--ynm-zis-radius);
  background: var(--ynm-zis-bg);
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.07);
  padding: 22px;
  overflow: hidden;
}

.ynm-zis__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ynm-zis-line);
}

.ynm-zis__eyebrow,
.ynm-zis__kicker {
  margin: 0 0 7px;
  color: var(--ynm-zis-green-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ynm-zis__title,
.ynm-zis__subtitle,
.ynm-zis__detail h3 {
  margin: 0;
  color: var(--ynm-zis-charcoal);
  font-family: "Red Rose", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.ynm-zis__title {
  font-size: 34px;
  line-height: 1.12;
}

.ynm-zis__desc {
  margin: 0;
  color: var(--ynm-zis-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ynm-zis__signs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ynm-zodiac-style button {
  font: inherit;
  letter-spacing: 0;
}

.ynm-zis__sign {
  min-height: 92px;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: left;
  border: 1px solid var(--ynm-zis-line);
  border-radius: var(--ynm-zis-radius);
  background: #fff;
  color: var(--ynm-zis-ink);
  padding: 13px 14px;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ynm-zis__sign:hover,
.ynm-zis__sign:focus-visible {
  border-color: rgba(27, 156, 133, 0.55);
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.08);
  outline: none;
}

.ynm-zis__sign:active {
  transform: translateY(1px);
}

.ynm-zis__sign.is-active {
  border-color: var(--ynm-zis-green);
  background: #f0fbf7;
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.12);
}

.ynm-zis__sign span {
  display: block;
  color: var(--ynm-zis-charcoal);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.ynm-zis__sign small {
  display: block;
  color: var(--ynm-zis-muted);
  font-size: 12px;
  line-height: 1.25;
}

.ynm-zis__sign b {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  border: 1px solid rgba(184, 95, 56, 0.28);
  border-radius: 999px;
  background: rgba(184, 95, 56, 0.08);
  color: #7c3f24;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.1;
}

.ynm-zis__results {
  margin-top: 22px;
}

.ynm-zis__results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ynm-zis__subtitle {
  font-size: 26px;
  line-height: 1.2;
}

.ynm-zis__reset,
.ynm-zis__more {
  border: 1px solid var(--ynm-zis-line);
  border-radius: var(--ynm-zis-radius);
  background: #fff;
  color: var(--ynm-zis-charcoal);
  cursor: pointer;
  box-shadow: none;
}

.ynm-zis__reset {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ynm-zis__reset:hover,
.ynm-zis__reset:focus-visible {
  border-color: var(--ynm-zis-green);
  outline: none;
}

.ynm-zis__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ynm-zis__card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ynm-zis-line);
  border-radius: var(--ynm-zis-radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.06);
}

.ynm-zis__card-image,
.ynm-zis__detail-image {
  background: #f3f1ec;
  overflow: hidden;
}

.ynm-zis__card-image {
  aspect-ratio: 4 / 3;
}

.ynm-zis__card-image img,
.ynm-zis__detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ynm-zis__card-image--empty,
.ynm-zis__detail-image--empty {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 18px;
  color: var(--ynm-zis-muted);
  text-align: center;
}

.ynm-zis__card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.ynm-zis__score span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(27, 156, 133, 0.1);
  color: var(--ynm-zis-green-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.ynm-zis__card h4 {
  margin: 0;
  color: var(--ynm-zis-charcoal);
  font-size: 17px;
  line-height: 1.22;
  font-weight: 800;
}

.ynm-zis__card p {
  min-height: 76px;
  margin: 0;
  color: var(--ynm-zis-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ynm-zis__mini-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 52px;
}

.ynm-zis__mini-traits span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(24, 33, 47, 0.1);
  border-radius: 999px;
  background: #fbfaf7;
  color: #475467;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.15;
}

.ynm-zis__more {
  min-height: 40px;
  width: 100%;
  margin-top: 2px;
  padding: 10px 12px;
  background: var(--ynm-zis-green);
  border-color: var(--ynm-zis-green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ynm-zis__more:hover,
.ynm-zis__more:focus-visible {
  background: var(--ynm-zis-green-dark);
  border-color: var(--ynm-zis-green-dark);
  color: #fff;
  outline: none;
}

.ynm-zis__detail {
  margin-top: 22px;
  border-top: 1px solid var(--ynm-zis-line);
  padding-top: 22px;
}

.ynm-zis__detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.ynm-zis__detail-image {
  min-height: 330px;
  border-radius: var(--ynm-zis-radius);
}

.ynm-zis__detail-intro {
  display: grid;
  align-content: center;
  gap: 12px;
}

.ynm-zis__detail h3 {
  font-size: 32px;
  line-height: 1.14;
}

.ynm-zis__detail p {
  margin: 0;
  color: var(--ynm-zis-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ynm-zis__why {
  display: grid;
  gap: 6px;
  border-left: 3px solid var(--ynm-zis-rust);
  background: rgba(184, 95, 56, 0.07);
  padding: 12px 14px;
}

.ynm-zis__why strong {
  color: var(--ynm-zis-charcoal);
  font-size: 13px;
}

.ynm-zis__why span {
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.ynm-zis__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.ynm-zis__detail-grid section,
.ynm-zis__section {
  min-width: 0;
  border-top: 1px solid var(--ynm-zis-line);
  padding-top: 15px;
}

.ynm-zis__section {
  margin-top: 20px;
}

.ynm-zis__detail h4 {
  margin: 0 0 10px;
  color: var(--ynm-zis-charcoal);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.ynm-zis__detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ynm-zis__detail li {
  position: relative;
  padding-left: 17px;
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
}

.ynm-zis__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ynm-zis-green);
}

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

.ynm-zis__palette {
  min-width: 0;
}

.ynm-zis__palette strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ynm-zis-charcoal);
  font-size: 13px;
}

.ynm-zis__swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 66px;
  overflow: hidden;
  border: 1px solid var(--ynm-zis-line);
  border-radius: var(--ynm-zis-radius);
}

.ynm-zis__swatch {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  background: var(--ynm-zis-swatch);
  padding: 6px;
}

.ynm-zis__swatch b {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  padding: 3px 4px;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

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

.ynm-zis__budget-row {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: var(--ynm-zis-radius);
  background: #fff;
  padding: 12px;
}

.ynm-zis__budget-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.3;
}
.ynm-zis__budget-line span {
  font-weight:bold;
}

.ynm-zis__budget-line span {
  text-align: right;
}

.ynm-zis__budget-row strong {
  color: var(--ynm-zis-charcoal);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.ynm-zis__budget-row p {
  margin: 0;
  color: var(--ynm-zis-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ynm-zis__budget-row i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ynm-zis-green), var(--ynm-zis-rust));
}

.ynm-zis__guide {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: #475467; 
  font-size: 13.5px;
  line-height: 1.6;
}

.ynm-zis__guide p {
  margin: 0;
}

.ynm-zis__guide-list {
  border-left: 3px solid rgba(27, 156, 133, 0.35);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px 10px 14px;
}

.ynm-zis__guide-list strong {
  display: block;
  color: var(--ynm-zis-charcoal);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.ynm-zis__guide-list ul {
  margin: 0;
  padding-inline-start: 1.15em;
}

.ynm-zis__guide-list li {
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.ynm-zis__guide-note {
  border-top: 1px solid rgba(24, 33, 47, 0.08);
  padding-top: 10px;
  color: #566171;
  font-size: 12.75px;
}

@media (max-width: 920px) {
  .ynm-zis__shell {
    padding: 18px;
  }

  .ynm-zis__head,
  .ynm-zis__detail-hero {
    grid-template-columns: 1fr;
  }

  .ynm-zis__signs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ynm-zis__cards {
    grid-template-columns: 1fr;
  }

  .ynm-zis__card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .ynm-zis__card p,
  .ynm-zis__mini-traits {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .ynm-zodiac-style {
    padding: 0;
  }

  .ynm-zis__shell {
    border-radius: 0;
    padding: 16px;
  }

  .ynm-zis__title {
    font-size: 28px;
  }

  .ynm-zis__subtitle {
    font-size: 22px;
  }

  .ynm-zis__signs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ynm-zis__results-head {
    display: grid;
    align-items: start;
  }

  .ynm-zis__reset {
    justify-self: start;
    white-space: normal;
  }

  .ynm-zis__card {
    display: block;
  }

  .ynm-zis__detail h3 {
    font-size: 26px;
  }

  .ynm-zis__detail-image {
    min-height: 240px;
  }

  .ynm-zis__detail-grid,
  .ynm-zis__palette-grid,
  .ynm-zis__budget {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ynm-zis__signs {
    grid-template-columns: 1fr;
  }

  .ynm-zis__sign {
    min-height: 78px;
  }
}
