.document-page{
  max-width:768px;
  margin:20px auto;
  padding:20px 16px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  line-height:1.8;
}

.document-page > * + *{
  margin-top:20px;
}

.document-title{
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  font-size:1.5rem;
  font-weight:700;
}

.section-title{
  margin-bottom:12px;
  font-size:1.25rem;
  font-weight:600;
}

.decimal-list,
.alpha-list,
.roman-list{
  padding-left:24px;
}

.decimal-list{ list-style-type:decimal; }
.alpha-list{ list-style-type:lower-alpha; }
.roman-list{ list-style-type:lower-roman; }

.document-page a{
  color:var(--accent);
}

.document-revision{
  padding-top:20px;
  border-top:1px dashed var(--line);
}

.site-footer{
  padding:0 16px;
}

body:has(.sidebar) .site-footer{
  padding:0 40px 0 300px;
}

@media (max-width: 850px){
  body:has(.sidebar) .site-footer{
    padding:0 16px;
  }
}

.site-footer-nav{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
  max-width:768px;
  margin:0 auto;
  padding:32px 0;
}

body:has(.sidebar) .site-footer-nav{
  max-width:960px;
}

.site-footer-column{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px;
}

.site-footer-heading{
  margin:0;
  align-self:stretch;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  color:color-mix(in srgb, var(--sub) 70%, transparent);
  font-size:14px;
  font-weight:600;
}

.site-footer-link{
  color:var(--sub);
  text-decoration:none;
}

.site-footer-link:hover{
  color:var(--text);
  text-decoration:underline;
}

.site-footer-button{
  padding:0;
  border:0;
  background:none;
  font:inherit;
  cursor:pointer;
}
