/* AstroCEO - Chinese astrology section (My Universe) and the free page /chinese-zodiac/. Loaded only when needed.
   Element colours carry a label and a number everywhere they are used (never colour alone). */
.cn-sec, .cn-page { --cn-wood: #7BC98A; --cn-fire: #F58B73; --cn-earth: #DDB56A; --cn-metal: #CDD3DF; --cn-water: #72B5EE }
html.day .cn-sec, html.day .cn-page, .cn-page.cn-light { --cn-wood: #23743A; --cn-fire: #B93A22; --cn-earth: #8A6410; --cn-metal: #555E70; --cn-water: #1C63A8 }
.cn-sec .el-wood, .cn-page .el-wood { color: var(--cn-wood) } .cn-sec .el-fire, .cn-page .el-fire { color: var(--cn-fire) } .cn-sec .el-earth, .cn-page .el-earth { color: var(--cn-earth) }
.cn-sec .el-metal, .cn-page .el-metal { color: var(--cn-metal) } .cn-sec .el-water, .cn-page .el-water { color: var(--cn-water) }
.cn-zh { font-family: "Noto Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", serif; unicode-bidi: isolate }
.cn-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block }
.cn-zodiac, .cn-dm { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center }
.cn-big { font-size: 3.2rem; line-height: 1; width: 1.35em; height: 1.35em; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .06) }
.cn-ztx { display: grid; gap: 3px; min-width: 0 } .cn-zname { font-size: 1.25rem }
.cn-ztext { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 6px } .cn-ztext p { margin: 0; line-height: 1.55 }
.cn-table { width: 100%; border-collapse: separate; border-spacing: 6px 0; table-layout: fixed; text-align: center }
.cn-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.cn-table thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 2px; color: var(--muted, #b9bdd3); font-weight: 700 }
.cn-table thead th, .cn-table td { text-align: center }
.cn-table td { padding: 8px 3px 10px; background: rgba(8, 10, 28, .42); vertical-align: top; min-width: 0; overflow-wrap: anywhere }
.cn-table tbody tr:nth-child(2) td { border-radius: 14px 14px 0 0 } .cn-table tbody tr:last-child td { border-radius: 0 0 14px 14px }
.cn-table .cn-day { outline: 0 } .cn-table td.cn-day { background: rgba(var(--mo-rgb, 224, 177, 90), .14) } .cn-table th.cn-day { color: var(--mo-a2, #F4D58A) }
.cn-table .cn-lab th { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; text-align: start; color: var(--faint, #8f94ad); font-weight: 600; padding: 8px 4px 3px }
.cn-table tbody tr:first-child th { padding-top: 0 }
.cn-ch { display: block; font-size: 2rem; line-height: 1.15 } .cn-py { display: block; font-size: .82rem; color: var(--muted, #b9bdd3) }
.cn-table small { display: block; font-size: .74rem; line-height: 1.3; color: var(--fg, #fff); opacity: .86; margin-top: 2px }
.cn-hid { display: block; font-size: 1.05rem; letter-spacing: .12em } .cn-about { opacity: .7 !important }
.cn-unk .cn-q { display: block; font-size: 2rem; line-height: 1.15; color: var(--faint, #8f94ad) }
.cn-notes { display: grid; gap: 6px } .cn-notes p { margin: 0 } .cn-differs { padding: 10px 12px; border-radius: 14px; background: rgba(var(--mo-rgb, 224, 177, 90), .12); line-height: 1.5 }
.cn-bal h3, .cn-cycle h3, .cn-compat h3, .cn-roles h3, .cn-luck h3, .cn-method h3 { margin: 4px 0 6px; font-size: 1.05rem }
.cn-bal p, .cn-cycle p, .cn-compat p { margin: 6px 0 0; line-height: 1.5 }
.cn-bars { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 7px }
.cn-bar { display: grid; grid-template-columns: minmax(5.2em, max-content) minmax(0, 1fr) 1.4em; gap: 10px; align-items: center }
.cn-bname { font-size: .9rem; font-weight: 600; white-space: nowrap } .cn-bn { color: var(--fg, #fff); text-align: end }
.cn-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; display: block }
.cn-fill { display: block; height: 100%; border-radius: 999px; background: currentColor; min-width: 0 }
.cn-cycle, .cn-compat { display: grid; gap: 8px } .cn-cycle h3, .cn-compat h3 { margin-bottom: 0 }
.cn-yr b, .cn-pair b { font-size: 1rem !important; line-height: 1.4 } .cn-yr p, .cn-pair p { margin: 2px 0 0; font-size: .92rem }
.cn-yr .cn-zh, .cn-pair .cn-zh { font-size: 1.3rem }
.cn-more { display: grid; gap: 14px } .cn-more p { line-height: 1.55; margin: 6px 0 }
.cn-rolelist { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px } .cn-rolelist li { font-size: .9rem; line-height: 1.45 } .cn-rolelist span { color: var(--muted, #b9bdd3) }
.cn-luckbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 } .cn-luckbtns [aria-pressed="true"] { background: rgba(var(--mo-rgb, 224, 177, 90), .3) } .cn-luckbtns [hidden] { display: none }
.cn-lucktable td { vertical-align: top } .cn-lucktable small { display: block; color: var(--muted, #b9bdd3); font-size: .78rem } .cn-ch2 { font-size: 1.25rem }
html.day .cn-table td, html.day .cn-big { background: rgba(20, 24, 48, .06) } html.day .cn-track { background: rgba(20, 24, 48, .1) }
/* the free page */
.cn-page .cn-out { display: grid; gap: 14px; text-align: start }
.cn-page .uv-card { border-radius: 16px; padding: 14px; background: rgba(255, 255, 255, .04); display: grid; gap: 4px; min-width: 0 }
.cn-page .uv-k { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold, #E0B15A) }
.cn-page .uv-note { font-size: .88rem; opacity: .75 } .cn-page .uv-scroll { overflow-x: auto; max-width: 100% } .cn-page .uv-link { font-weight: 600 }
.cn-page .cn-table td { background: rgba(255, 255, 255, .05) } .cn-page .cn-table td.cn-day { background: rgba(224, 177, 90, .14) }
.cn-page .cn-hero { display: block; width: 120px; height: 120px; margin: 0 0 8px; color: var(--gold, #E0B15A); --ds-art-2: #F4D58A }
.cn-page .cn-animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 0; list-style: none }
.cn-page .cn-animals li { border: 1px solid var(--line, rgba(255, 255, 255, .12)); border-radius: 14px; padding: 12px } .cn-page .cn-animals h3 { margin: 0 0 4px } .cn-page .cn-animals p { margin: 0; font-size: .92rem }
.cn-page .cn-years { direction: ltr; unicode-bidi: isolate; font-size: .8rem; opacity: .75; display: block; margin-top: 6px }
