/* contest8 (SPEC-v8 C1): /contest, /contest/{key}, /contest/rules, entrant cards. Uses the board's tokens only. */
.ct { padding-top: var(--space-6); }
.ct h2 { font-size: var(--fs-28); font-weight: 800; font-stretch: 75%; line-height: 1.15; margin: var(--space-12) 0 var(--space-3); }
.ct h3 { font-size: var(--fs-20); font-weight: 700; margin: var(--space-6) 0 var(--space-2); }
.ct p { line-height: 1.55; }
.ct-note { color: var(--text-dim); font-size: var(--fs-14); margin-top: var(--space-2); max-width: 72ch; }
.ct-eyebrow { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 var(--space-2); }
.ct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-12); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); background: var(--surface); }
.ct-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); display: inline-block; }
.ct-pill.is-open i { background: var(--up); }
.ct-pill.is-closed i { background: var(--closed, var(--text-dim)); }
.ct-hero { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.ct-hero .page-title { font-size: clamp(2.4rem, 3vw + 1.3rem, 4rem); }
.ct-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.ct-ctas .btn-trade { min-height: 48px; padding: 0 22px; font-size: var(--fs-16); }
/* fx-ipo (FIXES-W8 T1, U7): a long label ("See Thanksgiving 2026: US stocks, graded at the Fri 27 Nov reopen") wraps
   instead of widening the iPhone page to 551 px (.btn-trade is nowrap board-wide) */
.ct-ctas > * { min-width: 0; max-width: 100%; }
.ct-ctas .btn-trade { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; overflow-wrap: anywhere; }
.ct-ctas .btn-ghost { justify-content: center; text-align: center; }
.ct-status { padding: var(--space-4); }
.ct-status dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: var(--fs-14); }
.ct-status dt { color: var(--text-dim); }
.ct-status dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-status h2 { margin: 0 0 var(--space-3); font-size: var(--fs-20); }
.ct-big { font-size: var(--fs-44); font-weight: 800; font-stretch: 75%; line-height: 1; font-variant-numeric: tabular-nums; }
.ct-steps { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); counter-reset: s; }
.ct-steps li { padding: var(--space-4); counter-increment: s; }
.ct-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-14); margin-bottom: var(--space-2); }
.ct-steps b { display: block; margin-bottom: 4px; }
.ct-steps span { color: var(--text-dim); font-size: var(--fs-14); line-height: 1.5; display: block; }
.ct-formula { padding: var(--space-4); margin-top: var(--space-3); font-size: var(--fs-14); }
.ct-formula code, .ct-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
.ct-formula ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.ct-formula li + li { margin-top: 6px; }
.ct-prize { padding: var(--space-4); margin-top: var(--space-3); }
.ct-prize p + p { margin-top: var(--space-2); }
.ct-tw { overflow-x: auto; margin-top: var(--space-3); }
.ct-t { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.ct-t th, .ct-t td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ct-t thead th { font-size: var(--fs-12); color: var(--text-dim); font-weight: 600; }
.ct-t .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-t small { display: block; color: var(--text-dim); font-size: var(--fs-12); font-weight: 400; }
.ct-t tr.is-base td { color: var(--text-dim); font-style: italic; }
.ct-t a { font-weight: 600; }
.ct-up { color: var(--up); font-weight: 700; }
.ct-down { color: var(--down); font-weight: 700; }
.ct-empty { padding: var(--space-4); color: var(--text-dim); }
.ct-form { padding: var(--space-4); margin-top: var(--space-3); }
/* integrate8: collapsible market groups in the entry form (phones: all closed = a short page; ≥ 900 px: contest.js opens them) */
.ct-grp { border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: var(--space-3); background: var(--bg); }
.ct-grp > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; min-height: 52px; padding: 12px 44px 12px 14px; position: relative; }
.ct-grp > summary::-webkit-details-marker { display: none; }
.ct-grp > summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); }
.ct-grp[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ct-grp > summary:focus-visible { outline: 2px solid var(--focus, var(--text)); outline-offset: 2px; border-radius: var(--radius-m); }
.ct-grp-name { font-weight: 700; font-size: var(--fs-16); }
.ct-grp-n { font-size: var(--fs-14); color: var(--text-dim); text-align: right; white-space: nowrap; }
.ct-grp-picked { color: var(--up); font-weight: 700; }
.ct-grp-lock { grid-column: 1 / -1; font-size: var(--fs-12); color: var(--text-dim); }
.ct-grp .ct-mk { padding-left: 14px; padding-right: 14px; border-top: 1px solid var(--line); border-bottom: 0; }
.ct-grp .ct-tw { margin: 0; padding: 0 8px 8px; }
.ct-windows { background: transparent; }
.ct-count { margin-top: var(--space-3); font-size: var(--fs-14); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ct-count.is-full { color: var(--text); font-weight: 600; }
.ct-count.is-over { color: var(--down); font-weight: 700; }
.ct-mk { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ct-mk:last-of-type { border-bottom: 0; }
.ct-mk .nm b { display: block; }
.ct-mk .nm small, .ct-mk .px small { display: block; color: var(--text-dim); font-size: var(--fs-12); }
.ct-mk .px { font-variant-numeric: tabular-nums; font-size: var(--fs-14); }
.ct-mk label.in { display: grid; gap: 4px; font-size: var(--fs-12); color: var(--text-dim); }
.ct-mk input[type=text] { width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.ct-mk input:focus-visible, .ct-form input:focus-visible { outline: 2px solid var(--focus, var(--text)); outline-offset: 1px; }
.ct-mk .vs { font-size: var(--fs-12); color: var(--text-dim); min-height: 1.2em; }
.ct-mk.is-locked { opacity: .6; }
.ct-opts { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.ct-opts label { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); line-height: 1.45; }
.ct-opts input[type=checkbox] { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.ct-opts .ct-alias, .ct-alias { display: grid; gap: 4px; font-size: var(--fs-14); }
.ct-alias input { min-height: 44px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; max-width: 280px; }
.ct-submit { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.ct-submit button { min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius-s); background: var(--btn-bg, var(--text)); color: var(--btn-fg, var(--bg)); font: inherit; font-weight: 700; cursor: pointer; }
.ct-submit button[disabled] { opacity: .55; cursor: progress; }
.ct-msg { font-size: var(--fs-14); }
.ct-msg.is-err { color: var(--down); }
.ct-msg.is-ok { color: var(--up); }
.ct-regional { padding: var(--space-3) var(--space-4); margin-top: var(--space-3); font-size: var(--fs-14); border-left: 3px solid var(--text-dim); }
/* entrant card: readable at 300 px */
.ct-card { max-width: 560px; padding: var(--space-4); margin-top: var(--space-4); }
.ct-card-head { display: flex; justify-content: space-between; gap: var(--space-2); align-items: baseline; flex-wrap: wrap; }
.ct-card-head b { font-size: var(--fs-20); }
.ct-card-head span { font-size: var(--fs-12); color: var(--text-dim); }
.ct-card .ct-big { margin-top: var(--space-3); }
.ct-card .sub { color: var(--text-dim); font-size: var(--fs-14); margin-top: 4px; }
.ct-card ul.calls { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.ct-card ul.calls li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-14); }
.ct-card ul.calls li small { grid-column: 1 / -1; color: var(--text-dim); font-size: var(--fs-12); line-height: 1.45; }
.ct-card .ver { margin-top: var(--space-3); font-size: var(--fs-12); color: var(--text-dim); line-height: 1.5; }
.ct-card .ver b { color: var(--text); }
.ct-share { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.ct-toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.ct-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--fs-14); }
.ct-rules ol, .ct-rules ul { padding-left: 1.3em; }
.ct-rules p { max-width: 76ch; }
.ct-t .show-sm { display: none; }
.ct-rules li + li { margin-top: var(--space-2); }
.ct-rules li { line-height: 1.55; max-width: 76ch; }
@media (max-width: 860px) {
  .ct-hero { grid-template-columns: minmax(0, 1fr); }
  .ct-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ct-mk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ct-mk label.in { grid-column: 1 / -1; }
  .ct-t .hide-sm { display: none; }
  .ct-t small.show-sm { display: block; }
  .ct-big { font-size: var(--fs-28); }
  .ct-ctas .btn-trade, .ct-ctas .btn-ghost { flex: 1 1 100%; }
}
/* fx-contest (FIXES-W8): `.btn-ghost` sets display, which beat the [hidden] attribute: "Your entry card" showed (empty)
   before any entry was made */
.ct [hidden] { display: none !important; }
/* prizes12 (D-2026-11-15-prizes): badges, the verified winner line, the points copy, podiums (Hall of Fame). */
.ct-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ct-badge { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-12); font-weight: 600; line-height: 1.5; background: var(--surface); color: var(--text); white-space: nowrap; }
.ct-badge.is-winner, .ct-badge.is-season { border-color: var(--up); }
.ct-winner { display: inline-block; margin: 0 0 var(--space-2); padding: 4px 12px; border: 1px solid var(--up); border-radius: 999px; font-size: var(--fs-14); }
.ct-points-copy { margin-top: var(--space-3); padding: var(--space-3); border: 1px dashed var(--line); border-radius: 8px; font-size: var(--fs-14); color: var(--text-dim); max-width: 72ch; }
.ct-points-copy strong { color: var(--text); font-weight: 600; }
.ct-card-pts { margin-top: var(--space-2); }
.ct-hof-w, .ct-hof-s { padding: var(--space-4); margin-top: var(--space-3); }
.ct-hof-w h3 small { color: var(--text-dim); font-weight: 400; font-size: var(--fs-12); }
.ct-podium { margin: var(--space-2) 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.ct-podium li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: var(--fs-14); min-width: 0; }
.ct-podium li b { overflow-wrap: anywhere; }
.ct-podium small { color: var(--text-dim); font-size: var(--fs-12); }
.ct-place { display: inline-grid; place-items: center; min-width: 38px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-12); font-weight: 700; }
.ct-pts td:first-child { white-space: normal; }
.ct-season .page-title, .ct-hof .page-title { font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.4rem); }
/* empty13: before calls open */
.ct-dim { color: var(--text-dim); }
.ct-opens { margin-top: var(--space-3); font-size: var(--fs-14); }
