/* =========================================================
   ZODIACPRESS COMPATIBILITY — LIGHT MODE ONLY
   ========================================================= */

/* ---------- BASE PALETTE ---------- */
.zpc-compat {
  --zpc-bg: #ffffff;
  --zpc-fg: #222222;
  --zpc-muted: #666666;
  --zpc-brand: #6d2b76;
  --zpc-border: #e5e5e7;
  --zpc-radius: 14px;
  --zpc-shadow: 0 10px 28px rgba(0,0,0,.12);
  --zpc-panel: #faf8fb;
  --zpc-input-bg: #ffffff;
  --zpc-input-fg: #222222;
  --zpc-input-border: #e5e5e7;
  --zpc-input-focus: 0 0 0 3px rgba(109,43,118,.15);
  --zpc-placeholder: #9aa1ab;
  --zpc-menu-bg: #ffffff;
  --zpc-menu-fg: #111827;
  --zpc-menu-border: #e5e7eb;
  --zpc-menu-hover: #f5eff8;
  --zpc-error-bg: #fff2f2;
  --zpc-error-fg: #a11212;
  --zpc-error-border: #ffb9c0;
  --zpc-surface: #ffffff;
  --zpc-stroke: #CBD5E1;
  --zpc-rail: #E5E7EB;
  --zpc-tick: #9CA3AF;
  --zpc-icon: #4B5563;
  --zpc-icon-dim: #BDBDBD;
  --zpc-grad: linear-gradient(90deg, #5B67E6 0%, #A6B3FF 100%);
}

/* Force light mode on the whole wrapper — override any theme dark */
.zpc-compat,
.zpc-compat * {
  color-scheme: light !important;
}

/* ---------- FORM LAYOUT ---------- */
.zpc-compat .zpc-form { max-width: 1060px; margin: 0 auto 18px; padding: 12px; }
.zpc-compat .zpc-two { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .zpc-compat .zpc-two { grid-template-columns: 1fr 1fr; } }

/* Person wrapper — holds label above + fieldset */
.zpc-compat .zpc-person-wrap {
  display: flex;
  flex-direction: column;
}

/* Side A / Side B label sits 12px above card */
.zpc-compat .zpc-person-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--zpc-brand) !important;
  margin-bottom: 12px;
  padding-left: 2px;
  background: transparent !important;
}

/* Fieldset card — force white background hard */
.zpc-compat .zpc-person,
.zpc-compat fieldset.zpc-person {
  background: #faf8fb !important;
  border: 1px solid #e5e5e7 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Screen-reader only legend */
.zpc-compat .zpc-person legend.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.zpc-compat .zpc-row { margin: 0 0 10px; }
.zpc-compat .zpc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }

/* ---------- LABELS ---------- */
.zpc-compat .zpc-person label,
.zpc-compat .zpc-person > label {
  display: block !important;
  font-size: .92rem !important;
  color: #666666 !important;
  margin-bottom: 6px !important;
  background: transparent !important;
}

/* ---------- INPUTS & SELECTS — force light on everything ---------- */
.zpc-compat .zpc-person input,
.zpc-compat .zpc-person input[type="text"],
.zpc-compat .zpc-person input[type="number"],
.zpc-compat .zpc-person input[type="checkbox"],
.zpc-compat .zpc-person select,
.zpc-compat .zpc-person select.zpc-select {
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid #e5e5e7 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #222222 !important;
  padding: 10px 12px !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: border-color .15s, box-shadow .15s !important;
}

/* Checkbox override — don't force full width */
.zpc-compat .zpc-person input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
}

/* Select arrow */
.zpc-compat .zpc-person select,
.zpc-compat .zpc-person select.zpc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath stroke='%23666' stroke-width='1.5' fill='none' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px !important;
  padding-right: 32px !important;
  cursor: pointer !important;
}

/* Focus state */
.zpc-compat .zpc-person input:focus,
.zpc-compat .zpc-person select:focus {
  border-color: #6d2b76 !important;
  box-shadow: 0 0 0 3px rgba(109,43,118,.15) !important;
  outline: none !important;
}

