/* Page codes in the facts bar, all screen sizes (components/ui/CodePanel.tsx CodeKeys). A static file: imported CSS is copied into every page and counts against the worker size limit. */
.cp-digits { display: flex; justify-content: center; gap: 5px; width: 100%; }
/* keys shrink to fit a narrow cell instead of spilling out of it (a 4-digit code lost its last key) */
.cp-digits > .cp-key { flex: 1 1 0; min-width: 0; max-width: 2.15rem; }
.cp-key { display: grid; place-items: center; width: 2.15rem; height: 2.6rem; border-radius: 7px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: #fff; background: linear-gradient(180deg, #2a2536, #15131d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 0 #0a0910, 0 0 0 1px rgba(254, 78, 181, 0.45); }
.cp-note { display: block; flex-basis: 100%; margin-top: 0.45rem; font-family: var(--font-sans, inherit); font-size: 0.78rem; font-weight: 500; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--text-secondary); }
/* the code cell stands out from its neighbours: pink glow, pink label */
.mw-facts > .mw-fact--code, .gq-item--keys { background: radial-gradient(120% 120% at 50% 0%, rgba(254, 78, 181, 0.2), rgba(254, 78, 181, 0.05) 70%), var(--bg-void); box-shadow: inset 0 0 0 1.5px rgba(254, 78, 181, 0.55); }
.mw-facts > .mw-fact--code dt, .gq-item--keys dt { color: var(--accent-pink); }
.mw-facts > .mw-fact--code dd, .gq-item--keys dd { font-family: inherit; font-size: inherit; min-width: 0; }
.mw-facts > .mw-fact--code { min-width: 0; }
.gq .gq-item--keys { grid-column: 1 / -1; }
.gq .gq-item--keys dd { display: flex; flex-flow: row wrap; justify-content: center; align-items: flex-start; gap: 1rem 2.2rem; font-family: inherit; font-size: inherit; letter-spacing: normal; text-shadow: none; }
.gq-keys { display: flex; flex-direction: column; align-items: center; max-width: 15rem; }
@media (max-width: 767px) {
  body .mw-facts > .mw-fact--code { align-items: center; padding-block: 0.7rem; }
  body .mw-facts > .mw-fact--code dd { text-align: left; }
  .cp-digits { justify-content: flex-start; }
  .gq-item--keys .cp-digits { justify-content: center; }
  .cp-key, .cp-digits > .cp-key { width: 1.95rem; max-width: 1.95rem; height: 2.35rem; font-size: 1.5rem; }
}
/* phones: the codes cell is the first child, so the "lone last tile spans the row" rule counts one off */
@media (max-width: 639px) {
  .gq-item--keys ~ .gq-item:last-child:nth-child(odd) { grid-column: auto; }
  .gq-item--keys ~ .gq-item:last-child:nth-child(even) { grid-column: 1 / -1; }
  .gq-keys + .gq-keys { margin-top: 0.9rem; }
}
