/* Help center (/help, /help/<slug>) — white theme, two-column with sidebar.
 * Tokens (--midnight, --bone, --cream, --maroon, --hairline, --ink-60, --ink-45)
 * come from public.css. Classes are prefixed hc- to stay clear of public.css. */

.hc-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--midnight);
}

/* Sidebar */
.hc-side h2 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 18px 0 8px;
  font-weight: 700;
}
.hc-side a {
  display: block;
  padding: 7px 10px;
  color: var(--midnight);
  text-decoration: none;
  border-left: 2px solid transparent;
  font-size: 14px;
}
.hc-side a.on {
  border-left-color: var(--maroon);
  background: var(--bone);
  font-weight: 700;
}
.hc-side a:hover {
  background: var(--bone);
}

/* Article */
.hc-art h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 8px;
  color: var(--midnight);
}
.hc-what {
  font-size: 17px;
  color: var(--ink-60);
  max-width: 60ch;
  margin: 0 0 26px;
}
.hc-what b {
  color: var(--midnight);
}
.hc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 26px;
}
.hc-art a {
  color: var(--maroon);
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.step .num {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--maroon);
}
.step h3 {
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--midnight);
}
.step p {
  color: var(--ink-60);
  max-width: 60ch;
  margin: 0 0 6px;
}
.step p b {
  color: var(--midnight);
}
.step ul {
  color: var(--ink-60);
  max-width: 60ch;
  margin: 4px 0 6px 18px;
  padding: 0;
}
.step ul b {
  color: var(--midnight);
}

/* Screenshot frame. With a captured PNG it is a bordered image; without one it
 * is the striped placeholder from the mockup, so a missing capture is obvious. */
.shot {
  margin: 12px 0 0;
  max-width: 620px;
  border: 1px solid var(--hairline);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  font-size: 12px;
  color: var(--ink-45);
  padding: 6px 10px;
  border-top: 1px solid var(--hairline);
}
.shot.placeholder {
  aspect-ratio: 16 / 8;
  background: repeating-linear-gradient(45deg, #f5f2ee, #f5f2ee 10px, #eeeae4 10px, #eeeae4 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  color: var(--ink-60);
  font-size: 13px;
}
.shot.placeholder b {
  display: block;
  color: var(--midnight);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.next {
  margin-top: 26px;
  background: var(--bone);
  padding: 18px 20px;
  max-width: 620px;
  color: var(--midnight);
}
.next b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 6px;
}
.next p {
  margin: 0;
}
.next p b {
  display: inline;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--midnight);
  margin: 0;
}

.rel {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rel-label {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 700;
  margin-bottom: 2px;
}
.rel a {
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--midnight);
  text-decoration: none;
}
.rel a:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

/* Index cards */
.hc-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.hc-card {
  display: block;
  border: 1px solid var(--hairline);
  padding: 18px;
  color: var(--midnight);
  text-decoration: none;
}
.hc-card:hover {
  border-color: var(--maroon);
}
.hc-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
.hc-card p {
  font-size: 14px;
  color: var(--ink-60);
  margin: 0;
}
.hc-card .tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
}

@media (max-width: 820px) {
  .hc-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hc-side {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .hc-side h2 {
    width: 100%;
  }
  .hc-art h1 {
    font-size: 30px;
  }
}
