/* The help pages under public/help/ (PCS Remote's are in help/rc/).

   Built on promo.css and dlrc.css. Tokens only, never a colour, so it reads
   right in all eight themes. Added 2026-11-02. */

/* The menu down the left, the article beside it. On a phone the menu goes
   on top. */
.help-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 20px;
}

@media (max-width: 720px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.help-nav {
  border-right: 1px solid var(--border, var(--ink-muted));
  padding-right: 16px;
}

@media (max-width: 720px) {
  .help-nav {
    border-right: 0;
    border-bottom: 1px solid var(--border, var(--ink-muted));
    padding: 0 0 12px;
  }
}

.help-nav h2 {
  margin: 18px 0 6px;
  font-size: calc(0.85rem * var(--font-scale, 1));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.help-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-nav a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}

.help-nav a:hover {
  background: var(--accent-soft, var(--danger-soft));
}

.help-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

.help-nav-home {
  font-weight: 700;
}

/* The category cards on the help home page. */
.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border, var(--ink-muted));
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.help-card:hover,
.help-card:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft, var(--danger-soft));
}

.help-card-title {
  font-weight: 700;
}

.help-card-code {
  font-size: calc(0.85rem * var(--font-scale, 1));
  color: var(--ink-muted);
}

.help-category {
  margin: 20px 0 0;
  color: var(--ink);
}

/* The red warning PCS Remote IT shows, drawn as an example. */
.rc-help-banner {
  max-width: var(--promo-text);
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-weight: 700;
  text-align: center;
}

.rc-help-text {
  max-width: var(--promo-text);
}

.help-body code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--danger-soft);
  font-size: 0.95em;
}

/* A command to copy. */
.help-code {
  max-width: var(--promo-text);
  margin: 8px 0;
  padding: 10px 12px;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--danger-soft);
}

.help-code code {
  padding: 0;
  background: none;
}

/* The friendly "this COULD affect something" note, under everything and
   apart from the instructions. */
.help-heads-up {
  max-width: var(--promo-text);
  margin: 32px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--warn);
  border-radius: 12px;
  background: var(--warn-soft);
}

.help-heads-up h2 {
  margin: 0 0 8px;
  font-size: calc(1.1rem * var(--font-scale, 1));
  color: var(--warn);
}

.help-heads-up p,
.help-heads-up ul {
  margin: 0 0 8px;
}

/* The one-line "read first" before the fix steps. */
.help-read-first {
  max-width: var(--promo-text);
  margin: 4px 0 12px;
  font-size: calc(0.9rem * var(--font-scale, 1));
  color: var(--warn);
}

/* The help code and the date, under an article's title. */
.help-meta {
  margin: -4px 0 12px;
  font-size: calc(0.9rem * var(--font-scale, 1));
  color: var(--ink-muted);
}

/* "Have a help code?" on the help home. */
.help-code-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}

.help-code-form input {
  min-width: 12rem;
  padding: 8px 10px;
  text-transform: uppercase;
}

.help-code-say {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: var(--warn);
}

/* A named fix inside "The potential fix". */
.help-sub {
  max-width: var(--promo-text);
  margin: 26px 0 6px;
  padding-top: 22px;
  border-top: 1px solid var(--border, var(--ink-muted));
  font-size: calc(1.05rem * var(--font-scale, 1));
  color: var(--ink);
}

/* The first fix sits right under the read-first note: no line above it. */
.help-read-first + .help-sub {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
