/* Long-text pages (rules, methodology): what site.css's .doc leaves out. */

.rules-six {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px;
  margin-top: 34px; border-top: 1px solid var(--ink);
}
.rules-six > div { padding: 16px 24px 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.rules-six b { font-size: 56px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.rules-six span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) {
  .rules-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-six b { font-size: 40px; }
}

.doc-lede { margin-top: 24px; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.doc .toc ol { padding-left: 22px; gap: 2px; }
.doc code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88em;
  background: var(--rule); padding: 0 3px; }
.doc pre { margin: 0; padding: 14px 16px; overflow-x: auto; background: transparent;
  border-left: 2px solid var(--ink); font-size: 13.5px; line-height: 1.55; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc pre .c { color: var(--muted); }
.doc .def { border-top: 1px solid var(--rule); }
.doc .def dt { font-weight: 600; padding-top: 10px; }
.doc .def dd { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.doc .formula { font-family: Georgia, "Times New Roman", serif; font-size: 18px; text-align: center; padding: 6px 0; }
.doc .formula i { font-style: italic; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-size: 12px; font-weight: 400; color: var(--muted); border-bottom-color: var(--ink); }
@media (max-width: 640px) {
  .doc pre { font-size: 12.5px; padding: 12px; }
}

/* Methodology: a block for one city (data-only, site.css) spaces its own
   children like the section's, and starts flush when it follows the heading
   right after the other city's hidden block. */
.doc > section > div[data-only] > * + * { margin-top: 14px; }
.doc > section > h2 + [data-only] + [data-only] { margin-top: 0; }
