/* charts.css — Celebrity charts (/charts). Dark cosmic theme (global body bg from style.css). */
.ch-page { max-width: 860px; margin: 0 auto; padding: 18px 16px 72px; color: #f1eee6; }
.ch-crumb { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 18px; }
.ch-crumb a { color: rgba(240,198,106,0.85); text-decoration: none; }

/* Hero */
.ch-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.ch-mono, .ch-photo { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.ch-mono { display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: #1a1205;
  background: radial-gradient(circle at 30% 25%, #f7e7a6, #d4af37 55%, #9c7522); box-shadow: 0 8px 28px rgba(212,175,55,0.35); }
.ch-htext h1 { font-size: 1.65rem; line-height: 1.14; margin: 2px 0 6px; }
.ch-cat { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240,198,106,0.85); }
.ch-tag { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.8); margin: 0; }

.ch-photo-credit { font-size: 0.66rem; color: rgba(255,255,255,0.4); margin: -6px 0 16px; }
.ch-photo-credit a { color: rgba(240,198,106,0.75); text-decoration: none; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.ch-chip { font-size: 0.78rem; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.82); }
.ch-chip b { color: #f0c66a; font-weight: 700; }
.ch-chip--gold { border-color: rgba(240,198,106,0.4); background: rgba(240,198,106,0.08); }

.ch-intro { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.86); margin-bottom: 34px; }
.ch-intro p { margin: 0 0 14px; }

/* About / profile */
.ch-about-grid { display: grid; grid-template-columns: 1fr 260px; gap: 26px; align-items: start; }
@media (max-width: 640px){ .ch-about-grid { grid-template-columns: 1fr; } }
.ch-about-text { font-size: 1rem; line-height: 1.72; color: rgba(255,255,255,0.84); }
.ch-about-text p { margin: 0 0 14px; }
.ch-about-text em { color: rgba(255,255,255,0.95); }
.ch-about-src { font-size: 0.78rem; color: rgba(255,255,255,0.42); }
.ch-about-src a { color: rgba(240,198,106,0.85); }
.ch-facts { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 13px; padding: 6px 16px; }
.ch-fact { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ch-fact:last-child { border-bottom: none; }
.ch-fact-k { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240,198,106,0.85); }
.ch-fact-v { font-size: 0.9rem; color: rgba(255,255,255,0.86); line-height: 1.4; }

/* Methodology */
.ch-method p { font-size: 0.97rem; line-height: 1.72; color: rgba(255,255,255,0.8); margin: 0 0 14px; }
.ch-method strong { color: #f0c66a; font-weight: 600; }
.ch-method em { color: rgba(255,255,255,0.95); }
.ch-method-meta { font-size: 0.75rem !important; line-height: 1.6 !important; color: rgba(255,255,255,0.45) !important; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 12px; margin-top: 4px !important; }

.ch-block { margin-bottom: 36px; }
.ch-sec-h { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Wheel */
.ch-wheel { width: 100%; max-width: 560px; margin: 0 auto; }
.ch-wheel svg { width: 100%; height: auto; display: block; }
.ch-wheel .nw-body, .ch-wheel .nw-aspect { cursor: pointer; }
/* Kill the renderer's native tooltip — wheel clicks open our tt-ov overlay instead. */
.nw-tooltip { display: none !important; }

/* TAP TAP cards — now <details> so the reading text is in the DOM (crawlable) + interactive */
.cid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
@media (max-width: 560px){ .cid-grid { grid-template-columns: repeat(2, 1fr); } }
.cid-tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 13px; overflow: hidden; transition: border-color .15s ease; -webkit-tap-highlight-color: transparent; }
.cid-tile[open] { border-color: rgba(212,175,55,0.40); }
.cid-tile > summary { list-style: none; cursor: pointer; padding: 13px 12px; position: relative; display: block; }
.cid-tile > summary::-webkit-details-marker { display: none; }
.cid-tile > summary:hover { background: rgba(255,255,255,0.02); }
.cid-toggle { position: absolute; top: 12px; right: 12px; color: rgba(255,255,255,0.4); font-size: 1.1rem; line-height: 1; }
.cid-toggle::before { content: '+'; }
/* OPEN → the reading renders as a centered popup (text stays in DOM = crawlable) + backdrop */
.cid-tile[open]::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 99998; }
.cid-reading { position: fixed; z-index: 99999; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px)); max-height: 80vh; overflow-y: auto;
  background: #16131d; border: 1px solid rgba(240,198,106,0.30); border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 12px 44px rgba(0,0,0,0.6); animation: ttPop .2s ease; }
.cid-reading-x { position: absolute; top: 9px; right: 12px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 2px 4px; -webkit-tap-highlight-color: transparent; }
.cid-reading-x:hover { color: #fff; }
.cid-reading-h { font-weight: 700; color: #f0c66a; font-size: 1rem; margin-bottom: 10px; padding-right: 22px; }
.cid-reading-body { font-size: 0.92rem; line-height: 1.62; color: rgba(255,255,255,0.88); }
.cid-planet { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.cid-pgly { font-size: 1rem; color: #f0c66a; }
.cid-sign { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.cid-sgly { font-size: 1.85rem; line-height: 1; }
.cid-fire .cid-sgly { color: #ef9268; } .cid-earth .cid-sgly { color: #93c179; }
.cid-air .cid-sgly { color: #ecd486; } .cid-water .cid-sgly { color: #7fb9de; }
.cid-sname { font-size: 0.96rem; font-weight: 600; color: #f1eee6; }
.cid-hint { text-align: center; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-top: 14px; }
.ch-card-house { margin-top: 8px; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.ch-cards-lede { font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.68); margin: 0 0 14px; }

/* Related charts (internal linking) */
.ch-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ch-rel-card { display: block; text-decoration: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 13px 15px; transition: transform .15s ease, border-color .15s ease; }
.ch-rel-card:hover { border-color: rgba(212,175,55,0.45); transform: translateY(-2px); }
.ch-rel-name { display: block; font-size: 0.98rem; font-weight: 700; color: #f1eee6; }
.ch-rel-sub { display: block; font-size: 0.76rem; color: rgba(255,255,255,0.55); margin-top: 3px; }
.ch-rel-all { margin: 4px 0 0; }
.ch-rel-all a { color: #f0c66a; text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* TAP TAP overlay */
.tt-ov { position: fixed; inset: 0; z-index: 99998; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.tt-ov.show { display: flex; }
.tt-pop { position: relative; width: min(400px, calc(100vw - 32px)); background: #16131d; border: 1px solid rgba(240,198,106,0.30); border-radius: 14px; padding: 20px 18px 18px; box-shadow: 0 12px 44px rgba(0,0,0,0.6); animation: ttPop .2s ease; }
@keyframes ttPop { from { opacity:0; transform: translateY(8px) scale(.98); } to { opacity:1; transform:none; } }
.tt-title { font-weight: 700; color: #f0c66a; font-size: 1.02rem; margin-bottom: 10px; padding-right: 22px; }
.tt-body { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.88); }
.tt-close { position: absolute; top: 9px; right: 12px; font-size: 1.3rem; line-height: 1; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer; }
.tt-close:hover { color: #fff; }
.tt-ask { width: 100%; margin-top: 16px; padding: 11px; border-radius: 10px; border: 1px solid rgba(240,198,106,0.4); background: rgba(240,198,106,0.10); color: #f0c66a; font-weight: 700; font-size: 0.84rem; cursor: pointer; }
.tt-ask:hover { background: rgba(240,198,106,0.18); }

/* CHAT (centerpiece) */
.ch-chat-block { background: linear-gradient(180deg, rgba(240,198,106,0.06), rgba(240,198,106,0.02)); border: 1px solid rgba(240,198,106,0.22); border-radius: 18px; padding: 22px; }
.ch-chat-lede { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 0 16px; }
.ch-chat { background: rgba(10,8,16,0.55); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px; }
.ch-chat-log { min-height: 8px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ch-msg { font-size: 0.92rem; line-height: 1.6; padding: 11px 14px; border-radius: 12px; max-width: 92%; }
.ch-msg--user { align-self: flex-end; background: linear-gradient(135deg, #f3d985, #d4af37 70%); color: #1a1205; font-weight: 600; }
.ch-msg--ai { align-self: flex-start; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.07); }
.ch-msg-tag { display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f0c66a; margin-bottom: 5px; }
.ch-typing { color: #f0c66a; letter-spacing: 3px; }
.ch-chat-foot { font-size: 0.74rem; color: rgba(255,255,255,0.6); text-align: center; margin: 12px 0 4px; min-height: 8px; }
.ch-chat-foot a { color: #f0c66a; font-weight: 700; text-decoration: none; }
.ch-chat-form { display: flex; gap: 8px; margin-top: 12px; }
.ch-chat-input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #fff; font-size: 0.92rem; }
.ch-chat-input:focus { outline: none; border-color: rgba(240,198,106,0.5); }
.ch-chat-send { flex: 0 0 auto; width: 48px; border: none; border-radius: 10px; cursor: pointer; font-size: 1.05rem; color: #1a1205; background: linear-gradient(135deg, #f3d985, #d4af37 60%, #b8902b); }
.ch-chat-send:disabled { opacity: 0.55; cursor: default; }
.ch-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ch-chip-q { font-size: 0.8rem; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(240,198,106,0.3); background: rgba(240,198,106,0.06); color: #f0c66a; cursor: pointer; }
.ch-chip-q:hover { background: rgba(240,198,106,0.14); }

/* Table */
.ch-table { width: 100%; border-collapse: collapse; }
.ch-table th { text-align: left; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.42); padding: 0 10px 9px; font-weight: 600; }
.ch-table td { padding: 11px 10px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 0.92rem; }
.ch-tp { display: flex; align-items: center; gap: 9px; }
.ch-tp-gly { font-size: 1.15rem; color: #f0c66a; width: 18px; text-align: center; }
.ch-ts-gly { color: #f0c66a; margin-right: 6px; }
.ch-house { color: rgba(255,255,255,0.55); }

.ch-bio p { font-size: 0.95rem; line-height: 1.65; color: rgba(255,255,255,0.82); margin: 0; }

/* FAQ */
.ch-faq-item { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 4px 14px; margin-bottom: 10px; background: rgba(255,255,255,0.03); }
.ch-faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #f1eee6; font-size: 0.94rem; }
.ch-faq-item summary::-webkit-details-marker { color: #f0c66a; }
.ch-faq-a { padding: 0 0 14px; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.8); }
.ch-faq-a p { margin: 0 0 10px; }

/* Slim inline CTA (after bio) — deliberately lighter than the big band so the two don't feel duplicated */
.ch-cta-slim { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  text-decoration: none; margin: 0 0 34px; padding: 13px 18px; border-radius: 12px;
  border: 1px solid rgba(240,198,106,0.28); background: rgba(240,198,106,0.05); transition: background .15s ease, border-color .15s ease; }
.ch-cta-slim:hover { background: rgba(240,198,106,0.10); border-color: rgba(240,198,106,0.5); }
.ch-cta-slim > span:first-child { font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.78); }
.ch-cta-slim strong { color: #f1eee6; font-weight: 600; }
.ch-cta-slim-go { flex: 0 0 auto; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: #f0c66a; white-space: nowrap; }

/* CTA */
.ch-cta-band { text-align: center; background: rgba(240,198,106,0.06); border: 1px solid rgba(240,198,106,0.22); border-radius: 16px; padding: 28px 22px; margin-bottom: 28px; }
.ch-cta-band h3 { font-size: 1.18rem; margin: 0 0 8px; }
.ch-cta-band p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0 0 16px; line-height: 1.5; }
.ch-cta-btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 800; letter-spacing: 0.03em; color: #1a1205; background: linear-gradient(135deg, #f3d985, #d4af37 60%, #b8902b); box-shadow: 0 8px 24px rgba(212,175,55,0.32); text-decoration: none; }
.ch-disc { font-size: 0.72rem; color: rgba(255,255,255,0.4); line-height: 1.5; text-align: center; }

/* Glossary (AstroGlossary.enhance) — tap an astro term → definition popup.
   z-index bumped above the tap-tap overlay (tt-ov 99998) so it shows on top. */
.gl-term { border-bottom: 1px dashed rgba(240,198,106,0.55); cursor: pointer; transition: background 0.15s ease; }
.gl-term:hover { background: rgba(240,198,106,0.12); }
.gl-pop { width: 300px; max-width: calc(100vw - 16px); background: #16131d; border: 1px solid rgba(240,198,106,0.30); border-radius: 12px; padding: 13px 15px; box-shadow: 0 12px 44px rgba(0,0,0,0.6); z-index: 100002; color: rgba(255,255,255,0.92); }
.gl-pop-title { font-weight: 700; color: var(--gold, #f0c66a); font-size: 0.95rem; margin-bottom: 6px; }
.gl-pop-body { font-size: 0.9rem; line-height: 1.5; }
.gl-pop-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-style: italic; margin-top: 7px; }
.gl-pop-actions { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.gl-btn { font-size: 0.76rem; padding: 6px 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gl-btn:hover { background: rgba(255,255,255,0.08); }
.gl-btn--ai { border-color: rgba(240,198,106,0.5); color: #f0c66a; font-weight: 600; }
.gl-overlay--modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100001; }

/* Hub */
.chh-page { max-width: 860px; margin: 0 auto; padding: 18px 16px 64px; color: #f1eee6; }
.chh-page h1 { font-size: 1.7rem; margin: 0 0 8px; }
.chh-lede { font-size: 0.98rem; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 0 30px; max-width: 640px; }
.chh-letter { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #f0c66a; margin: 26px 0 10px; }
.chh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.chh-card { display: block; text-decoration: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 13px; padding: 15px 16px; transition: transform .15s ease, border-color .15s ease; }
.chh-card:hover { border-color: rgba(212,175,55,0.45); transform: translateY(-2px); }
.chh-name { font-size: 1.02rem; font-weight: 700; color: #f1eee6; margin-bottom: 4px; }
.chh-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.chh-sub b { color: #f0c66a; font-weight: 600; }
.chh-empty { color: rgba(255,255,255,0.5); }

/* ── Natal-wheel controls — pulled VERBATIM from public-tools natal-chart.ejs
   (download pill + layer-toggle pills + hide renderer dupe download). ── */
  .nt-download{ cursor:pointer; background:linear-gradient(180deg,#f6db84,#d4af37); color:#1a1205;
    border:none; border-radius:999px; padding:12px 30px; font-family:inherit; font-size:.78rem;
    font-weight:800; letter-spacing:.12em; box-shadow:0 8px 22px rgba(0,0,0,.4);
    transition:transform .16s ease, box-shadow .16s ease; }
  .nt-download:hover{ transform:translateY(-2px); box-shadow:0 0 28px rgba(212,175,55,.5); }

  /* the wheel renderer injects its OWN download in .nw-actions — we provide ours, so hide the duplicate */
  .nw-actions{ display:none !important; }

  /* LAYERS bar (copied from features/natal-map.ejs so the renderer's pills style correctly) */
  .an-subnav{ row-gap:6px; }
  .nw-layers{ flex-wrap:wrap; }
  .an-subnav--natal{ display:flex; align-items:center; gap:6px; padding:8px 0; flex-wrap:wrap; justify-content:center; }
  .an-subpill-label--natal{ font-size:.62rem; font-weight:800; letter-spacing:1.6px; text-transform:uppercase;
    color:rgba(0,188,212,.45); padding-right:10px; margin-right:4px; border-right:1px solid rgba(0,188,212,.15); }
  .an-subtab--natal{ background:none; border:none; color:rgba(255,255,255,.4); font-size:.72rem; font-weight:600;
    letter-spacing:1.4px; text-transform:uppercase; cursor:pointer; padding:8px 12px; position:relative; transition:color .2s ease; }
  .an-subtab--natal:hover{ color:rgba(255,255,255,.65); }
  .an-subtab--natal.is-active{ color:#b2ebf2; }
  .an-subtab--natal.is-active::after{ content:''; position:absolute; bottom:0; left:0; width:100%; height:2px;
    background:#00bcd4; box-shadow:0 0 8px rgba(0,188,212,.5); }
