/* Rules page only (rules.html). Loaded after home.css, which styles the header,
   login and footer. The rules text is the old table markup, left as written;
   these rules restyle it to match the homepage. */

.rules {
 --dg-cond:"Bahnschrift SemiCondensed", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
 margin:22px 0 0;
 padding:34px 40px 40px;
 border:1px solid var(--dg-line);
 border-radius:18px;
 background:rgba(255,255,255,.03);
 box-shadow:0 28px 60px -34px rgba(0,0,0,.95);
 color:var(--dg-text);
 font:15px/1.65 var(--dg-ui);
}

.rules-body { max-width:860px; margin:0 auto; }

/*** OLD MARKUP: no black/grey boxes, no forced colours or sizes ***/

.rules-body > table { width:100%; }
.rules-body table, .rules-body td { background-color:transparent; color:inherit; font:inherit; }
.rules-body font { color:inherit; }
.rules-body a { color:var(--dg-amber); }
.rules-body strong { color:#FFF; }

.rules-body h2 {
 margin:0;
 color:#FFF;
 font:700 34px/1.15 var(--dg-cond);
 letter-spacing:.02em;
 text-transform:uppercase;
}

.rules-body .title_01 {
 color:var(--dg-amber);
 font:700 20px/1.2 var(--dg-cond);
 letter-spacing:.06em;
 text-transform:uppercase;
}

/* section index: the old arrow, divider and Live In-Play images were never on this site */
.rules-body img[src$="carrot.gif"], .rules-body img[src$="Icon-Live-In-Play.gif"] { display:none; }
.rules-body table[width="98%"] { margin:4px 0 8px; }
.rules-body table[width="98%"] td[background] { border-top:1px solid var(--dg-line); }
.rules-body a.YellowLink { color:var(--dg-text); text-decoration:none; }
.rules-body a.YellowLink::before { content:"\203A"; margin-right:7px; color:var(--dg-crimson); font-weight:700; }
.rules-body a.YellowLink:hover { color:var(--dg-amber); }
.rules-body a.YellowLink:empty { display:none; }

/* dead-heat and other worked examples */
.rules-body table[id="charttable"] {
 margin:6px 0;
 border:1px solid var(--dg-line);
 border-radius:12px;
 border-collapse:separate;
 border-spacing:0;
 overflow:hidden;
}
.rules-body table[id="charttable"] th { padding:9px 16px; background-color:rgba(229,56,59,.16); color:#FFF; text-align:left; }
.rules-body table[id="charttable"] td { padding:4px 16px; background-color:rgba(255,255,255,.025); }

/*** PHONES ***/

@media (max-width:760px) {
 .rules { padding:24px 16px 28px; border-radius:14px; font-size:14px; }
 .rules-body h2 { font-size:26px; }
 /* section index becomes two columns instead of seven */
 .rules-body table[width="98%"] { display:block; }
 .rules-body table[width="98%"] tbody { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
 .rules-body table[width="98%"] tr { display:contents; }
 .rules-body table[width="98%"] td { display:block; padding:3px 0; }
 .rules-body table[width="98%"] td:not(:has(a)) { display:none; }
}
