/* Help pages: a sidebar of topics beside the article. Inherits the tokens and
   base type from /styles.css — this file only adds what the help layout needs. */

.helpwrap {
  display: block;
  padding: 32px 0 64px;
}
.helpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border, #e3e6e8);
}
.helpnav a {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ironstone-700, #33424e);
  background: var(--ironstone-50, #f2f4f6);
}
.helpnav a:hover { background: var(--ironstone-100, #e6eaed); }
.helpnav a.here {
  background: var(--ironstone-700, #33424e);
  color: #fff;
}

.helpbody { max-width: 68ch; }
.helpbody h1 { margin: 0 0 12px; }
.helpbody h2 { margin: 34px 0 10px; }
.helpbody h3 { margin: 22px 0 8px; }
.helpbody p, .helpbody li { line-height: 1.65; }
.helpbody ul, .helpbody ol { padding-left: 22px; }
.helpbody li { margin-bottom: 6px; }
.helpbody .lede { font-size: 17px; color: var(--ironstone-700, #33424e); }

.helpbody dl { margin: 12px 0; }
.helpbody dt { font-weight: 600; margin-top: 14px; }
.helpbody dd { margin: 4px 0 0 0; }

/* Callout. `.important` is for the two things students most often get wrong —
   "not compared" and transcription slips. */
.note {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--ironstone-300, #aebac4);
  background: var(--ironstone-50, #f2f4f6);
  border-radius: 0 8px 8px 0;
}
.note.important { border-left-color: #e8a33d; background: #e8a33d14; }
.note h3 { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

table.ref {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
}
table.ref th, table.ref td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-border, #e3e6e8);
  vertical-align: top;
}
table.ref th { font-weight: 600; }
td.sym { font-size: 18px; text-align: center; width: 72px; }
td.sym.ok { color: #2e7d4f; }
td.sym.query { color: #b8860b; }
td.sym.muted { color: var(--ironstone-400, #8b9aa6); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 22px 0 34px;
}
.hcard {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--color-border, #e3e6e8);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.hcard:hover { border-color: var(--ironstone-400, #8b9aa6); }
.hcard h3 { margin: 0 0 6px; font-size: 16px; }
.hcard p { margin: 0; font-size: 14px; color: var(--ironstone-600, #4a5a67); }

.helpfoot {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border, #e3e6e8);
  font-size: 14px;
  color: var(--ironstone-600, #4a5a67);
}

/* Sidebar beside the article once there is room for one. */
@media (min-width: 900px) {
  .helpwrap {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 44px;
    align-items: start;
  }
  .helpnav {
    position: sticky;
    top: 24px;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    border-bottom: none;
  }
  .helpnav a { border-radius: 6px; }
}
