/* Public pages (RP-30): landing, how it works, rules, walkthrough. Tokens come from tokens.css. */
.pub-hero { display: grid; grid-template-columns: 1.9fr 1fr; gap: 56px; align-items: start; }
.pub-hero h1 { font-size: 46px; }
/* Where an admin-entered contest name renders (up to 60 characters, RP-V0-78), an unbroken one wraps inside its grid cell. */
.pub-contest-hero h1, .pub-contest-row h3 { overflow-wrap: anywhere; }
.pub-dates { margin-top: 26px; max-width: 840px; }
.pub-date-line { display: block; }
.pub-prize-big { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pub-prize-cap { color: var(--teal-light); font-size: 16px; margin-bottom: 14px; }
.pub-prize-facts { display: block; font-size: 13px; line-height: 1.7; border-bottom: 0; }
.pub-prize-facts span { display: block; }
.pub-prize-note { min-height: 1.45em; margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,0.85); }
.pub-three { margin-top: 28px; }
.pub-three .card { padding: 24px 28px; }
.pub-three h3 { font-size: 18px; margin-bottom: 8px; }
.pub-three .note { font-size: 14px; }
.pub-how { margin-top: 44px; }
.pub-how h2 { margin-bottom: 16px; }
.pub-how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pub-how li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-size: 14px; }
.pub-how li b { display: block; color: var(--navy); margin-bottom: 6px; }
.pub-how li i { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.pub-how .note { margin-top: 14px; }
.pub-test-notice { margin-bottom: 24px; }
.pub-contests { margin-top: 28px; }
.pub-contests h2 { margin-bottom: 16px; }
.pub-contest-list .card { padding: 24px 28px; }
.pub-contest-list h3 { font-size: 18px; margin-bottom: 4px; }
.pub-contest-list .note { margin-bottom: 16px; }
.pub-contest-list .btn-row .btn { width: 150px; flex: none; text-align: center; }
.pub-contest-hero .eyebrow { margin-bottom: 10px; }
.pub-contest-rules { margin-top: 18px; }
.pub-narrow { max-width: 820px; }
.pub-narrow h2 { margin: 30px 0 8px; }
.pub-narrow .btn-row { margin-top: 30px; }
.pub-step { margin: 14px 0; padding: 20px 24px; }
.pub-step h3 { margin-bottom: 6px; }
.pub-step p { margin: 0; }
.pub-rules-meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.pub-rules-body h2, .pub-rules-extra h2 { margin: 28px 0 8px; }
.pub-rules-body ul { padding-left: 22px; }
@media (max-width: 900px) {
  .pub-hero { grid-template-columns: 1fr; }
  .pub-hero h1 { font-size: 32px; }
  .pub-how ol { grid-template-columns: 1fr; }
}
/* Rules print cleanly: no chrome, plain black on white, links spelled out. */
@media print {
  .rp-header, .rp-subbar, .rp-footer, footer, .pub-noprint, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .rp-page { max-width: none; padding: 0; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  .pub-rules section, .pub-rules-extra { break-inside: avoid-page; }
  a { color: #000; text-decoration: underline; }
  .pub-rules a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
