/* /weekly-cup-rules/ as a short page (2026-11-20, operator: "too much scrolling, walls of text"): the summary is four
   tiles on one screen, then the 14 rules as numbered cards that open in place (assets/js/rule-cards.js). With no JS,
   every card is open and the page reads in full: the legal text is always in the HTML. */
.rules-hero { padding: 36px 0 40px; }
.rules-hero .sub { margin-bottom: 0; }
.rules-short { padding: 16px 16px 14px; }
.rules-short h2 { font-size: 24px; margin: 0 0 10px; }
.rule-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rule-tiles > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 10px; background: #fff; border: 3px solid var(--ink);
  border-radius: 12px 9px 13px 10px; box-shadow: 3px 3px 0 var(--ink); }
.rule-tiles > li > b { align-self: center; font-size: 17px; font-weight: 900; line-height: 1.1; }
.rule-tiles > li > span:not(.rt-i) { grid-column: 1 / -1; margin-top: 6px; font-size: 14.5px; line-height: 1.35; }
.rule-tiles > li > span b { font-weight: 900; color: var(--hot); }
.rt-i { width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: #ffe7a0; }
.rule-tiles > li:nth-child(2) .rt-i { background: #cfe0f4; } .rule-tiles > li:nth-child(3) .rt-i { background: #cfeccc; } .rule-tiles > li:nth-child(4) .rt-i { background: #ffd0bf; }
.rt-i svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rt-i .fs { fill: var(--sun); } .rt-i .fh { fill: var(--hot); } .rt-i .fg { fill: var(--go); } .rt-i .fc { fill: var(--cool); } .rt-i .fw { fill: #fffaf0; }
.rule-skill { margin: 10px 0 0; font-size: 14.5px; line-height: 1.4; }
@media (max-width: 380px) { .rule-tiles { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 760px) { .rule-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the rules: numbered cards */
.rules-all-h { margin: 28px 0 8px !important; }
.rules-bar { margin: 0 0 10px; }
.rules-list { margin: 0; gap: 8px; }
.rules-list > li { position: relative; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px 9px 13px 10px; box-shadow: 3px 3px 0 var(--ink); padding: 12px 14px 14px 58px; }
.rules-list > li::before { content: counter(r); position: absolute; left: 12px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center; font: 900 17px/1 var(--font);
  background: var(--sun); border: 3px solid var(--ink); border-radius: 50%; }
.rules-list > li > h2 { font-size: 20px; margin: 4px 0 8px; }
.rules-list > li > h2::before { content: none; }
.rules-list .rule-body > :last-child { margin-bottom: 0; }
.rules-list .rule-body > p { margin: 0 0 10px; }
.rules-list .rule-body > ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
/* with JS: the heading is the button; closed cards show just the number and the heading */
.rules-list.is-enh > li { padding: 0; }
.rules-list.is-enh > li::before { top: 9px; pointer-events: none; }
.rules-list.is-enh > li > h2 { margin: 0; }
.rule-tap { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 8px 12px 8px 58px; font: 900 18px/1.15 var(--font);
  color: var(--ink); text-align: left; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.rule-tap::after { content: "+"; content: "+" / ""; flex: none; display: grid; place-items: center; width: 28px; height: 28px; font: 900 20px/1 var(--font); background: var(--sun); border: 3px solid var(--ink);
  border-radius: 50%; box-shadow: 0 2px 0 var(--ink); transition: transform .2s; }
.rules-list > li.is-open .rule-tap::after { transform: rotate(45deg); }
.rule-tap:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.rules-list.is-enh > li > .rule-body { padding: 0 14px 14px 58px; }
.rules-list.is-enh > li:not(.is-open) > .rule-body { display: none; }
@media (max-width: 420px) { .rules-list.is-enh > li > .rule-body { padding-left: 14px; } .rules-list > li { padding-left: 54px; } }
@media (prefers-reduced-motion: reduce) { .rule-tap::after { transition: none; } }
@media print { .rules-list.is-enh > li > .rule-body { display: block !important; } .rules-bar, .rule-tap::after { display: none; } }
/* site.css's ".rules-short ul" (bullet indent) must not push the tiles in */
.rules-short .rule-tiles { padding: 0; }
/* the summary fits the first screen of a phone */
@media (max-width: 560px) {
  .rules-hero { padding: 22px 0 24px; }
  .rules-hero .kicker { margin-bottom: 8px; }
  .rules-hero h1 { font-size: 34px; margin-bottom: 10px; }
  .rules-hero .sub { font-size: 16px; }
  .rules-meta { margin-top: 8px; font-size: 13.5px; }
  .page-rules .band-paper { padding-top: 16px; }
}
/* no JS: every card open; the number sits in the text's first line instead of a wide left margin */
.rules-list:not(.is-enh) > li { padding: 12px 14px 14px; }
.rules-list:not(.is-enh) > li::before { position: static; float: left; margin: 0 10px 4px 0; }
