/* RockMill Social Co — Help Center styles. Vanilla CSS, mobile-first. */

:root {
  --rm-red: #c0392b;
  --rm-red-dark: #96281b;
  --rm-charcoal: #2b2b2b;
  --rm-cream: #faf6f0;
  --rm-green: #2e7d32;
  --rm-border: #e3dccd;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--rm-cream);
  color: var(--rm-charcoal);
  line-height: 1.6;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 16px 72px;
}

/* ---------- Header ---------- */
.help-header {
  text-align: center;
  padding: 28px 12px 20px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rm-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.brand-row span { font-weight: 700; font-size: 1.05rem; }
.help-header h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
}
.help-header p {
  margin: 0 0 20px;
  color: #6b6257;
}

/* ---------- Search ---------- */
.search-box {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 1.05rem;
  border: 1px solid #c9c2b4;
  border-radius: 999px;
  background: #fff;
}
.search-box input:focus {
  outline: 2px solid var(--rm-red);
  outline-offset: 1px;
}
.search-box .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #8a8177;
}
#no-results {
  display: none;
  text-align: center;
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: var(--radius);
  padding: 30px 20px;
  margin: 24px 0;
}
#no-results.show { display: block; }

/* ---------- Sections ---------- */
.help-section { margin: 30px 0; }
.help-section > h2 {
  font-size: 1.35rem;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--rm-red);
  display: inline-block;
}
.help-section > .section-sub {
  color: #6b6257;
  font-size: 0.95rem;
  margin: 4px 0 14px;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rm-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q:hover { background: #faf6f0; }
.faq-q .arrow {
  flex-shrink: 0;
  color: var(--rm-red);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 18px 18px;
  font-size: 0.97rem;
  color: #4a443c;
}
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ol, .faq-a ul { margin: 6px 0 10px; padding-left: 22px; }
.faq-a code {
  background: #f1ece2;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- Troubleshooting cards ---------- */
.trouble-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-left: 5px solid var(--rm-red);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.trouble-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--rm-red-dark);
}
.trouble-card .fix-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rm-green);
  margin: 8px 0 4px;
}
.trouble-card p { margin: 0 0 8px; font-size: 0.97rem; }
.trouble-card p:last-child { margin-bottom: 0; }
.trouble-card ol, .trouble-card ul { margin: 4px 0 8px; padding-left: 22px; font-size: 0.97rem; }

/* ---------- Contact strip ---------- */
.contact-strip {
  background: var(--rm-charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  margin-top: 36px;
}
.contact-strip h2 { margin: 0 0 8px; font-size: 1.3rem; }
.contact-strip p { margin: 0 0 14px; color: #d8d2c6; }
.contact-strip a { color: #f1948a; font-weight: 700; }

.help-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #8a8177;
  margin-top: 24px;
}
