/* StoryBloom Help & User Guide: readable on desktop, phone, and in print. */
.help-page { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 76px; }
.help-page *, .help-page *::before, .help-page *::after { box-sizing: border-box; }
.help-hero {
  position: relative; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 91% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%), var(--surface);
}
.help-hero .eyebrow { margin-bottom: 13px; }
.help-hero h1 { font: 700 clamp(34px, 5vw, 64px)/1.08 Georgia, serif; letter-spacing: -.035em; margin: 0 0 15px; }
.help-hero > p:not(.eyebrow) { max-width: 750px; color: var(--muted); line-height: 1.7; font-size: clamp(16px, 1.6vw, 19px); }
.help-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.help-hero-actions a, .help-cta a {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none; border-radius: 12px; padding: 11px 17px;
  border: 1px solid var(--line); background: var(--surface-2); font-weight: 750;
}
.help-hero-actions .help-primary, .help-cta .help-primary { color: #fff; background: #81335d; border-color: #81335d; }
.help-search-bar { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; }
.help-search-bar label { flex: 1; min-width: 0; display: block; }
.help-search-bar input {
  display: block; width: 100%; min-height: 52px; padding: 12px 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.help-search-bar button { min-height: 48px; padding: 10px 17px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: var(--text); cursor: pointer; }
.help-result-count { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.help-section-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0 36px; }
.help-section-map a {
  display: block; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  padding: 19px 20px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.help-section-map a:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-section-map strong { display: block; font-weight: 800; margin-bottom: 6px; }
.help-section-map small { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.help-section-map .help-map-icon { display: block; font-size: 22px; margin-bottom: 10px; }
.help-section { scroll-margin-top: 100px; margin: 0 0 42px; }
.help-section-heading { display: flex; align-items: flex-start; gap: 15px; margin: 0 0 16px; }
.help-section-heading .help-section-number {
  width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center;
  border-radius: 15px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 850;
}
.help-section-heading h2 { margin: 0 0 5px; font: 700 clamp(25px,3vw,35px)/1.2 Georgia, serif; }
.help-section-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.help-topic { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 9px 0; overflow: hidden; }
.help-topic > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; min-height: 62px; padding: 18px 20px; font-weight: 760; line-height: 1.4; }
.help-topic > summary::-webkit-details-marker { display: none; }
.help-topic > summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; line-height: 1; font-weight: 400; color: var(--accent); }
.help-topic[open] > summary { background: color-mix(in srgb, var(--accent-soft) 32%, var(--surface)); }
.help-topic[open] > summary::after { content: "−"; }
.help-topic > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.help-topic-body { border-top: 1px solid var(--line); padding: 5px 22px 21px; font-size: 15px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.help-topic-body p { margin: 14px 0 0; }
.help-topic-body ul, .help-topic-body ol { padding-left: 24px; margin: 14px 0; }
.help-topic-body li { padding-left: 2px; margin: 6px 0; }
.help-topic-body a { color: var(--accent-dark); text-underline-offset: 3px; }
.help-topic-body strong { color: var(--text); }
.help-note { border-left: 4px solid var(--accent); padding: 10px 13px; margin: 18px 0; border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--text); }
.help-note p { margin: 0; }
.help-guide-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 24px; text-align: center; }
.help-cta { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 27px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.help-cta h2 { margin: 0 0 5px; font: 700 27px Georgia,serif; }
.help-cta p { margin: 0; color: var(--muted); line-height: 1.55; }
.help-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.help-back { margin: 5px 0 22px; text-align: right; }
.help-back a { text-decoration: none; color: var(--accent-dark); font-weight: 750; }
[hidden].help-topic, [hidden].help-section, [hidden].help-guide-empty { display: none !important; }
@media (max-width: 900px) { .help-section-map { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 580px) {
  .help-page { width: calc(100% - 22px); padding-top: 20px; }
  .help-hero { padding: 25px 20px; border-radius: 20px; }
  .help-section-map { grid-template-columns: 1fr; }
  .help-section-map a { padding: 15px 18px; }
  .help-search-bar { align-items: stretch; }
  .help-search-bar button { padding: 9px 12px; }
  .help-topic > summary { padding: 15px 16px; min-height: 58px; }
  .help-topic-body { padding: 3px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .help-section-map a { transition: none; } .help-section-map a:hover { transform: none; } }
@media print {
  .modern-header, .modern-footer, .mobile-bottom-nav, .help-search-bar, .help-result-count, .help-hero-actions, .help-cta { display: none !important; }
  .help-page { width: 100%; padding: 0; }
  .help-section { break-inside: avoid-page; }
  .help-topic, .help-hero { box-shadow: none; }
  .help-topic-body { display: block !important; }
  .help-topic > summary::after { display: none; }
}
