/* ============================================================================
   Mandala astrológica central — estilos (namespace .mc-*)
   Pareado com static/js/mandala.js. Não colide com .ag-wheel-* (céu agora).
   ============================================================================ */

.mc-wrap {
  border-radius: 18px;
  border: 1px solid var(--cor-secundaria, #ead9cd);
  background: linear-gradient(180deg, rgba(250, 233, 222, .45), #fff);
  padding: 14px;
}

.mc-root {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.mc-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ---- moldura ------------------------------------------------------------ */
.mc-ring {
  fill: none;
  stroke: #cdbcae;
  stroke-width: 1.2;
}
.mc-ring-hub {
  stroke: #d8c8bb;
  stroke-dasharray: 2 4;
  opacity: .8;
}

.mc-sign-sector {
  fill-opacity: .5;
  stroke: #fff;
  stroke-width: 1;
}
.mc-sign-glyph {
  font-size: 30px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #4a382e;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 2px;
}

.mc-tick { stroke: #b9a797; stroke-width: 1; opacity: .65; }
.mc-tick-strong { stroke: #8c7866; stroke-width: 1.4; opacity: .9; }

.mc-cusp { stroke: #cbb6a6; stroke-width: 1; opacity: .7; }
.mc-cusp-ang { stroke: #6f5a4b; stroke-width: 1.8; opacity: .9; }

.mc-axis-label {
  font-size: 22px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #6f5a4b;
  letter-spacing: .5px;
}
.mc-house-num {
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #b09a89;
  font-style: italic;
}

/* ---- aspectos ----------------------------------------------------------- */
.mc-aspect { transition: stroke-opacity .15s, stroke-width .15s; }
.mc-aspect.mc-sel { stroke-opacity: 1 !important; stroke-width: 3.4 !important; }
.mc-aspect-sym {
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: central;
  font-weight: 700;
}
.mc-aspect-badge circle { transition: r .15s; }
.mc-aspect-badge.mc-sel circle { stroke-width: 2.4; }

/* ---- planetas ----------------------------------------------------------- */
.mc-ptick { stroke: #5a4a3e; stroke-width: 1.6; }
.mc-ptick-transit { stroke: #d85428; stroke-width: 1.6; }
.mc-leader { stroke: #b9a797; stroke-width: 1; opacity: .7; }

.mc-planet-bg {
  fill: #fffdfb;
  stroke: #e4d4c6;
  stroke-width: 1;
}
.mc-planet { cursor: pointer; }
.mc-planet:focus { outline: none; }
.mc-planet-glyph {
  font-size: 26px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #2a211d;
}
.mc-planet-deg {
  font-size: 15px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #6f5a4b;
}
.mc-planet-retro {
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: central;
  fill: #b0392b;
  font-weight: 700;
}

.mc-transit .mc-planet-bg { stroke: #f0b89e; }
.mc-transit .mc-planet-glyph { fill: #d85428; font-size: 22px; font-weight: 700; }
.mc-transit .mc-planet-deg { fill: #d85428; font-size: 13px; }

.mc-planet.mc-sel .mc-planet-bg {
  stroke: #d85428;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px rgba(216, 84, 40, .45));
}
.mc-highlight .mc-planet-bg {
  stroke: #d85428;
  stroke-width: 2;
  fill: #fff5ef;
}

/* ---- marcador do evento ------------------------------------------------- */
.mc-marker-line { stroke: #d85428; stroke-width: 2.4; stroke-linecap: round; }
.mc-marker-dot { fill: #d85428; stroke: #fff; stroke-width: 1.5; }

/* ---- painel de detalhe -------------------------------------------------- */
.mc-detail {
  margin-top: 12px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--cor-secundaria, #ead9cd);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
}
.mc-detail-hint { color: var(--sc-muted, #9b8a7d); font-size: .9rem; }
.mc-detail-top { display: flex; align-items: center; gap: 12px; }
.mc-detail-glyph {
  font-size: 1.9rem;
  line-height: 1;
  color: #2a211d;
  width: 40px;
  text-align: center;
}
.mc-detail-glyph-t { color: #d85428; }
.mc-detail-asp {
  font-size: 1.7rem;
  line-height: 1;
  width: 40px;
  text-align: center;
  font-weight: 700;
}
.mc-detail-title { font-size: 1.05rem; font-weight: 600; color: var(--sc-ink, #2a211d); }
.mc-detail-title small { font-weight: 400; color: var(--sc-muted, #9b8a7d); }
.mc-detail-sub { font-size: .85rem; color: var(--sc-muted, #9b8a7d); margin-top: 2px; }

/* ---- legenda ------------------------------------------------------------ */
.mc-legend {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 14px;
  font-size: 14px;
}
.mc-legend-item { display: inline-flex; align-items: center; gap: 8px; color: #2a211d; }
.mc-legend-glyph { width: 18px; text-align: center; font-size: 17px; font-weight: 700; }
.mc-legend-natal { color: #2a211d; }
.mc-legend-transito { color: #d85428; }
.mc-legend-swatch { width: 16px; height: 16px; border-radius: 4px; }
.mc-legend-marker {
  position: relative; width: 18px; height: 18px;
}
.mc-legend-marker::before {
  content: ""; position: absolute; left: 8px; top: 0; width: 2px; height: 18px;
  background: #d85428; border-radius: 999px;
}
.mc-legend-marker::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px;
  border-radius: 999px; background: #d85428; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

/* ---- responsivo --------------------------------------------------------- */
@media (max-width: 560px) {
  .mc-legend { grid-template-columns: 1fr; }
  /* rótulos de grau finos somem para não poluir telas pequenas */
  .mc-planet-deg { display: none; }
  .mc-house-num { font-size: 18px; }
}
