/* Cribbage hand calculator. Builds on the scorekeeper styles in site.css. */
.cc { max-width: 46rem; margin-top: 1.25rem; }
.cc-table { gap: 1.1rem; }
.cc-tabs .sk-segbtn { font-size: 1.05rem; }
.cc-panel { display: grid; gap: .8rem; }
.cc-panel[hidden] { display: none; }
.cc-panel .sk-prompt { font-size: 1.15rem; }
.cc-slots { gap: .35rem; }
.cc-slots .sk-slot:last-child:nth-child(5) { margin-left: .6rem; }
.cc-step { margin: 0; }
.cc-hint { min-height: 1.35em; }
.cc-out:empty { display: none; }
.cc-card { background: #FBFCFB; color: #1B2420; border-radius: 10px; padding: .9rem 1rem 1rem; display: grid; gap: .6rem; }
.cc-card p { margin: 0; }
.cc-total { font: 900 1.25rem/1 var(--display); color: #134A33; }
.cc-total b { font-size: 2.6rem; letter-spacing: -.01em; }
.cc-cards, .cc-best { font-weight: 600; line-height: 1.6; }
.cc-best { font-size: 1.08rem; }
.cc-plus, .cc-dim { color: #4E5B54; font-weight: 400; }
.cc-dim { font-size: .93rem; }
.cc-odds { font-size: .97rem; color: #134A33; font-weight: 600; }
.cc-card .sk-inl { font-size: 1.02rem; }
.cc-card .sk-red { color: #C2302C; }
.cc-break, .cc-disc { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.cc-break td, .cc-break th { padding: .3rem .4rem .3rem 0; border-bottom: 1px solid #D9E1DC; text-align: left; vertical-align: top; }
.cc-break .num, .cc-disc .num { text-align: right; padding-right: 0; padding-left: .6rem; white-space: nowrap; }
.cc-group th, .cc-group td { font-weight: 700; padding-top: .55rem; border-bottom-color: #B9C6BF; }
.cc-sum th, .cc-sum td { font-weight: 700; border-top: 2px solid #1B2420; border-bottom: 0; }
.cc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cc-disc th, .cc-disc td { padding: .4rem .5rem .4rem 0; border-bottom: 1px solid #D9E1DC; text-align: left; vertical-align: top; }
.cc-disc thead th { font-size: .9rem; color: #4E5B54; font-weight: 700; }
.cc-disc td:first-child { white-space: nowrap; }
.cc-range { display: block; font-size: .8rem; color: #4E5B54; }
.cc-top td { background: #FFF4D6; }
.cc-top td:first-child { box-shadow: inset 4px 0 0 #E3A21F; padding-left: .4rem; }
.cc-credit { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-soft); text-align: right; }
@media (max-width: 30rem) {
  .cc-slots .sk-mini { width: 2.3rem; height: 3.1rem; }
  .cc-slots .sk-slot:last-child:nth-child(5) { margin-left: .25rem; }
  .cc-disc { font-size: .95rem; }
  .cc-disc .cc-keep { display: none; }
}
/* the numbers tables on the page */
.cc-odds-table td.num, .cc-odds-table th.num { text-align: right; }
.cc-embed textarea { width: 100%; min-height: 6.5rem; font: 500 .9rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: .6rem .7rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); color: var(--ink); }
