/*
 * IKON Community™ — the small footer every page carries
 * (app/Views/partials/site-footer.php) and the /help page's own styles
 * (app/Views/help/index.php, public/js/help.js). Self-contained: it reads
 * only the shared theme tokens (--ink, --muted, --line, --paper, ...), with
 * fallbacks, so it works on the dashboard shell and on public pages alike.
 */
.site-footer {
  margin-top: 32px;
  padding: 18px 16px 22px;
  border-top: 1px solid var(--line, rgba(22, 33, 62, 0.09));
  font-size: 0.8rem;
  color: var(--muted, #8a8e98);
  text-align: center;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.site-footer-links a {
  color: var(--ink-soft, #4b4f58);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--ink, #16213e);
  text-decoration: underline;
}

.site-footer-copy {
  margin: 0;
}

/* ---------------- Help page ---------------- */
.help-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.help-public {
  padding: 28px 16px 0;
  background: var(--bg, #f5f6f8);
  min-height: 100vh;
  color: var(--ink, #16213e);
}

.help-public .help-brand {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--ink, #16213e);
  text-decoration: none;
}

.help-head h1 {
  margin: 0 0 6px;
}

.help-head p {
  margin: 0 0 18px;
  color: var(--ink-soft, #4b4f58);
}

.help-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.help-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink, #16213e);
  background: var(--paper, #fff);
  border: 1px solid var(--line, rgba(22, 33, 62, 0.15));
  border-radius: var(--radius-md, 10px);
}

.help-search:focus-visible {
  outline: 2px solid var(--gold, #cb2d39);
  outline-offset: 1px;
}

.help-status {
  min-height: 1.3em;
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--muted, #8a8e98);
}

.help-section {
  margin-bottom: 22px;
}

.help-section[hidden],
.help-item[hidden] {
  display: none;
}

.help-section h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.help-item {
  background: var(--paper, #fff);
  border: 1px solid var(--line, rgba(22, 33, 62, 0.09));
  border-radius: var(--radius-md, 10px);
  margin-bottom: 8px;
}

.help-item summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item summary::after {
  content: "+";
  font-weight: 700;
  color: var(--muted, #8a8e98);
  flex-shrink: 0;
}

.help-item[open] summary::after {
  content: "\2212";
}

.help-item summary:focus-visible {
  outline: 2px solid var(--gold, #cb2d39);
  outline-offset: -2px;
  border-radius: var(--radius-md, 10px);
}

.help-answer {
  padding: 0 16px 14px;
  color: var(--ink-soft, #4b4f58);
  line-height: 1.55;
}

.help-answer p {
  margin: 0 0 8px;
}

.help-answer ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.help-contact {
  margin: 28px 0 0;
  padding: 18px 18px 8px;
  background: var(--paper, #fff);
  border: 1px solid var(--line, rgba(22, 33, 62, 0.09));
  border-radius: var(--radius-lg, 14px);
}

.help-contact h2 {
  margin: 0 0 6px;
}

.help-contact dl {
  margin: 12px 0 0;
}

.help-contact dt {
  margin-top: 10px;
  font-weight: 700;
}

.help-contact dd {
  margin: 2px 0 10px;
  color: var(--ink-soft, #4b4f58);
}

.help-contact a {
  color: var(--gold, #cb2d39);
  font-weight: 600;
  word-break: break-word;
}
