/* Celebrity birth charts (celebrities.php); layout and tokens come from yearly.css */

.cb-grid::before, .cb-grid::after { content: none; display: none; }

.cb-glyph { font-family: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', sans-serif; }

/* Big Three chips */
.cb-b3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cb-b3 li { margin: 0; padding: 6px 14px; font-size: 0.9rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; }
.cb-b3 li span { margin-right: 4px; font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', sans-serif; color: var(--yr-gold); }

.cb-card .cb-b3,
.cb-side-chart .cb-b3 { justify-content: flex-start; margin: 4px 0 6px; }
.cb-card .cb-b3 li,
.cb-side-chart .cb-b3 li { padding: 4px 10px; font-size: 0.8rem; color: var(--yr-ink); background: #F8F4EF; border-color: var(--yr-line); }
.cb-card .cb-b3 li span,
.cb-side-chart .cb-b3 li span { color: var(--yr-bronze); }

/* Hub */
.cb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 56px; padding: 0; list-style: none; }
.cb-card { display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid var(--yr-line); border-radius: 18px; overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.cb-card:hover { box-shadow: 0 12px 28px rgba(26, 15, 46, 0.08); transform: translateY(-2px); }
.cb-card__main { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 22px; color: inherit; text-decoration: none; }
.cb-card__main:hover { text-decoration: none; }
.cb-card__wheel { display: inline-grid; place-items: center; width: 52px; height: 52px; font-family: 'Noto Sans Symbols', sans-serif; font-size: 1.5rem; color: #fff; background: radial-gradient(circle at 30% 25%, var(--yr-gold), var(--yr-night) 85%); border-radius: 50%; }
.cb-card__name { margin-top: 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--yr-ink); }
.cb-card__role { font-size: 0.92rem; line-height: 1.45; color: var(--yr-muted); }
.cb-card__meta { flex: 1; font-size: 0.82rem; font-weight: 700; color: var(--yr-bronze); }
.cb-card__month { display: grid; gap: 2px; padding: 14px 22px; color: rgba(255, 255, 255, 0.85); text-decoration: none; background: linear-gradient(150deg, var(--yr-night-2), var(--yr-night)); }
.cb-card__month:hover { color: #fff; text-decoration: none; }
.cb-card__month span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yr-gold); }
.cb-card__month strong { font-size: 0.98rem; line-height: 1.4; }

/* Birth data */
.cb-data { margin: 0 0 40px; padding: 20px 22px; background: #FBF4EC; border: 1px solid #EFDCC7; border-radius: 16px; }
.cb-data dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.cb-data dl > div:nth-child(n+4) { grid-column: 1 / -1; }
.cb-data dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yr-bronze); }
.cb-data dd { margin: 2px 0 0; line-height: 1.5; color: var(--yr-ink); }

.cb-rating { display: inline-block; padding: 2px 10px; font-weight: 700; border-radius: 999px; }
.cb-rating--aa, .cb-rating--a { color: #2F6B3A; background: rgba(110, 154, 91, 0.16); }
.cb-rating--b { color: #7A5230; background: rgba(212, 165, 116, 0.25); }
.cb-rating--c, .cb-rating--dd { color: #9A3B28; background: rgba(192, 88, 63, 0.14); }

/* Chart wheel and planet table */
.cb-chart__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.cb-chart__wheel { margin: 0; }
.cb-chart__wheel figcaption,
.cb-chart__note { margin-top: 8px; font-size: 0.85rem; line-height: 1.55; color: #8F8993; }

.cb-wheel { display: block; width: 100%; height: auto; }
.cb-wheel text { text-anchor: middle; dominant-baseline: central; }
.cb-wheel__bg { fill: #FFFCF8; stroke: var(--yr-ink); stroke-width: 1.2; }
.cb-wheel__line { fill: none; stroke: #CFC6BC; stroke-width: 1; }
.cb-wheel__tick { stroke: #CFC6BC; stroke-width: 0.8; }
.cb-wheel__sign { font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', sans-serif; font-size: 20px; }
.cb-wheel__sign--fire { fill: #E0703A; }
.cb-wheel__sign--earth { fill: #6E9A5B; }
.cb-wheel__sign--air { fill: #7C8FD6; }
.cb-wheel__sign--water { fill: #3A9AB5; }
.cb-wheel__cusp { stroke: #DDD5CC; stroke-width: 1; }
.cb-wheel__cusp--angle { stroke: var(--yr-ink); stroke-width: 1.6; }
.cb-wheel__house { font-size: 11px; fill: #A39B94; }
.cb-wheel__aspect { stroke-width: 1.1; opacity: 0.75; }
.cb-wheel__aspect--hard { stroke: #C0583F; }
.cb-wheel__aspect--soft { stroke: #3A7FB5; }
.cb-wheel__mark { stroke: var(--yr-ink); stroke-width: 1.2; }
.cb-wheel__planet { font-family: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', sans-serif; font-size: 19px; fill: var(--yr-night); }
.cb-wheel__angle { font-size: 11px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: var(--yr-ink); stroke-width: 6px; stroke-linejoin: round; }

.cb-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cb-table th, .cb-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #F1EDE8; }
.cb-table thead th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yr-bronze); }
.cb-table tbody th { font-weight: 700; color: var(--yr-ink); white-space: nowrap; }
.cb-table td { color: #45404A; }
.cb-table .cb-glyph { display: inline-block; min-width: 1.4em; margin-right: 4px; color: var(--yr-bronze); }
.cb-table__angle th, .cb-table__angle td { background: #FBF7F2; }
.cb-table abbr { text-decoration: none; color: #C0583F; }

/* Forecast teaser */
.cb-now { display: grid; gap: 6px; text-decoration: none; }
.cb-now:hover { text-decoration: none; }
.cb-now__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: #fff; }
.cb-now__text { line-height: 1.65; }
.cb-now__cta { font-weight: 700; color: var(--yr-gold); }

/* Natal aspects */
.cb-aspects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cb-aspects li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; background: #fff; border: 1px solid var(--yr-line); border-left: 3px solid var(--yr-gold); border-radius: 10px; }
.cb-aspects li.cb-aspects--hard { border-left-color: #C0583F; }
.cb-aspects li.cb-aspects--soft { border-left-color: #3A7FB5; }
.cb-aspects .cb-glyph { color: var(--yr-bronze); }
.cb-aspects__orb { font-size: 0.8rem; color: #8F8993; }

/* Month lists */
.cb-months { display: grid; gap: 14px; }
.cb-months h3 { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--yr-bronze); }
.cb-months ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cb-months li { margin: 0; }
.cb-months a { display: block; padding: 6px 12px; font-size: 0.9rem; font-weight: 700; color: var(--yr-ink); text-decoration: none; background: #F8F4EF; border-radius: 999px; }
.cb-months a:hover { background: #F5EADD; }
.cb-months a[aria-current] { color: var(--yr-night); background: var(--yr-gold); }

/* Month page */
.cb-pager { flex-wrap: wrap; justify-content: center; }
.cb-pager a { padding: 7px 14px; font-size: 0.9rem; }

.cb-transit--hard { border-left: 3px solid #C0583F !important; }
.cb-transit--soft { border-left: 3px solid #3A7FB5 !important; }
.cb-transit--conj { border-left: 3px solid var(--yr-gold) !important; }
.cb-transit .cb-glyph { margin-right: 4px; color: var(--yr-bronze); }

.cb-event--eclipse { border-left-color: #3A9AB5; }
.cb-event--station { border-left-color: #C0583F; }
.cb-event--transit { border-left-color: #7C8FD6; }
.cb-event--mars { border-left-color: #E0703A; }

.cb-sky { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.cb-sky li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--yr-line); border-radius: 12px; }
.cb-sky .cb-glyph { grid-row: span 2; font-size: 1.3rem; color: var(--yr-bronze); }
.cb-sky strong { color: var(--yr-ink); }
.cb-sky span:last-child { font-size: 0.88rem; line-height: 1.45; color: var(--yr-muted); }

.cb-side-chart { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.cb-side-chart:hover { text-decoration: none; border-color: #EFDCC7; }

@media (max-width: 1000px) {
  .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cb-grid,
  .cb-chart__grid,
  .cb-aspects,
  .cb-sky,
  .cb-data dl { grid-template-columns: 1fr; }
  .cb-data dl > div { grid-column: auto; }
}

/* Hub categories */
.cb-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 36px; }
.cb-cats a { padding: 8px 16px; font-size: 0.9rem; font-weight: 700; color: var(--yr-ink); text-decoration: none; background: #fff; border: 1px solid var(--yr-line); border-radius: 999px; }
.cb-cats a:hover { background: #F8F4EF; }
.cb-cat-title { margin: 0 0 16px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; color: var(--yr-ink); scroll-margin-top: 90px; }
.cb-grid + .cb-cat-title { margin-top: -16px; }
.cb-members td, .cb-members th { white-space: normal; }

/* Photos (Wikimedia Commons, credited on each page) */
.cb-card__photo { position: relative; display: inline-block; width: 64px; height: 64px; }
.cb-card__img { display: block; width: 64px; height: 64px; object-fit: cover; object-position: center top; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--yr-line); }
.cb-card__sign { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 26px; height: 26px; font-family: 'Noto Sans Symbols', sans-serif; font-size: 0.85rem; color: #fff; background: radial-gradient(circle at 30% 25%, var(--yr-gold), var(--yr-night) 85%); border: 2px solid #fff; border-radius: 50%; }
.cb-hero__photo { display: block; width: 112px; height: 112px; margin: 6px auto 14px; object-fit: cover; object-position: center top; border: 3px solid var(--yr-gold); border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.yr-hero__inner > .cb-hero__photo[width="88"] { width: 88px; height: 88px; }
.cb-data__photo dd, .cb-credit, .cb-credits { font-size: 0.82rem; color: var(--yr-muted); }
.cb-data__photo a, .cb-credit a, .cb-credits a { color: inherit; }
.cb-credits { margin: 28px 0 8px; }
.cb-credits summary { cursor: pointer; font-weight: 700; }
.cb-credits ul { margin: 10px 0 0; padding-left: 18px; columns: 2 280px; }