/* Placeholder */
.zpc-compat .zpc-person input::placeholder { color: #9aa1ab !important; opacity: 1 !important; }

/* Autofill override */
.zpc-compat .zpc-person input:-webkit-autofill,
.zpc-compat .zpc-person input:-webkit-autofill:hover,
.zpc-compat .zpc-person input:-webkit-autofill:focus {
  -webkit-text-fill-color: #222222 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

.zpc-compat .zpc-unknown { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.zpc-compat .zpc-city-wrap { margin-top: 8px; }
.zpc-compat .zpc-city-wrap input[type="text"] { width: 100% !important; }

/* ---------- BUTTON ---------- */
.zpc-compat .zpc-form .button,
.zpc-compat .zpc-form button.button {
  display: inline-block !important;
  background: #6d2b76 !important;
  background-color: #6d2b76 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: transform .08s ease, box-shadow .2s ease !important;
}
.zpc-compat .calculate-button { display: flex; justify-content: center; align-items: center; height: 80px; }
.zpc-compat .zpc-form .button:hover { transform: translateY(-1px) !important; box-shadow: 0 6px 16px rgba(0,0,0,.18) !important; }
@media (max-width: 480px) { .zpc-compat .zpc-form .button { width: 100% !important; } }

/* ---------- LOADING OVERLAY ---------- */
.zpc-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.zpc-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
.zpc-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
}
.zpc-loading-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #6d2b76;
  margin: 0;
}
.zpc-loading-sub {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  min-height: 1.4em;
  transition: opacity 0.3s;
}
.zpc-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid #e5e5e7;
  border-top-color: #6d2b76;
  border-radius: 50%;
  animation: zpc-spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes zpc-spin { to { transform: rotate(360deg); } }

.zpc-progress-bar-wrap {
  width: 220px;
  height: 5px;
  background: #e5e5e7;
  border-radius: 999px;
  overflow: hidden;
}
.zpc-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6d2b76, #a855f7);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ---------- ERRORS ---------- */
.zpc-compat .zpc-error {
  background: #fff2f2 !important;
  color: #a11212 !important;
  border: 1px solid #ffb9c0 !important;
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
}

/* ---------- jQuery UI AUTOCOMPLETE ---------- */
.ui-autocomplete {
  position: absolute !important;
  z-index: 100000 !important;
  max-height: 260px !important;
  overflow: auto !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 6px 0 !important;
  list-style: none !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
}
.ui-autocomplete .ui-menu-item-wrapper { padding: 10px 14px; cursor: pointer; color: #111827 !important; background: #fff !important; }
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper:hover { background: #f5eff8 !important; color: #111827 !important; }

/* ---------- CHART: synastry SVG ---------- */
.zpc-compat .zpc-chart--synastry svg { width: 100%; height: auto; display: block; }
.zpc-compat .zpc-chart--synastry svg text,
.zpc-compat .zpc-chart--synastry svg .zpc-font,
.zpc-compat .zpc-chart--synastry svg .zpc-sign,
.zpc-compat .zpc-chart--synastry svg .zpc-plA,
.zpc-compat .zpc-chart--synastry svg .zpc-plB,
.zpc-compat .zpc-chart--synastry svg .zpc-lblA,
.zpc-compat .zpc-chart--synastry svg .zpc-lblB,
.zpc-compat .zpc-chart--synastry svg .zpc-deg,
.zpc-compat .zpc-chart--synastry svg .zpc-hno {
  font-family: "zodiacpress","HamburgSymbols","Noto Sans Symbols 2","Noto Sans Symbols","Segoe UI Symbol","DejaVu Sans",sans-serif !important;
  font-variant-emoji: text;
}
.zpc-compat .zpc-chart--synastry text.retro {
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  font-weight: 700;
}
.zpc-compat .zpc-chart--synastry svg .zpc-sign { fill: #6d2b76; text-anchor: middle; dominant-baseline: middle; }
.zpc-compat .zpc-chart--synastry svg .zpc-plA { fill: #212121; text-anchor: middle; dominant-baseline: middle; }
.zpc-compat .zpc-chart--synastry svg .zpc-plB { fill: #9a2e2e; text-anchor: middle; dominant-baseline: middle; }

/* ---------- RTL ---------- */
[dir="rtl"] .zpc-compat .zpc-two { direction: rtl; }
[dir="rtl"] .zpc-compat .zpc-person-label { margin-right: 2px; }
[dir="rtl"] .ui-autocomplete { text-align: right; }

/* ---------- DETAILS GRID ---------- */
.zpc-compat .zpc-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; font-size: 14px; line-height: 1.45; }
.zpc-compat .zpc-side-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.zpc-compat .zpc-side-name { font-weight: 600; margin-bottom: 6px; font-size: 20px; }
.zpc-compat .zpc-line { font-size: 16px; }

/* ---------- Toolbar ---------- */
.zpc-compat .zpc-toolbar { display: flex; justify-content: flex-end; margin: 0 0 8px 0; }
.zpc-compat .zpc-reset { display: inline-block; border: 1px solid rgba(0,0,0,.15); padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: 13px; color: #444; }
.zpc-compat .zpc-reset:hover { background: rgba(0,0,0,.04); }

/* ---------- Full report ---------- */
.zpc-title { text-align: center; }
.zpc-fullreport { margin-top: 18px; }
.zpc-fullreport h3 { margin: 28px 0 8px; color: #c0178e; font-size: 24px; font-weight: 800; border-bottom: 2px dashed; padding: 0 4px 2px; width: fit-content; }
.zpc-fullreport h4 { margin: 14px 0 6px; color: #3a4d81; font-size: 18px; font-weight: 700; line-height: 1.3; }
.zpc-fullreport p { line-height: 1.55; margin: 6px 0 14px; color: #222; }
.zpc-cat-summary-block {
    display: block;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    margin: 6px 0 48px;
}
.zpc-cat-summary-block > p,
.zpc-cat-summary-block > p.zpc-cat-summary-paragraph {
    display: block;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    margin: 0 0 24px !important;
}

/* Chips */
.zpc-aspect .chip { display: inline-block; margin-right: 6px; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.zpc-aspect .chip-strength { background: #efe6ff; color: #5b21b6; }
.zpc-aspect .chip-orb { background: #eef2f7; color: #334155; }
.zpc-aspect .chip-excellent { background: #e7f8ef; color: #065f46; }
.zpc-aspect .chip-great { background: #e8f7f1; color: #0f766e; }
.zpc-aspect .chip-good { background: #eefcf7; color: #047857; }
.zpc-aspect .chip-mixed { background: #fff7ed; color: #92400e; }
.zpc-aspect .chip-poor { background: #fff2e8; color: #b45309; }
.zpc-aspect .chip-bad { background: #fee2e2; color: #b91c1c; }
.zpc-aspect .chip-horrible { background: #fde8e8; color: #7f1d1d; }

/* Category header + icon */
.zpc-fullreport .zpc-cat-title {
  position: relative; display: flex; align-items: center; gap: .5rem;
  padding-bottom: 8px; margin: 18px 0 12px;
  color: #9f48ab; line-height: 1.15;
  
}
.zpc-fullreport .zpc-cat-title::after {
  content: ""; position: absolute;
  left: calc(var(--zpc-icon-w, 28px) + 8px); right: 0; bottom: 0;
  border-bottom: 2px dashed #9f48ab; opacity: .9;
}
.zpc-fullreport .zpc-cat-icon {
  --zpc-icon-w: 28px; width: var(--zpc-icon-w); height: var(--zpc-icon-w);
  flex: 0 0 var(--zpc-icon-w); background-color: currentColor;
  -webkit-mask-image: var(--zpc-icon); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-image: var(--zpc-icon); mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  border-radius: 4px;
}

/* ---------- Thermometer score card ---------- */
.zpc-compat .zpc-thermo-card {
    background: #2e2e2e08 !important;
    color: inherit !important;
    border: 1px solid #7c7c7c !important;
    border-radius: 4px;
    padding: 16px 14px 18px;
    margin: 26px 0 24px;
}
.zpc-compat .zpc-thermo-card .hdr { text-align: center; margin-bottom: 8px; }
.zpc-compat .zpc-thermo-card .title { font-size: clamp(18px,3.2vw,20px); font-weight: 800; margin: 0 0 4px; color: #9f48ab !important; }
.zpc-compat .zpc-thermo-card .subtitle { font-size: clamp(16px,2.6vw,28px); font-weight: 700; color: #018caf !important; }
.zpc-compat .zpc-thermo-card .icons { position: relative; height: clamp(18px,4.2vw,28px); margin: 10px 6px 6px; list-style: none; padding: 0; }
.zpc-compat .zpc-thermo-card .icons li { position: absolute; top: 0; transform: translateX(-50%); color: inherit; line-height: 0; }
.zpc-compat .zpc-thermo-card .icons li[data-edge="left"] { transform: none; }
.zpc-compat .zpc-thermo-card .icons li[data-edge="right"] { transform: translateX(-100%); }
.zpc-compat .zpc-thermo-card .icons li[data-active="1"] { color: #4B5563; }
.zpc-compat .zpc-thermo-card .zpc-thermo-icon {
  width: clamp(12px,3.4vw,24px); height: clamp(12px,3.4vw,24px); display: inline-block; background-color: currentColor;
  -webkit-mask-image: var(--zpc-icon); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-image: var(--zpc-icon); mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
.zpc-compat .zpc-thermo-card .bar-wrap { position: relative; height: 18px; margin: 6px 6px 0; }
.zpc-compat .zpc-thermo-card .bar { height: 100%; border-radius: 999px; background: #E5E7EB; overflow: hidden; position: relative; }
.zpc-compat .zpc-thermo-card .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg,#5B67E6 0%,#A6B3FF 100%); }
.zpc-compat .zpc-thermo-card .bar-wrap .tick { position: absolute; top: -8px; width: 2px; height: calc(100% + 8px); background: #9CA3AF; border-radius: 1px; transform: translateX(-1px); }
.zpc-compat .zpc-thermo-card .score { text-align: center; margin: 10px 0 8px; font-weight: 800; font-size: clamp(16px,3vw,32px); color: #9f48ab !important; }
.zpc-compat .zpc-thermo-card .zpc-muted { color: inherit; font-size: clamp(16px,3vw,20px); text-align: center; }

/* =========================================================
   CATEGORY SCORE CARDS — 2 column, colored bars
   ========================================================= */
.zpc-cat-fill.score-red    { background: linear-gradient(90deg, #c62525, #f87171); }
.zpc-cat-fill.score-orange { background: linear-gradient(90deg, #bd580f, #fb923c); }
.zpc-cat-fill.score-yellow { background: linear-gradient(90deg, #c09208, #facc15); }
.zpc-cat-fill.score-green  { background: linear-gradient(90deg, #0a8638, #4ade80); }
.zpc-cat-fill.score-blue   { background: linear-gradient(90deg, #0c367a, #60a5fa); }

.zpc-cat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}
@media (max-width: 600px) { .zpc-cat-cards { grid-template-columns: 1fr; } }

.zpc-cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  background: #ffffff !important;
  border: 1px solid #e5e5e7 !important;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.zpc-cat-card .zpc-cat-top { display: flex; flex-direction: column; gap: 10px; }
.zpc-cat-card .zpc-cat-head { display: flex; align-items: center; gap: 8px; color: #7a2f86; }
.zpc-cat-card .zpc-cat-label { font-weight: 700; font-size: .95rem; color: #222222 !important; line-height: 1.2; }
.zpc-cat-card .zpc-cat-meter-row { display: flex; align-items: center; gap: 12px; }
.zpc-cat-card .zpc-cat-bar-wrap { flex: 1 1 auto; height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.zpc-cat-card .zpc-cat-fill { height: 100%; border-radius: 999px; transition: width 0.6s cubic-bezier(.25,.46,.45,.94); }
.zpc-cat-card .zpc-cat-score { flex: 0 0 auto; min-width: 72px; text-align: right; font-size: .8rem; color: #666666; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zpc-cat-card .zpc-cat-body { font-size: .88rem; line-height: 1.6; color: #444444; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.zpc-cat-card .zpc-cat-blurb, .zpc-cat-card .zpc-cat-blurb p { margin: 0; }
.zpc-cat-card .zpc-cat-readmore-row { display:block !important; clear:both; width:100%; margin-top:8px !important; }
.zpc-cat-card .zpc-cat-readmore { display:block !important; clear:both; width:max-content; max-width:100%; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.zpc-fullreport .zpc-cat { scroll-margin-top: 18px; }

@media (max-width: 480px) {
  .zpc-cat-card { padding: 13px 14px; }
}

/* ---------- Live status ---------- */
.zpc-compat .zpc-live-status { display: none; align-items: center; gap: .55rem; font-weight: 600; margin: .75rem 0 0; }
.zpc-compat .zpc-live-status.is-visible { display: flex; }


/* ═══════════════════════════════════════════════════════
   Dark mode & text color fixes
   ═══════════════════════════════════════════════════════ */

/* Running text: inherit theme color (visible in both light + dark) */
.zpc-fullreport p,
.zpc-fullreport div,
.zpc-fullreport span,
.zpc-fullreport .zpc-cat-summary,
.zpc-fullreport .zpc-aspect-text,
.zpc-compat p,
.zpc-compat > div {
    color: inherit;
}

/* Category score cards: white bg + forced black text always */
.cc-grid .cc-item {
    background: #fff !important;
    color: #1a1a1a !important;
}
.cc-grid .cc-item .cc-label,
.cc-grid .cc-item .cc-score,
.cc-grid .cc-item p,
.cc-grid .cc-item span,
.zpc-cat-card-item * {
    color: #1a1a1a !important;
}

/* Start Over button — solid purple, high contrast */
.zpc-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}
/* Legacy fallback for non-action-btn reset links */
.zpc-compat .zpc-reset { display: inline-block; border: 1px solid rgba(0,0,0,.15); padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: 13px; color: #444; }

/* Aspect section headings: keep purple color visible */
.zpc-fullreport .zpc-aspect-title,
.zpc-fullreport h3,
.zpc-fullreport h4 {
    color: inherit;
}

/* Overall score ring / thermo text inherits */
.zpc-thermo-card,
.zpc-thermo-card * {
    color: inherit;
}

/* Dark mode: override card bg for better contrast */
@media (prefers-color-scheme: dark) {
    .cc-grid .cc-item {
        background: #fff !important;
        color: #1a1a1a !important;
    }
}

/* ═══════════════════════════════════════════════════════
   Category Tabs
   ═══════════════════════════════════════════════════════ */
.zpc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}
.zpc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: .88rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: color .15s, border-color .15s, background .15s;
}
.zpc-tab-btn:hover {
    color: #6d2b76;
    background: #f5eef7;
}
.zpc-tab-btn.active {
    color: #6d2b76;
    border-bottom-color: #6d2b76;
    background: #f5eef7;
}
.zpc-tab-pct {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    background: #ede9f0;
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 2px;
}
.zpc-tab-btn.active .zpc-tab-pct {
    background: #6d2b76;
    color: #fff;
}
.zpc-tab-panel {
    display: none;
    animation: zpTabFade .2s ease;
}
.zpc-tab-panel.active {
    display: block;
}
@keyframes zpTabFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .zpc-tab-btn { padding: 6px 10px; font-size: .8rem; }
}

/* Anchor scroll offset for category sections */
.zpc-cat[id] {
    scroll-margin-top: 80px;
}
/* Card cursor pointer */
a.zpc-cat-card-item {
    cursor: pointer;
    
}
a.zpc-cat-card-item:hover {
    background: #1d072411;
}

/* ═══════════════════════════════════════════════════════
   Astrology Unicode symbols in aspect titles
   ═══════════════════════════════════════════════════════ */
.zpc-sym {
    font-family: 'zodiacpress','HamburgSymbols','Noto Sans Symbols 2','Noto Sans Symbols','Segoe UI Symbol',sans-serif;
    font-variant-emoji: text;
    font-size: 1.1em;
    color: #fa4db5 !important;
    margin: 0 1px;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
}

/* Category card icon — mask-image inherits currentColor from parent */
.zpc-cat-icon-img {
    width: 32px;
    height: 32px;
    display: inline-block;
    flex-shrink: 0;
    background-color: rgb(1 136 170);
    -webkit-mask-image: var(--zpc-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--zpc-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* ── Chip redesign: Weight / Type / Orb ──────────────────────── */
.chip-label {
    font-weight: 600;
    opacity: 1;
    font-size: 14px;
    margin: 0;
    color: inherit;
}
.chip.chip-weight {
    font-weight: 700;
    border: 1px solid currentColor;
    border-radius: 999px;
}

/* ── Unified chip style ─────────────────────────────────────── */
.zpc-fullreport .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.zpc-fullreport .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: none !important;
    line-height: 1.2;
}
/* Weight chip: color driven by inline style per tier (purple scale) */
.chip.chip-weight {
    border: none !important;
}
/* Type chips inherit existing sentiment colors but unified height */
.chip.chip-excellent, .chip.chip-great,
.chip.chip-good, .chip.chip-positive  { background: #dcfce7; color: #166534 !important; }
.chip.chip-mixed, .chip.chip-neutral  { background: #fef3c7; color: #92400e !important; }
.chip.chip-poor                        { background: #ffedd5; color: #9a3412 !important; }
.chip.chip-challenging, .chip.chip-bad { background: #fee2e2; color: #991b1b !important; }
.chip.chip-horrible                    { background: #fecaca; color: #7f1d1d !important; }
.chip.chip-orb                         { background: #f3f4f6; color: #374151 !important; }
.chip-label { opacity: 1; font-weight: 600; margin: 0; color: inherit; font-size: 14px; unicode-bidi: isolate; }
.zpc-fullreport .chip strong, .zpc-fullreport .chip bdi { font-size: 14px; unicode-bidi: isolate; }

/* Force zodiacpress font on symbol spans */
.zpc-sym {
    font-family: 'zodiacpress','HamburgSymbols','Noto Sans Symbols 2','Noto Sans Symbols','Segoe UI Symbol',sans-serif !important;
    font-variant-emoji: text !important;
    font-size: 1.1em;
    color: #fa4db5 !important;
    margin: 0 1px;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
}
.zpc-title-text, .zpc-name, .zpc-title-planet, .zpc-title-sign, .zpc-title-house, .zpc-title-aspect { unicode-bidi: isolate; }
.zpc-fullreport .zpc-aspect h4 { font-size: 16px; line-height: 1.5; }
.zpc-fullreport [dir="rtl"] .chip-label, .rtl .zpc-fullreport .chip-label, body.rtl .zpc-fullreport .chip-label { margin: 0; }
.zpc-aspect {
  padding-bottom: 36px;
}
            .zpc-overlay-switcher .zpc-details-grid{display:grid !important;grid-template-columns:minmax(0,46%) minmax(48px,2%) minmax(0,46%) !important;gap:8px;align-items:stretch;justify-content:space-between;max-width:1280px;margin:18px auto 0}
            .zpc-overlay-switcher .zpc-side{min-width:0;width:100%}
.zpc-overlay-switcher .zpc-details-card {
    background: #0c10150f;
    border: 1px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0 !important;
}
            .zpc-overlay-switcher .zpc-details-card__head{padding:16px 26px 14px;color:#fff;line-height:1;display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
            .zpc-overlay-switcher .zpc-details-card__side{font-weight:800;font-size:18px;opacity:.98}
            .zpc-overlay-switcher .zpc-details-card__name{font-weight:900;font-size:32px;letter-spacing:-.02em}
            .zpc-overlay-switcher .zpc-details-card__body{padding:18px 12px 20px;font-size:17px;line-height:1.42;display:flex;flex-direction:column;gap:12px;flex:1;justify-content:flex-start}
            .zpc-overlay-switcher .zpc-details-line{display:grid;grid-template-columns:150px minmax(0,1fr);column-gap:0;contain-intrinsic-block-size:auto 100px;margin:0}
            .zpc-overlay-switcher .zpc-details-label{font-weight:800}
            .zpc-overlay-switcher .zpc-details-value{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:left;align-self:start}
            .zpc-overlay-switcher .zpc-side-a .zpc-details-card{border-color:var(--zpc-a)}
            .zpc-overlay-switcher .zpc-side-a .zpc-details-card__head{background:var(--zpc-a)}
            .zpc-overlay-switcher .zpc-side-a .zpc-details-label{color:var(--zpc-a)}
            .zpc-overlay-switcher .zpc-side-b .zpc-details-card{border-color:var(--zpc-b)}
            .zpc-overlay-switcher .zpc-side-b .zpc-details-card__head{background:var(--zpc-b)}
            .zpc-overlay-switcher .zpc-side-b .zpc-details-label{color:var(--zpc-b)}
            .zpc-overlay-switcher .zpc-overlay-switch-slot{display:flex;align-items:center;justify-content:center;min-width:48px;width:48px}
            .zpc-overlay-switcher .zpc-overlay-switch-btn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;background:transparent;padding:0;cursor:pointer}
            .zpc-overlay-switcher .zpc-overlay-switch-btn img{display:block;width:48px;height:48px}
            .zpc-overlay-switcher .zpc-overlay-switch-btn:focus-visible{outline:2px solid rgba(109,43,118,.35);outline-offset:4px;border-radius:999px}
            .zpc-overlay-switcher[data-zpc-overlay-dir="A_IN_B"] .zpc-side-a{order:3}
            .zpc-overlay-switcher[data-zpc-overlay-dir="A_IN_B"] .zpc-overlay-switch-slot{order:2}
            .zpc-overlay-switcher[data-zpc-overlay-dir="A_IN_B"] .zpc-side-b{order:1}
            @media(max-width:900px){.zpc-overlay-switcher .zpc-details-grid{grid-template-columns:minmax(0,46%) minmax(48px,2%) minmax(0,46%) !important;gap:8px}.zpc-overlay-switcher .zpc-details-card__name{font-size:28px}.zpc-overlay-switcher .zpc-details-line{grid-template-columns:150px minmax(0,1fr)}}
            @media(max-width:640px){.zpc-overlay-switcher .zpc-details-grid{grid-template-columns:1fr !important;gap:18px;align-items:stretch}.zpc-overlay-switcher .zpc-overlay-switch-slot{justify-content:center;width:48px;min-width:48px;margin:0 auto}.zpc-overlay-switcher[data-zpc-overlay-dir="B_IN_A"] .zpc-side-a{order:1}.zpc-overlay-switcher[data-zpc-overlay-dir="B_IN_A"] .zpc-overlay-switch-slot{order:2}.zpc-overlay-switcher[data-zpc-overlay-dir="B_IN_A"] .zpc-side-b{order:3}.zpc-overlay-switcher[data-zpc-overlay-dir="A_IN_B"] .zpc-side-b{order:1}.zpc-overlay-switcher[data-zpc-overlay-dir="A_IN_B"] .zpc-overlay-switch-slot{order:2}.zpc-overlay-switcher[data-zpc-overlay-dir="A_IN_B"] .zpc-side-a{order:3}.zpc-overlay-switcher .zpc-details-card__name{font-size:28px}.zpc-overlay-switcher .zpc-details-line{grid-template-columns:150px minmax(0,1fr)}}
          

          .zpc-cat-cards-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0 24px}
          @media(max-width:600px){.zpc-cat-cards-grid{grid-template-columns:1fr}}
          .zpc-cat-card-item
          {
          background: none !important;
              padding: 32px 8px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: stretch;
          }
          .zpc-cat-card-item:hover{background:#0202020c!important}
          .zpc-cat-card-item .cc-top{display:flex;flex-direction:column;gap:10px}
          .zpc-cat-card-item .cc-label {
    font-weight: 700;
    font-size: 1.2rem;
    color: #9f48ab !important;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
          .zpc-cat-card-item .cc-label img{filter:brightness(0) saturate(100%) invert(15%) sepia(67%) saturate(800%) hue-rotate(270deg) brightness(80%) contrast(95%)}
          .zpc-cat-card-item .cc-meter-row{display:flex;align-items:center;gap:12px}
          .zpc-cat-card-item .cc-bar-wrap{flex:1 1 auto;height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
          .zpc-cat-card-item .cc-bar-fill{height:100%;border-radius:999px;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:block}
          .zpc-cat-card-item .cc-score{flex:0 0 auto;min-width:72px;text-align:right;font-size:.8rem;color:#666!important;font-variant-numeric:tabular-nums;white-space:nowrap}
          .zpc-cat-card-item .cc-body{font-size:1rem;line-height:1.55;font-weight:500;border-top:1px solid #f0f0f0;padding-top:10px; color:inherit!important;}
.zpc-cat-card-item .cc-readmore-row{display:block;margin-top:10px;line-height:1.2;}
.zpc-cat-card-item .cc-readmore{display:inline-block;font-weight:700;color:#9f48ab!important;text-decoration:underline;text-underline-offset:2px;}
          .zpc-report-heading {
            font-size: 1.8rem;
            font-weight: 800;
            color: #9f48ab !important;
            margin: 0 0 26px;
          }