/* Screen layout follows Sistema's reading page; print remains in rules.css. */
:root { --muted: #5c6056; --wash: #e7e7dc; }
html { font-size: 17px; line-height: 1.6; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .25em; }
.site-nav, main.rules-page, footer.site-footer { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 2rem; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.25rem; }
.site-logo { flex: 0 0 auto; }
.site-logo img { display: block; width: 94px; height: auto; }
.site-nav nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav nav a { color: var(--ink); text-decoration: none; padding-block: .5rem; }
.site-nav nav a:hover, .site-nav nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: .4em; }
main.rules-page { padding-top: 4.5rem; padding-bottom: 5rem; }
.rules-intro { padding-bottom: 2.5rem; }
.rules-intro h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-transform: none; margin: 0 0 1.25rem; }
.page-intro { color: var(--muted); font-size: 1.15rem; max-width: 48rem; margin-bottom: 1.5rem; }
.rules-pdf { display: inline-block; margin-top: .5rem; }
.rules-pdf span { margin-left: .6rem; }
.rules-intro .edition-note { border: 0; padding: 0; margin: 1rem 0 0; max-width: 48rem; color: var(--muted); font-size: .85rem; }
.rules-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: 2.5rem; }
.rules-index { position: sticky; top: 2rem; font-size: .9rem; }
.eyebrow { color: var(--muted); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 .75rem; }
.rules-index a { color: var(--ink); display: block; padding: .65rem 0; text-decoration: none; }
.rules-index a:hover { color: var(--accent); text-decoration: underline; }
.rules-document { max-width: 45rem; min-width: 0; padding: 0; }
.rules-heading { display: none; }
.rules-columns { display: block; }
.rules-columns > div + div { padding-left: 0; border-left: 0; }
.rules-document section { margin-bottom: 3rem; scroll-margin-top: 2rem; }
.rules-document h2 { font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1.25; text-transform: none; margin: 0 0 1.25rem; }
.rules-document p { margin: 0 0 1.1rem; }
.rules-document table { font-size: .86rem; line-height: 1.4; width: 100%; margin: 1.25rem 0 1.75rem; }
.rules-document th, .rules-document td { padding: .8rem .65rem; border-bottom: 1px solid var(--line); }
.rules-document thead { background: var(--wash); }
.rules-document thead th { font-weight: 500; border-top: 1px solid var(--line); }
footer.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2rem; font-size: .88rem; color: var(--muted); }
.site-footer > div { display: flex; gap: 1.5rem; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .5rem 1rem; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 1rem; }
.embedded .screen-only { display: none; }
.embedded main.rules-page { padding: 1rem; max-width: 50rem; }
.embedded .rules-layout { display: block; padding: 0; }
.embedded .rules-heading { display: block; border: 0; padding: 0; margin-bottom: 2rem; }
.embedded .rules-heading > div { text-align: left; }
.embedded .rules-heading h1 { font-size: 1.8rem; text-transform: none; }
.embedded .rules-heading p { color: var(--muted); margin-top: .4rem; }
@media (max-width: 1000px) { .rules-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; } }
@media (max-width: 760px) {
  html { font-size: 16px; }
  .site-nav, main.rules-page, footer.site-footer { padding-inline: 1.25rem; }
  .site-nav { flex-wrap: wrap; gap: 1.25rem; }
  .site-logo img { width: 76px; }
  .site-nav nav { gap: 1.25rem; flex-wrap: wrap; font-size: .95rem; }
  main.rules-page { padding-top: 2.5rem; }
  .rules-layout { display: block; padding-top: 1.75rem; }
  .rules-index { position: static; margin-bottom: 2.5rem; }
  .rules-index a { padding-block: .4rem; }
  .rules-document th, .rules-document td { padding: .5rem .35rem; overflow-wrap: anywhere; }
  footer.site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
