:root {
  color-scheme: light;
  --paper: #faf8f7;
  --ink: #171716;
  --muted: #625e59;
  --rule: #d7d1cc;
  --serif: Georgia, "Times New Roman", serif;
  --inset: clamp(18px, 5vw, 72px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { width: min(100% - 2 * var(--inset), 1260px); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #185a88; outline-offset: 3px; }
.masthead { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); }
.brand { font: 38px/1 "Times New Roman", Times, serif; letter-spacing: -.05em; text-decoration: none; }
.languages { display: flex; gap: 3px; }
.languages a { min-width: 43px; display: grid; place-items: center; min-height: 44px; font-size: 14px; text-decoration: none; color: var(--muted); }
.languages a:hover, .languages [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.languages [aria-current] { font-weight: bold; }
.rules-intro { padding-block: clamp(40px, 6vw, 82px) clamp(30px, 4vw, 54px); }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(35px, 5.4vw, 78px); line-height: 1.07; letter-spacing: -.045em; overflow-wrap: anywhere; }
.lead { max-width: 46ch; margin: 20px 0 0; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; }
.revision { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rules-layout { display: grid; grid-template-columns: minmax(185px, .39fr) minmax(0, 1fr); align-items: start; column-gap: clamp(32px, 5vw, 88px); border-top: 1px solid var(--rule); padding-block: 34px 60px; }
.contents { min-width: 0; max-width: 37ch; }
.contents summary { cursor: pointer; font-weight: bold; font-size: 16px; line-height: 1.5; padding-block: 9px; }
.contents summary::marker { color: var(--muted); font-size: .75em; }
.contents ul { margin: 7px 0 0; list-style: none; padding: 0; }
.contents a { display: block; padding-block: 5px; font-size: 15px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--ink); text-decoration: underline; }
.chapters { min-width: 0; max-width: 69ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; overflow-wrap: break-word; }
section { scroll-margin-top: 24px; }
section + section { border-top: 1px solid var(--rule); margin-top: 42px; padding-top: 34px; }
h2 { margin: 0 0 .65em; font-size: clamp(30px, 2.8vw, 43px); letter-spacing: -.035em; line-height: 1.12; }
h3 { margin: 1.35em 0 .4em; font-size: 1.12em; line-height: 1.35; }
.chapters p, .chapters ul, .chapters ol { margin: 0 0 .9em; }
.chapters ul, .chapters ol { padding-left: 1.5em; }
.chapters li + li { margin-top: .65em; }
.chapters li::marker { color: var(--muted); }
.document-note { border-left: 2px solid var(--rule); padding: 4px 0 4px 18px; margin: 1.05em 0; }
.document-note p { margin: 0; }
.document-note p + p { margin-top: .27em; }
footer { border-top: 1px solid var(--rule); padding-block: 20px 36px; text-align: right; color: var(--muted); }
footer a { display: inline-block; padding-block: 10px; }
@media (min-width: 900px) and (min-height: 640px) {
  .contents { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 4px; }
}
@media (max-width: 899px) {
  .masthead { min-height: 66px; }
  .rules-layout { display: block; padding-top: 0; }
  .contents { max-width: none; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
  .contents summary { padding-block: 14px; }
  .contents ul { margin: 0 0 15px; }
  .contents a { padding-block: 8px; }
  .chapters { margin-inline: auto; }
}
@media print {
  body { background: white; }
  .masthead, .contents, footer { display: none; }
  .wrap { width: 100%; }
  .rules-intro { padding-block: 0 20px; }
  .rules-layout { display: block; padding: 0; }
  .chapters { max-width: none; font-size: 11pt; }
  h2, h3 { break-after: avoid; }
}
