/* css/poster.css — /poster/ page
   The poster scales as one piece: every size inside is in cqw (% of its width). */

.pst-stage { display: flex; justify-content: center; padding: 18px 0 10px; }

.pst {
  --p-bg: radial-gradient(ellipse at 50% 30%, #17153a 0%, #0c0b1d 55%, #07070f 100%);
  --p-ink: #f4e4b7;
  --p-gold: #d4af37;
  --p-dim: rgba(212,175,55,0.72);
  --p-line: rgba(212,175,55,0.55);
  --p-disc: radial-gradient(circle at 50% 45%, #121230 0%, #08081a 75%);
  container-type: inline-size;
  position: relative; width: min(100%, 580px); aspect-ratio: 1 / 1.414;
  background: var(--p-bg); color: var(--p-ink);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 var(--hair) rgba(255,240,190,0.25);
}
.pst[data-style="ivory"] {
  --p-bg: radial-gradient(ellipse at 50% 30%, #fbf5e6 0%, #f2e8d0 70%, #e9dcbd 100%);
  --p-ink: #1d1a33;
  --p-gold: #8a6a1f;
  --p-dim: rgba(110,85,30,0.85);
  --p-line: rgba(138,106,31,0.6);
  --p-disc: radial-gradient(circle at 50% 45%, #fbf6ea 0%, #efe4c8 80%);
}

/* Double frame: outer hairline + inner hairline */
.pst-frame {
  position: absolute; inset: 3.4cqw;
  border: 0.24cqw solid var(--p-line);
  outline: 0.12cqw solid var(--p-line); outline-offset: -1.3cqw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 5.4cqw 7cqw 3cqw;   /* the slogan sits close to the bottom edge */
}

.pst-top {
  font-family: var(--font-caps); font-weight: 500; font-size: 2.9cqw;
  letter-spacing: 0.28em; color: var(--p-gold);
}

/* Round chart + astrolabe ring */
/* 71cqw — poster-export.js draws the disc at the same size (D) */
.pst-disc { position: relative; width: 71cqw; aspect-ratio: 1; margin: 3.4cqw 0 2.4cqw; }
.pst-ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--p-gold); }
/* The disc colour sits behind the chart, so the Ivory filter never tints it */
.pst-disc::before {
  content: ''; position: absolute; inset: 3.4cqw; border-radius: 50%; background: var(--p-disc);
  box-shadow: inset 0 0 6cqw rgba(0,0,0,0.25);
}
.pst[data-style="ivory"] .pst-disc::before { box-shadow: inset 0 0 6cqw rgba(120,90,30,0.12); }
#pst-canvas, #pst-wheel {
  position: absolute; inset: 3.4cqw; width: calc(100% - 6.8cqw); height: calc(100% - 6.8cqw);
  border-radius: 50%;
}
.pst[data-base="starmap"] #pst-wheel,
.pst[data-base="natal"] #pst-canvas { display: none; }
/* Ivory: the night sky becomes ink on paper */
.pst[data-style="ivory"] #pst-canvas,
.pst[data-style="ivory"] #pst-wheel { filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(0.85); }

.pst-name {
  font-family: var(--font-script); font-weight: 400; font-size: 13.5cqw; line-height: 1;
  color: var(--p-ink);
}
.pst-words {
  margin-top: 3cqw; min-height: 1em; max-width: 78cqw;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 4.4cqw; line-height: 1.2;
  color: var(--p-ink);
}
.pst-rule { display: flex; align-items: center; gap: 2cqw; width: 42cqw; margin: 3cqw 0 2.4cqw; color: var(--p-gold); font-size: 2.2cqw; }
.pst-rule::before, .pst-rule::after { content: ''; flex: 1; height: 0.18cqw; background: var(--p-line); }
.pst-meta {
  font-family: var(--font-caps); font-weight: 500; font-size: 2.8cqw; letter-spacing: 0.2em; color: var(--p-ink);
}
.pst-coords[hidden] { display: none; }
.pst-coords { margin-top: 0.8cqw; font-family: var(--font-caps); font-size: 2.2cqw; letter-spacing: 0.24em; color: var(--p-dim); }
.pst-brand {
  margin-top: auto; font-family: var(--font-caps); font-size: 1.7cqw; letter-spacing: 0.32em; color: var(--p-dim); opacity: 0.8;
}

/* ── Options column (.seg, .opt-input, .opt-label: css/site.css) ── */
.pst-options > .opt-label:first-child { margin-top: 0; }
.pst-options .seg { display: grid; width: 100%; }
.pst-order { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pst-link {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft);
  text-decoration: none; transition: color 0.4s var(--ease);
}
.pst-link:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: var(--hair); }
.pst-order .offer, .pst-owned { width: 100%; }
.pst-owned { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pst-owned[hidden] { display: none; }
.pst-thanks a { color: var(--gold); text-decoration: none; }
.pst-thanks a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: var(--hair); }

/* "Show on the poster": glass checkboxes with a gold tick */
.pst-show { border: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.pst-show .opt-label { padding: 0; }
.check {
  display: flex; align-items: center; gap: 12px; min-height: 36px; cursor: pointer;
  font-size: 15.5px; color: var(--text);
}
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; cursor: pointer;
  border-radius: 6px; border: var(--hair) solid transparent;
  background: var(--glass) padding-box, var(--lit) border-box;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  display: grid; place-items: center; transition: box-shadow 0.5s var(--ease);
}
.check input::after {
  content: ''; width: 9px; height: 5px; margin-top: -2px;
  border-left: 1.5px solid var(--ink-warm); border-bottom: 1.5px solid var(--ink-warm);
  transform: rotate(-45deg) scale(0.4); opacity: 0; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.check input:checked {
  background: linear-gradient(180deg, rgba(236,205,110,0.42), rgba(212,175,55,0.18)) padding-box, var(--gold-edge) border-box;
  box-shadow: inset 0 1px 0 rgba(255,240,190,0.3), 0 0 14px -3px rgba(212,175,55,0.55);
}
.check input:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check:hover input { box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 16px -4px rgba(212,175,55,0.5); }
.check:hover span { color: var(--cream); }
