/* Poster tokens — editorial night sky system aligned with the current site style. */
:root {
  --poster-bg: #0b1a2e;
  --poster-fg: #f6efe2;
  --poster-muted: rgba(246, 239, 226, 0.72);
  --poster-border: rgba(246, 239, 226, 0.92);
  --poster-border-soft: rgba(246, 239, 226, 0.52);
  --poster-serif: 'Playfair Display', Georgia, serif;
  --poster-mono: 'JetBrains Mono', ui-monospace, monospace;
  --chart-fg: #f6efe2;
  --chart-galaxy: rgba(246, 239, 226, 0.22);
}

.poster-black {
  background: var(--poster-bg);
  color: var(--poster-fg);
  aspect-ratio: 3 / 4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 5%, 48px) clamp(14px, 4%, 36px);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}

.poster-black.horizontal { aspect-ratio: 4 / 3; }
.poster-black.square     { aspect-ratio: 1 / 1; }

.poster-black::before {
  content: "";
  position: absolute;
  inset: clamp(8px, 2.2%, 18px);
  border: 1px solid var(--poster-border);
  pointer-events: none;
}

.poster-black .chart-wrap {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3%, 28px) 0 clamp(18px, 4%, 40px);
}

.poster-black .chart-circle {
  position: relative;
  width: min(100%, 78%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--poster-border);
  overflow: hidden;
  color: var(--chart-fg);
  background: var(--poster-bg);
  transition: opacity 0.2s ease;
}

.poster-black .chart-circle svg,
.poster-black .chart-circle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.poster-black .chart-circle.loading { opacity: 0.55; }

.poster-black.square  .chart-circle { border-radius: 0; }
.poster-black.heart   .chart-circle {
  border: 0;
  border-radius: 0;
  clip-path: path("M 50 85 C 10 55, 0 30, 20 15 C 35 5, 48 18, 50 28 C 52 18, 65 5, 80 15 C 100 30, 90 55, 50 85 Z");
}

/* Layer toggles — controlled by cliente via CSS custom properties */
.poster-black [data-layer-milkyway="off"] #milkyway,
.poster-black [data-layer-grid="off"]     #grid,
.poster-black [data-layer-ecliptic="off"] #ecliptic,
.poster-black [data-layer-constellations="off"] #constellations,
.poster-black [data-layer-names="off"]    #constellation_names,
.poster-black [data-layer-moon="off"]     #moon,
.poster-black [data-layer-planets="off"]  #planets {
  display: none !important;
}

/* Milky way default opacity softened via currentColor inheritance */
.poster-black #milkyway { opacity: 0.45; }
.poster-black #grid, .poster-black #ecliptic { opacity: 0.35; }
.poster-black #constellations { opacity: 0.6; }

/* Typography */
.poster-black .p-title {
  font-family: var(--poster-serif);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.1%, 18px);
  line-height: 1.1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  color: var(--poster-fg);
  margin: 0;
}

.poster-black .p-title .heart {
  display: inline-block;
  font-size: 0.85em;
  transform: translateY(-0.05em);
}

.poster-black .p-meta {
  font-family: var(--poster-serif);
  font-weight: 400;
  font-size: clamp(8px, 1.25%, 11px);
  line-height: 1.75;
  text-align: center;
  margin: clamp(10px, 2%, 16px) 0 0;
  color: var(--poster-fg);
}

.poster-black .p-meta span { display: block; }

/* Outer frame (the outer paper-white mat visible in preview stage) */
.poster-frame {
  padding: clamp(14px, 2.5%, 22px);
  background: #f4f5f7;
  display: inline-block;
  box-shadow:
    0 40px 70px -30px rgba(20, 20, 20, 0.36),
    0 14px 30px -18px rgba(20, 20, 20, 0.24);
  max-width: 100%;
}
