/* Help / knowledge base styles. Layered on top of landing.css so the help
   section stays in the site's paper-and-ink design system without editing the
   shared stylesheet. Only additions the guide pages did not already need live
   here: the index card grid, article tables, keyboard keys, and the pager. */

.help-hero {
  grid-template-columns: minmax(0, 1fr);
}

.help-hero .guide-hero-copy {
  max-width: 820px;
}

/* Index hub: a card grid of every article, styled like the guide finder. */
.help-index {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(30px, 4vw, 56px) clamp(24px, 7vw, 104px) clamp(60px, 8vw, 110px);
}

.help-index a {
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  min-height: 128px;
  padding-top: 18px;
  transition: color 180ms ease, border-color 180ms ease;
}

.help-index a span {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.help-index a strong {
  color: var(--ink);
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", var(--ui);
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.help-index a:hover,
.help-index a:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

/* Tables inside help articles. */
.help-table-wrap {
  margin: 0 0 22px;
  max-width: 780px;
  overflow-x: auto;
}

.guide-section table {
  border-collapse: collapse;
  font-family: var(--serif);
  min-width: 100%;
  width: 100%;
}

.guide-section thead th {
  border-bottom: 2px solid var(--line-dark);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 10px 18px 10px 0;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.guide-section tbody td {
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
  padding: 12px 18px 12px 0;
  vertical-align: top;
}

.guide-section tbody td:first-child {
  color: var(--ink);
}

/* Keyboard keys. */
kbd {
  background: var(--paper-aged);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(42, 34, 26, 0.26);
  color: var(--ink);
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  padding: 3px 7px;
  white-space: nowrap;
}

.guide-section td kbd {
  font-size: 12px;
}

/* Back-to-index link and prev/next pager. */
.help-back {
  color: var(--accent);
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.help-back:hover,
.help-back:focus-visible {
  color: var(--ink);
}

.help-pager {
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 32px 0 0;
  scroll-margin-top: 92px;
}

.help-pager a {
  color: var(--muted);
  display: grid;
  font-family: var(--serif);
  font-size: 19px;
  gap: 6px;
  max-width: 46%;
  transition: color 180ms ease;
}

.help-pager a span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-pager .help-pager-next {
  margin-left: auto;
  text-align: right;
}

.help-pager a:hover,
.help-pager a:focus-visible {
  color: var(--ink);
}

@media (max-width: 720px) {
  .help-index {
    grid-template-columns: 1fr;
  }

  .help-pager a {
    max-width: 100%;
  }
}
