/* Server notes, on the shared look from ../game.css: a long runbook, one deepslate panel per section. Prose in the system
   sans, headings and the contents buttons in the pixel font, code in ui-monospace inside inset areas. */

.notes .wrap { max-width: 808px; }

/* Header */
.notes-hero { padding-top: 40px; }
.notes .hero__kicker { margin-bottom: 12px; }
.notes .hero__kicker .tag { font-family: var(--mono); }
.notes .hero__title { font-size: 32px; line-height: 40px; }
.notes .hero__lede { margin-top: 12px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.notes__meta { margin-top: 8px; font-size: 14px; color: #B1B2B5; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* Contents: a panel of buttons, two or three to a row. */
.notes__toc { margin-top: 24px; padding: 16px; background: rgba(30, 30, 31, .88); border: 2px solid #0E0E0F; border-radius: 6px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07); }
.notes__toc-title { margin-bottom: 12px; font-size: 16px; line-height: 20px; }
.notes__toc .menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.notes__toc .btn { width: 100%; height: 100%; min-height: 40px; padding: 6px 12px 10px; justify-content: flex-start; text-align: left; white-space: normal; }
@media (min-width: 640px) { .notes__toc .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Sections */
.notes main { display: grid; gap: 24px; margin-top: 32px; }
.notes .section { min-width: 0; padding: 24px 28px 28px; }
.notes .section__title { margin-bottom: 16px; }
@media (max-width: 599px) { .notes .section { padding: 16px 16px 20px; } }

/* Prose */
.spread { max-width: 72ch; }
.spread p, .spread ul, .spread ol, .spread pre, .spread .notes__table { margin: 0 0 16px; }
.spread > :last-child { margin-bottom: 0; }
.spread h3 { margin: 28px 0 12px; }
.spread h3:first-child { margin-top: 0; }
.spread li { position: relative; margin: 0 0 8px; padding-left: 20px; }
.spread ul > li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; background: #8C8D90; }
.spread ol { counter-reset: step; }
.spread ol > li { counter-increment: step; padding-left: 28px; }
.spread ol > li::before { content: counter(step) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: #B1B2B5; font-variant-numeric: tabular-nums; }
.spread small { font-size: 14px; color: #B1B2B5; }
.notes .aside { padding-left: 14px; border-left: 2px solid #48494A; color: #B1B2B5; }

/* Code: the machine's own type, never the game font. Long paths in running text may break anywhere, so phones do not
   scroll sideways; blocks keep their lines and scroll inside their own box instead. */
.notes code { padding: 1px 5px; color: #fff; background: rgba(0, 0, 0, .35); border-radius: 3px; overflow-wrap: anywhere; }
.notes pre { padding: 12px 16px; font-size: 14px; line-height: 1.55; color: #E6E6E8; white-space: pre; overflow-x: auto; background: rgba(0, 0, 0, .28); border-radius: 4px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35); }
.notes pre code { padding: 0; font-size: inherit; color: inherit; background: none; border-radius: 0; overflow-wrap: normal; }
.notes kbd { display: inline-block; padding: 0 6px; font-size: .8125em; line-height: 1.6; color: #fff; background: #313233; border: 1px solid #0E0E0F; border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }

/* Command tables: "command | what it does". Phones stack the two cells. */
.notes__table { width: 100%; border-collapse: collapse; }
.notes__table th { padding: 8px 12px 8px 0; font-size: 14px; font-weight: 600; line-height: 20px; color: #B1B2B5; text-align: left; vertical-align: bottom; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.notes__table td { padding: 8px 12px 8px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.notes__table tr:last-child td { border-bottom: 0; }
@media (max-width: 599px) {
  .notes__table, .notes__table tbody, .notes__table tr, .notes__table td { display: block; }
  .notes__table thead { display: none; }
  .notes__table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .notes__table tr:last-child { border-bottom: 0; }
  .notes__table td { padding: 2px 0; border: 0; }
  .notes__table td + td { color: #B1B2B5; }
}
@media (min-width: 600px) { .notes__table td:first-child { width: 36%; } }
