/** Guide pages: command tables and realm settings layout (how-to-play, commands, FAQ). */

/* Vertical rhythm (how-to-play, commands, FAQ) */
.guide-page > h1.h2 {
  margin-bottom: 0.75rem;
}

.guide-page > h2.h2 {
  margin-top: 1.85rem;
  margin-bottom: 0.7rem;
}

.guide-page > .guide-lead + h2.h2 {
  margin-top: 0;
}

.guide-page > p,
.guide-page > p.mono {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.guide-page > ul.rules-list {
  margin: 0 0 1.15rem;
}

.guide-page > .guide-note {
  margin-bottom: 1.15rem;
}

.guide-page > .cmd-ref-wrap {
  margin-top: 0;
}

.guide-page > section {
  margin: 0 0 1.5rem;
  padding: 0;
}

.guide-page > section > h2.h2 {
  margin: 0 0 0.55rem;
}

.guide-page > section > p {
  margin: 0;
  line-height: 1.55;
}

.guide-lead {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.guide-note {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(227, 218, 240, 0.78);
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid var(--arc-dim);
  background: rgba(0, 229, 199, 0.06);
}

.guide-formula {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(227, 218, 240, 0.88);
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.cmd-ref-wrap {
  margin-bottom: 1.35rem;
}

.cmd-ref-wrap--settings {
  margin-bottom: 1.6rem;
}

.cmd-ref-group {
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arc);
  margin: 1.1rem 0 0.45rem;
}

.cmd-ref-wrap--settings .cmd-ref-group:first-child {
  margin-top: 0.25rem;
}

.cmd-ref {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cmd-ref th {
  text-align: left;
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 218, 240, 0.65);
  padding: 0.35rem 0.5rem 0.45rem 0;
  border-bottom: 1px solid rgba(196, 184, 212, 0.18);
}

.cmd-ref td {
  vertical-align: top;
  padding: 0.42rem 0.5rem 0.42rem 0;
  border-bottom: 1px solid rgba(196, 184, 212, 0.1);
}

.cmd-ref--settings .cmd-ref-col-label {
  width: 42%;
}

.cmd-ref--settings .cmd-ref-col-value {
  width: 58%;
}

.cmd-ref-wrap--settings .cmd-ref--settings:not(:first-of-type) thead {
  display: none;
}

.cmd-ref--settings td:first-child {
  color: rgba(227, 218, 240, 0.92);
  white-space: normal;
}

.cmd-ref--settings td:nth-child(2) {
  white-space: normal;
  word-break: break-word;
}

/* Command | Args | What it does — narrow Command so Args sits further left */
.cmd-ref--commands .cmd-ref-col-cmd {
  width: 12rem;
}

.cmd-ref--commands .cmd-ref-col-args {
  width: 26%;
}

.cmd-ref--commands .cmd-ref-col-desc {
  width: auto;
}

.cmd-ref--commands th:first-child,
.cmd-ref--commands td:first-child {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  color: #fff;
  padding-right: 0.65rem;
}

.cmd-ref--commands th:nth-child(2),
.cmd-ref--commands td:nth-child(2) {
  max-width: 0;
  width: 30%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-left: 0;
  padding-right: 1.1rem;
}

.cmd-ref--commands th:nth-child(3),
.cmd-ref--commands td:nth-child(3) {
  max-width: 0;
  width: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-left: 0.35rem;
}

.guide-footer-links {
  margin-top: 1.5rem;
  font-family: var(--font-m);
  font-size: 0.78rem;
  color: rgba(227, 218, 240, 0.7);
}

.guide-footer-links a {
  color: inherit;
}

@media (max-width: 767px) {
  .cmd-ref--commands {
    table-layout: auto;
  }

  .cmd-ref--commands thead {
    display: none;
  }

  .cmd-ref--commands tbody tr {
    display: block;
    padding: 0.72rem 0 0.68rem;
    border-bottom: 1px solid rgba(196, 184, 212, 0.14);
  }

  .cmd-ref--commands tbody tr:last-child {
    border-bottom: none;
  }

  .cmd-ref--commands td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.2rem 0;
    border-bottom: none;
    box-sizing: border-box;
  }

  .cmd-ref--commands td:first-child {
    white-space: normal;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
  }

  .cmd-ref--commands td:nth-child(2) {
    margin-bottom: 0.4rem;
    padding-right: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(227, 218, 240, 0.82);
  }

  .cmd-ref--commands td:nth-child(2):empty {
    display: none;
  }

  .cmd-ref--commands td:nth-child(2):not(:empty)::before {
    content: 'Args · ';
    display: block;
    margin-bottom: 0.12rem;
    font-family: var(--font-m);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(227, 218, 240, 0.48);
  }

  .cmd-ref--commands td:nth-child(3) {
    font-size: 0.82rem;
    line-height: 1.5;
    padding-left: 0;
  }

  .cmd-ref--settings thead {
    display: none;
  }

  .cmd-ref-wrap--settings .cmd-ref--settings:not(:first-of-type) thead {
    display: none;
  }

  .cmd-ref--settings tbody tr {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(196, 184, 212, 0.1);
  }

  .cmd-ref--settings tbody tr:last-child {
    border-bottom: none;
  }

  .cmd-ref--settings td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.15rem 0;
    border-bottom: none;
    box-sizing: border-box;
  }

  .cmd-ref--settings td:first-child {
    font-family: var(--font-m);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: rgba(227, 218, 240, 0.65);
  }

  .cmd-ref--settings td:nth-child(2) {
    font-size: 0.85rem;
    color: #fff;
    padding-bottom: 0.1rem;
  }
}
