/* Act 11 · Valence, and the odd ones at the top */
/* valence across the s and p groups: numbers, then a hill of bars */
.c3-val { display: grid; gap: 6px; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.c3-val-row { display: grid; grid-template-columns: minmax(64px, 1.6fr) repeat(8, minmax(0, 1fr)); gap: 4px; align-items: end; }
.c3-val-row > * { text-align: center; }
.c3-val-row b { font-size: clamp(15px, 4.2vw, 26px); font-weight: 500; color: var(--bone); white-space: nowrap; }
.c3-val-row:last-child b { font-size: clamp(14px, 3.6vw, 22px); line-height: 1.1; align-self: start; }
.c3-val-k span { font-size: 13px; letter-spacing: .06em; color: var(--mix-3); }
.c3-val-l { text-align: left !important; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mix-3); line-height: 1.2; }
.c3-val-bars { height: 92px; border-bottom: 1px solid var(--hairline); }
.c3-val-bars i { display: block; height: calc(var(--v) * 22px + 2px); margin: 0 18%; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
@media (min-width: 900px) { .c3-val { margin-left: var(--xp-col); max-width: 760px; } }

/* atoms and their ions to one scale (1 pm = 0.62 px on phones, 0.9 on desktop) */
.c3-ions { --k: .62px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; margin: 8px 0 18px; }
.c3-ions-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); --k: 1.4px; }
.c3-ions > div { position: relative; display: grid; justify-items: center; gap: 6px; }
.c3-ions > div > b { font-size: 20px; font-weight: 500; color: var(--bone); }
.c3-ions > div > small { font-size: 13px; color: var(--mix-2); text-align: center; line-height: 1.3; }
.c3-ion-a { width: calc(var(--d) * var(--k)); aspect-ratio: 1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--bone) 45%, transparent); display: grid; place-items: center; }
.c3-ion-i { width: calc(var(--d) * var(--k)); aspect-ratio: 1; border-radius: 50%; display: block; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c) 95%, white), color-mix(in srgb, var(--c) 55%, var(--void))); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 35%, transparent); }
@media (min-width: 900px) { .c3-ions { --k: .9px; margin-left: var(--xp-col); max-width: 720px; } .c3-ions-2 { --k: 2px; margin-left: 0; } }
