/* Act 12 · Where are the most reactive elements? */
/* period 3 oxides as an indicator strip: colour only in the bar above each formula */
.c3-ox { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 6px 0 16px; }
.c3-ox span { display: grid; gap: 4px; justify-items: center; padding-top: 30px; position: relative; }
.c3-ox span::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px; border-radius: 3px; background: color-mix(in srgb, var(--c) 78%, var(--void)); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 28%, transparent); }
.c3-ox b { font-size: clamp(13px, 3.3vw, 20px); font-weight: 500; color: var(--bone); white-space: nowrap; }
.c3-ox small { font-size: 13px; color: var(--mix-3); writing-mode: horizontal-tb; }
@media (max-width: 520px) { .c3-ox { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; } }
@media (min-width: 900px) { .c3-ox { margin-left: var(--xp-col); max-width: 760px; } }

/* radii across a row, to one scale */
.c3-bars { display: grid; gap: 8px; width: 100%; max-width: 520px; }
.c3-bars-k { margin: 6px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mix-3); }
.c3-bars-row { display: flex; align-items: end; gap: 4px; height: 120px; border-bottom: 1px solid var(--hairline); }
.c3-bars-row i { flex: 1; height: calc(var(--v) / 186 * 100%); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--c) 72%, var(--void)); }

/* three metals on one playhead */
.c3-trio .c3-trio-frames { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--xp-bar) + 128px); bottom: calc(clamp(24px, 6svh, 64px) + 70px); display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px; }
.c3-trio .c3-trio-f { position: relative; overflow: hidden; }
.c3-trio .c3-trio-l { position: absolute; z-index: 3; left: var(--xp-g); bottom: 8px; padding: 4px 10px; border-radius: 4px; background: rgba(11, 11, 12, .76); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mix-2); }
.c3-trio .c3-trio-l b { color: var(--bone); font-weight: 500; text-transform: none; margin-right: 4px; }
@media (min-width: 900px) {
  .c3-trio .c3-trio-frames { left: var(--xp-g); right: var(--xp-g); top: calc(var(--xp-bar) + 170px); bottom: calc(clamp(24px, 6svh, 64px) + 70px); grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .c3-trio .c3-trio-f { border-radius: 4px; }
}
html.xp-reduced .c3-trio .c3-trio-frames { position: relative; top: auto; bottom: auto; height: 80svh; }

/* E–O–H: which link breaks */
.c3-eoh { display: grid; gap: 16px; }
.c3-eoh p { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c3-eoh .c3-tile { width: 52px; }
.c3-eoh i { font-style: normal; color: var(--mix-2); font-size: 18px; }
.c3-eoh i.cut { color: var(--bone); }
.c3-eoh em { flex-basis: 100%; font-style: normal; font-size: 14px; color: var(--mix-2); }
