/* Help + Sponsor pages — content-first layout reusing base.css tokens. */

.help-body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  margin: 0;
  min-height: 100vh;
}

.header-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92em;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.header-link:hover { color: var(--text); }
.header-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.help-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

/* Hero */
.help-hero {
  text-align: center;
  padding: 32px 8px 48px;
}
.help-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: var(--text);
}
.help-hero p {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.help-hero-slogan {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  font-style: italic;
  color: var(--accent) !important;
  margin: -16px 0 24px !important;
  letter-spacing: 0.2px;
}
.help-hero-mission {
  max-width: 640px;
  margin: -16px auto 28px !important;
  padding: 12px 16px;
  font-size: 0.92rem !important;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-dim);
  background: rgba(33, 150, 243, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  text-align: left;
}
.help-search-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.help-search {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.help-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

/* Cards (top-level FAQ groups) */
.help-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.help-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.help-card > summary::-webkit-details-marker { display: none; }
.help-card > summary::after {
  content: "▾";
  font-size: 0.85em;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.help-card[open] > summary::after { transform: rotate(180deg); }
.help-card > summary:hover { background: rgba(255,255,255,0.02); }
.help-card-body {
  padding: 6px 22px 18px;
  border-top: 1px solid var(--border);
}

/* Individual Q/A */
.help-q {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.help-q:last-child { border-bottom: none; }
.help-q[hidden] { display: none; }
.help-q > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 4px 14px 28px;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  user-select: none;
}
.help-q > summary::-webkit-details-marker { display: none; }
.help-q > summary::before {
  content: "+";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.2s;
}
.help-q[open] > summary::before {
  content: "−";
}
.help-q > summary:hover { color: var(--accent); }
.help-q > p {
  padding: 0 4px 14px 28px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}
.help-action-row {
  padding-top: 0 !important;
}
.help-action-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.help-action-btn:hover,
.help-action-btn:focus-visible {
  background: var(--accent-dim);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.help-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-dim);
}

.help-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9em;
}
.help-footer a {
  color: var(--accent);
  text-decoration: none;
}
.help-footer a:hover { text-decoration: underline; }
.help-footer .footer-links { margin-top: 8px; font-size: 0.85em; }
.help-footer .footer-sep { margin: 0 6px; opacity: 0.5; }

/* Site footer (homepage / process) — Terms / Disclaimer / Privacy / Help */
.site-footer {
  margin-top: 48px;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85em;
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .footer-sep { margin: 0 8px; opacity: 0.5; }

.site-report-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.56);
}
.site-report-box {
  position: relative;
  width: min(460px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--lc-popup-bg, var(--bg));
  backdrop-filter: var(--lc-popup-blur, none);
  -webkit-backdrop-filter: var(--lc-popup-blur, none);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
}
.site-report-box h2 {
  margin: 0 32px 14px 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}
.site-report-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.site-report-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.site-report-input option {
  background: var(--bg);
  color: var(--text);
}
textarea.site-report-input {
  min-height: 132px;
  resize: vertical;
}
.site-report-input:focus {
  border-color: var(--accent);
  outline: none;
}
.site-report-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.site-report-fallbacks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}
.site-report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
}
.site-report-link:hover,
.site-report-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
  outline: none;
}
.site-report-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.site-report-status[data-kind="ok"] { color: #2e7d32; }
.site-report-status[data-kind="error"] { color: #c62828; }
.site-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.site-report-submit,
.site-report-cancel {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.site-report-submit {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
.site-report-submit:disabled {
  opacity: 0.65;
  cursor: progress;
}
.site-report-cancel {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
}

/* Upload-rights notice — shown next to file upload controls.
   Plan B 2026-05-04: prominent reminder so users self-gate on copyright. */
.upload-rights-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  font-size: 0.8em;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

/* Sponsor specifics */
.support-hero { padding-bottom: 24px; }

.support-block {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.support-block h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  color: var(--text);
}
.support-block p {
  margin: 0 0 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.support-block p:last-child { margin-bottom: 0; }

.tip-wrap {
  text-align: center;
  margin: 28px 0 8px;
}
.tip-btn {
  display: inline-block;
  background: #FFDD00;
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 221, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 221, 0, 0.45);
}
.tip-pending-msg {
  text-align: center;
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.support-list {
  padding-left: 1.2em;
  margin: 0 0 16px;
  color: var(--text-dim);
}
.support-list li { padding: 4px 0; line-height: 1.6; }
.support-list strong { color: var(--text); }

/* Responsive — single column on phones */
@media (max-width: 640px) {
  .help-hero h1 { font-size: 1.6rem; }
  .help-main { padding: 16px 14px 64px; }
  .help-card > summary { padding: 14px 16px; font-size: 1.02rem; }
  .help-card-body { padding: 4px 16px 12px; }
  .support-block { padding: 18px 16px; }
}
