/* ===== Front 1939: página de regras (/regras.html) ===== */
.rules { max-width: 920px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--paper2); }

.rules-head { text-align: center; margin: 10px auto 28px; max-width: 760px; }
.rules-head h1 { color: var(--paper); text-shadow: 0 3px 0 #000; }
.rules-head .lead { font-size: 1.12rem; color: var(--paper2); margin: 0; }

.rules .quick { margin-bottom: 22px; }
.rules .quick h2 { font-size: 1.25rem; margin-bottom: 10px; }
.rules .quick ul { margin: 0; padding-left: 1.2em; }
.rules .quick li { margin-bottom: 6px; }
.rules .quick li:last-child { margin-bottom: 0; }

.rules .toc { margin: 0 0 34px; padding: 18px 24px 16px; }
.rules .toc strong { font-family: var(--ui); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; }
.rules .toc ol { columns: 2; column-gap: 32px; margin: 8px 0 0; padding-left: 1.6em; font-family: var(--ui); line-height: 1.75; }
.rules .toc li { break-inside: avoid; }

.rules-body section { padding: 10px 0 18px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.rules-body section:first-child { border-top: 0; }
.rules-body h2 { color: var(--paper); display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rules-body h2 .n {
  flex: 0 0 38px; height: 38px; border: 2px solid var(--brass); border-radius: 50%; display: grid; place-items: center;
  color: var(--brass); font-size: 1rem;
}
.rules-body h3 { color: var(--brass2); margin-top: 1.4em; }
.rules-body p, .rules-body li, .rules-body dd { font-size: 1.04rem; line-height: 1.62; }
.rules-body b { color: var(--paper); }
.rules-body .defs { padding-left: 1.2em; }
.rules-body .defs li { margin-bottom: 8px; }
.rules-body .phases li, .rules-body .objectives li { margin-bottom: 6px; }

.rules .example { border-left: 4px solid var(--brass); background: rgba(201, 162, 74, 0.08); padding: 12px 16px; margin: 0 0 1em; border-radius: 0 var(--radius) var(--radius) 0; }
.rules .example p { margin: 0; }
.rules .ex-tag { display: inline-block; font-family: var(--type); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass2); margin-bottom: 4px; }
.rules .note { border: 1px dashed var(--brass); background: rgba(201, 162, 74, 0.06); padding: 12px 16px; border-radius: var(--radius); }

.tbl-wrap { overflow-x: auto; margin: 0 0 1em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.tbl caption { caption-side: top; text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 6px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--panel2); color: var(--paper); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.tbl tbody th { color: var(--paper); font-weight: 500; }
.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.tbl-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
.tbl-trades td, .tbl-trades th { text-align: center; white-space: nowrap; }

.borders details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.borders summary { cursor: pointer; padding: 12px 16px; color: var(--paper); text-transform: uppercase; letter-spacing: 0.06em; }
.borders summary .b { color: var(--brass2); margin-left: 6px; }
.borders details[open] summary { border-bottom: 1px dashed var(--line); }
.borders .tbl-wrap { margin: 0; padding: 10px 12px 12px; }
.borders .tbl th[scope=row] { white-space: nowrap; width: 30%; }
.borders .x { color: var(--muted); font-size: 0.9em; }

.rules .faq { max-width: none; }
.glossary { margin: 0; }
.glossary dt { font-family: var(--ui); color: var(--paper); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--text); }

.rules .trademark { text-align: center; margin: 28px auto 0; max-width: 720px; }

@media (max-width: 640px) {
  .rules .toc ol { columns: 1; }
  .rules-body h2 .n { flex-basis: 32px; height: 32px; }
}
