:root {
  --help-bg: #fff8e1;
  --help-accent: #b8860b;
  --help-accent-hover: #9a6f08;
  --help-border: #e5c76b;
  --help-card: #ffffff;
  --help-text: #1f1a10;
  --help-muted: #6b7280;
  --help-soft: #fff3d6;
  --help-radius: 16px;
}

body.help-portal {
  margin: 0;
  min-height: 100vh;
  background-color: var(--help-bg);
  color: var(--help-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(229, 199, 107, 0.22) 0, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(184, 134, 11, 0.10) 0, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l20-12V22L28 10 8 22v20l20 12z' fill='%23e5c76b' fill-opacity='0.10'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: auto, auto, 56px 100px;
}

/* Top bar */
.help-topbar {
  background: var(--help-card);
  border-bottom: 1px solid var(--help-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.help-topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.help-brand-name {
  font-weight: 700;
  color: var(--help-accent);
  letter-spacing: -0.01em;
}

.help-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.help-topbar-link {
  text-decoration: none;
  color: var(--help-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.help-topbar-link:hover {
  background: var(--help-soft);
  color: var(--help-text);
}

.help-topbar-link.active {
  background: var(--help-accent);
  color: #fff;
}

.help-topbar-link--back {
  border: 1px solid var(--help-border);
}

/* Main */
.help-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

/* Landing hero + audience cards */
.help-hero {
  text-align: center;
  margin: 1rem 0 1.75rem;
}

.help-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.help-hero-subtitle {
  color: var(--help-muted);
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.5;
}

.help-audience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.help-audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--help-card);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--help-text);
  box-shadow: 0 10px 28px rgba(31, 26, 16, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 26, 16, 0.1);
}

.help-audience-emoji {
  font-size: 2rem;
}

.help-audience-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.help-audience-desc {
  color: var(--help-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.help-audience-cta {
  margin-top: 0.35rem;
  color: var(--help-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Audience page header */
.help-page-header {
  margin-bottom: 1.25rem;
}

.help-page-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.help-page-subtitle {
  color: var(--help-muted);
  line-height: 1.5;
  margin: 0;
}

/* Search */
.help-search {
  margin-bottom: 0.85rem;
}

.help-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--help-border);
  border-radius: 999px;
  background: var(--help-card);
  color: var(--help-text);
}

.help-search-input:focus {
  outline: none;
  border-color: var(--help-accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* Tags */
.help-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.help-tag {
  border: 1px solid var(--help-border);
  background: var(--help-card);
  color: var(--help-muted);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.help-tag:hover {
  background: var(--help-soft);
  color: var(--help-text);
}

.help-tag--active {
  background: var(--help-accent);
  border-color: var(--help-accent);
  color: #fff;
}

/* Sections + accordion */
.help-section {
  margin-bottom: 1.75rem;
}

.help-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--help-accent);
}

.help-section-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.help-item {
  background: var(--help-card);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  overflow: hidden;
}

.help-item-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
}

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

.help-item-icon::before {
  content: "＋";
  color: var(--help-accent);
  font-size: 1.1rem;
  line-height: 1;
}

.help-item[open] .help-item-icon::before {
  content: "－";
}

.help-item-answer {
  padding: 0 1.1rem 0.5rem;
  color: var(--help-text);
  line-height: 1.55;
}

.help-item-answer p {
  margin: 0 0 0.6rem;
}

.help-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.1rem 1rem;
}

.help-item-tag {
  background: var(--help-soft);
  color: var(--help-accent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.help-empty,
.help-no-results {
  color: var(--help-muted);
  text-align: center;
  padding: 2rem 1rem;
}

/* Footer */
.help-footer {
  border-top: 1px solid var(--help-border);
  background: var(--help-card);
  text-align: center;
  padding: 1.25rem;
  color: var(--help-muted);
  font-size: 0.85rem;
}

.help-footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .help-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
