/*
 * The rulebook stylesheet, shared by the public "Reglas" tab and the admin preview so the editor shows exactly what
 * visitors will read. It depends on nothing from either site: fonts and colours are defined on .rules itself
 * (the pages only need to load the Cinzel / Barlow Condensed / Barlow web fonts). Selectors carry a `div` prefix so
 * they win over the generic heading and paragraph styles of the surrounding page.
 */
div.rules {
  --rb-fd: "Cinzel", Georgia, serif;
  --rb-fl: "Barlow Condensed", "Arial Narrow", sans-serif;
  --rb-fb: "Barlow", system-ui, sans-serif;
  --rb-fg: #e8e4dc;
  --rb-gold: #c8aa6e;
  --rb-gold-hi: #f0dcaa;
  --rb-radiant: #6dbf4b;
  --rb-dire: #d2452f;
  --rb-line: rgba(255, 255, 255, .08);
  --rb-line-2: rgba(200, 170, 110, .28);
  box-sizing: border-box;
  max-width: 820px;
  padding: 26px 30px;
  background: linear-gradient(180deg, #15181c, #0f1114);
  border: 1px solid var(--rb-line);
  color: var(--rb-fg);
  font: 400 15px/1.55 var(--rb-fb);
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
div.rules p { margin: .5em 0; font: 400 15px/1.55 var(--rb-fb); color: var(--rb-fg); letter-spacing: normal; text-transform: none; }
div.rules b, div.rules strong { font-weight: 700; }
div.rules h2 {
  margin: .4em 0 .5em; padding-bottom: 6px; border-bottom: 1px solid var(--rb-line-2);
  font: 800 22px/1.3 var(--rb-fd); letter-spacing: .05em; text-transform: uppercase; color: var(--rb-gold-hi);
}
div.rules h3 {
  margin: 1.2em 0 .3em;
  font: 700 15px/1.55 var(--rb-fl); letter-spacing: .18em; text-transform: uppercase; color: var(--rb-gold);
}
div.rules ul, div.rules ol { margin: .4em 0; padding-left: 24px; display: block; }
div.rules li { margin: .25em 0; font: 400 15px/1.55 var(--rb-fb); color: var(--rb-fg); letter-spacing: normal; text-transform: none; }
div.rules li::marker { color: var(--rb-gold); }
div.rules .callout { margin: 1em 0; padding: 10px 14px; border-left: 3px solid var(--rb-gold); background: rgba(200, 170, 110, .07); }
div.rules mark { background: none; font-weight: 700; }
div.rules mark.g { color: var(--rb-gold-hi); }
div.rules mark.r { color: var(--rb-radiant); }
div.rules mark.d { color: var(--rb-dire); }
div.rules hr { margin: 1.4em 0; border: 0; border-top: 1px solid var(--rb-line); }
div.rules a { color: var(--rb-gold); }
div.rules > :first-child { margin-top: 0; }
div.rules > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  div.rules { padding: 18px 16px; }
  div.rules h2 { font-size: 19px; }
}
