.brandbar, main { max-width: 1120px; }
.brandbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.brandbar > a { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.brandbar .langpick { padding: 0; margin: 0; }
.intro { max-width: 65ch; margin: 0 0 32px; color: #42594d; }
.manual-layout { display: grid; grid-template-columns: minmax(155px, 24%) minmax(0, 1fr); gap: clamp(24px, 5vw, 74px); align-items: start; }
.chapters { position: sticky; top: 20px; display: grid; gap: 4px; padding: 16px 18px; background: #e8ebdf; border-radius: 12px; }
.chapters strong { margin-bottom: 6px; }
.chapters a { font-size: 15px; text-decoration: none; }
.chapters a:hover { text-decoration: underline; }
article section { scroll-margin-top: 16px; }
article section:first-child { margin-top: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.mode-shot { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-variant-numeric: tabular-nums; text-align: center; }
td, th { padding: 6px 8px; border-bottom: 1px solid #d8cfb9; }
th { background: #e1e8da; }
dl > div { display: grid; grid-template-columns: minmax(110px, 24%) 1fr; align-items: baseline; gap: 8px; border-bottom: 1px solid #d8cfb9; padding: 9px 0; }
dd { margin: 0; }
kbd { display: inline-block; border: 1px solid #c6bca6; border-bottom-width: 2px; border-radius: 5px; background: #fffaf0; padding: 0 6px; font: 600 .9em/1.6 monospace; }
@media (max-width: 700px) {
  .manual-layout { display: block; }
  .chapters { position: static; margin-bottom: 24px; }
  table { font-size: .9em; }
  dl > div { grid-template-columns: minmax(82px, 26%) 1fr; }
}
.chapters { max-height: calc(100vh - 40px); overflow-y: auto; }
article h3 { margin: 1.35em 0 .35em; font-size: 1.08em; }
article li + li { margin-top: .35em; }
article td { vertical-align: top; }
article details { border-bottom: 1px solid #d8cfb9; padding: 10px 0; }
article summary { cursor: pointer; font-weight: 600; }
article details p { margin: 8px 0 0; }
@media (max-width: 700px) {
  .chapters { max-height: none; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 12px; }
  .chapters strong { grid-column: 1 / -1; }
  article table { overflow-wrap: anywhere; }
}
