/* Copernican Principle lesson. All rules scoped under .cop-* */
.cop-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cop-note { font-size: 13px; color: var(--dim); text-align: center; }
.cop-hero img { width: 320px; max-width: 100%; max-height: 34vh; object-fit: contain; display: block; filter: drop-shadow(0 18px 30px rgba(123,92,253,.35)); }
.cop-photo img { width: 100%; max-width: 340px; max-height: 34vh; object-fit: cover; border-radius: 14px; display: block; }

/* ---------- the sky ---------- */
.cop-sky { width: min(100%, 360px); height: auto; display: block; overflow: visible; }
.cop-orb { fill: none; stroke: rgba(169,155,255,.28); stroke-width: 1; stroke-dasharray: 2 3; }
.cop-venus { fill: #e8c99a; }
.cop-mars { fill: #e0764f; }
.cop-jup { fill: #d9a86c; }
.cop-earth { fill: #4aa3ff; stroke: #bfe2ff; stroke-width: 1.2; }
.cop-moon { fill: #c9c4bb; }
.cop-morb { fill: none; stroke: rgba(234,227,215,.22); stroke-width: .8; }
.cop-sunp text, .cop-earthp text { font: 700 16px var(--sans); text-anchor: middle; }
.cop-sunp text { fill: var(--gold); }
.cop-earthp text { fill: #8fcbff; }

/* ---------- the three demotions ---------- */
.cop-rows { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cop-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.cop-row b { display: block; font-size: 16px; color: var(--text); }
.cop-row span { color: var(--dim); }
.cop-row i { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.cop-ie { background: radial-gradient(circle at 35% 35%, #bfe2ff, #4aa3ff 60%, #1d5fa8); }
.cop-is { background: radial-gradient(circle at 35% 35%, #FFE7A3, #FCC050 60%, #E08A1E); }
.cop-ig { background: radial-gradient(ellipse, #fff 0, var(--violet-bright) 30%, rgba(123,92,253,.2) 70%); }

/* ---------- the life bar ---------- */
.cop-bar { width: min(100%, 360px); height: auto; display: block; overflow: visible; }
.cop-band { fill: rgba(252,192,80,.16); stroke: rgba(252,192,80,.6); stroke-width: 1; stroke-dasharray: 4 3; }
.cop-bandlab { fill: var(--gold); font: 700 13px var(--sans); }
.cop-track { fill: var(--raised); }
.cop-past { fill: var(--violet-bright); }
.cop-fut { fill: #6fc3ff; }
.cop-end { fill: var(--dim); font: 600 13px var(--sans); }
.cop-pin line { stroke: var(--text); stroke-width: 2; }
.cop-pin circle { fill: var(--text); }
.cop-pin text { fill: var(--text); font: 700 13px var(--sans); }
.cop-ghost line { stroke: var(--text); stroke-width: 2; stroke-dasharray: 3 3; opacity: .7; }
.cop-q { fill: var(--dim); font: 700 14px var(--sans); }
.cop-range rect { fill: var(--gold); }
.cop-range text { fill: var(--gold); font: 700 13px var(--sans); }
.cop-fall line { stroke: var(--red); stroke-width: 3; }
.cop-fall text { fill: #ff8a8a; font: 700 13px var(--sans); }
.cop-read { font-size: 16px; color: var(--dim); text-align: center; min-height: 22px; }
.cop-read b { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.cop-key { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.cop-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cop-key .p { color: var(--violet-bright); }
.cop-key .p::before { background: var(--violet-bright); }
.cop-key .f { color: #6fc3ff; }
.cop-key .f::before { background: #6fc3ff; }
.cop-key .c { color: var(--gold); }
.cop-key .c::before { background: var(--gold); }
.cop-key .r { color: var(--violet-bright); }
.cop-key .r::before { background: var(--violet); }
.cop-two { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cop-two div { padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.cop-two span { display: block; font-size: 13px; color: var(--dim); }
.cop-two b { display: block; font-size: 15px; color: var(--gold); margin-top: 2px; }

/* ---------- where it breaks ---------- */
.cop-cards { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cop-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; line-height: 1.25; }
.cop-card svg { width: 52px; height: 52px; fill: none; stroke: var(--violet-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-height: 700px) {
  .cop-sky { width: min(100%, 290px); }
  .cop-hero img { max-height: 28vh; }
  .cop-photo img { max-height: 28vh; }
}
