/* ── Help Center (owner 2026-10-27; launched 2026-10-28) ─────────────
   Linked from the site's nav and footer and from the app's Profile → Support.
   Colors and the font come from the synced app sheet
   (_app-styles.css); everything here is page layout. */

:root {
  --help-max: 760px;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, 'PT Serif', Georgia, serif;
}
body {
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(124, 111, 247, 0.12) 0%, rgba(124, 111, 247, 0.03) 30%, transparent 100%);
  background-repeat: no-repeat;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
}
a, a:hover { text-decoration: none; }

/* Header */
.help-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  background: rgba(15, 15, 19, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* The main site's wordmark: favicon + the app's .logo-text at the site nav's 22px. */
.help-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); }
.help-brand .logo-text { font-size: 22px; }
@media (max-width: 380px) { .help-brand .logo-text { font-size: 19px; } }
/* The header, in the main site's nav style (owner, 2026-11-03): the three
   pages as a centered row of links, gold pill Sign Up, ghost pill Sign In, and
   the site's burger + drawer on a phone. Sign In / Sign Up only show to someone
   not signed in to the app (help.js sets <html class="pbh-signed-in">). */
.help-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.help-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 4px; white-space: nowrap; transition: color 0.18s ease; }
.help-links a:hover { color: var(--text); }
.help-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.help-nav-cta { display: flex; gap: 10px; flex-shrink: 0; }
.help-nav-cta a { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease; }
.help-nav-cta a:hover { transform: translateY(-1px); }
.help-nav-cta .ghost { color: var(--text); border-color: var(--border); }
.help-nav-cta .ghost:hover { border-color: var(--text); }
.help-nav-cta .primary { background: #f6c860; color: #1c1730; box-shadow: 0 4px 14px rgba(246, 200, 96, 0.30); }
.pbh-signed-in .help-auth { display: none !important; }
/* Signed in, the links take the room the buttons had. */
.pbh-signed-in .help-links { justify-content: flex-end; }
.help-burger { display: none; margin-left: auto; background: transparent; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; padding: 0; }
.help-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }
.help-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.help-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.help-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.help-drawer { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 19; flex-direction: column; padding: 14px 24px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
.help-drawer.open { display: flex; }
.help-drawer a { padding: 14px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.help-drawer a:last-child { border-bottom: 0; }
.help-drawer a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.help-drawer .drawer-signin { color: var(--muted); margin-top: 8px; }
.help-drawer .drawer-signup { color: #f6c860; font-weight: 600; }
@media (max-width: 720px) {
  .help-links, .help-nav-cta { display: none; }
  .help-burger { display: flex; }
}

/* Page */
.help-main { max-width: var(--help-max); margin: 0 auto; padding: 36px 16px 64px; }
.help-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.help-crumbs a { color: var(--accent); }
.help-main h1 { font-family: var(--font-serif); font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 0 0 10px; color: var(--text); }
.help-lede { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.help-main h2 { font-size: 21px; margin: 40px 0 12px; color: var(--text); }
.help-main h3 { font-size: 17px; margin: 24px 0 8px; color: var(--text); }
.help-main p, .help-main li { color: #cfcfe0; font-size: 16px; }
.help-main strong { color: var(--text); }
/* The app sheet zeroes every margin and padding, which left list bullets
   hanging off the screen's edge on a phone. */
.help-main ul, .help-main ol { padding-left: 24px; margin: 0 0 14px; }
.help-main li { margin: 0 0 6px; padding-left: 2px; }
.help-main p { margin: 0 0 12px; }
.help-main code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--text); word-break: break-all; }

/* Search */
.help-search { position: relative; margin: 0 0 30px; }
.help-search input {
  width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px; font-size: 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; outline: none;
}
.help-search input:focus { border-color: var(--accent); }
.help-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.help-empty { color: var(--muted); display: none; }

/* Guide cards */
.help-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 30px 0 10px; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.help-card {
  display: block; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.help-card-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.help-card-sub { color: var(--muted); font-size: 14px; line-height: 1.45; }
.help-card.soon { opacity: 0.55; pointer-events: none; }
.help-card.soon .help-card-title::after { content: 'Soon'; margin-left: 8px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--muted); color: var(--muted); vertical-align: 2px; }

/* FAQ */
.help-faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.help-faq summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-weight: 600; color: var(--text); font-size: 16px; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; color: var(--accent); font-size: 20px; font-weight: 400; }
.help-faq details[open] summary::after { content: '–'; }
.help-faq details p { margin: 0 0 12px; }

/* Steps */
.help-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; margin: 0 0 8px; }
.help-toc ol { margin: 0; padding-left: 20px; }
.help-toc a { color: var(--accent); }
.help-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; margin-top: 34px; scroll-margin-top: 80px; }
.help-step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-glow); border: 1px solid var(--accent);
  color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.help-step h2 { margin: 4px 0 8px; }
.help-shot { margin: 16px 0 4px; }
.help-shot img { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.help-shot.wide img { max-width: 560px; border-radius: 12px; }
.help-shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 520px) { .help-step { grid-template-columns: minmax(0, 1fr); } .help-step-num { margin-bottom: 6px; } }

/* Tip / note callouts */
.help-tip { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-glow); border-left: 3px solid var(--accent); }
.help-tip p { margin: 0; }
.help-tabs { display: flex; gap: 6px; margin: 18px 0 0; }
.help-tabs a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; }
.help-tabs a:hover { border-color: var(--accent); }

/* Downloadable icon (ChatGPT has no icon of its own for a custom server). */
.help-icon-dl { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.help-icon-dl img { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.help-icon-dl > div { flex: 1; min-width: 0; }
.help-icon-dl-title { font-weight: 700; color: var(--text); font-size: 15px; }
.help-icon-dl-sub { color: var(--muted); font-size: 13px; line-height: 1.4; }
.help-icon-dl-btn { flex-shrink: 0; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #14141d; font-weight: 600; font-size: 14px; }

/* Footer */
/* Footer: the landing page's footer, same markup and look (site/styles.css
   .footer*), on every Help Center, What's New and Updates page (owner, 2026-11-03). */
.footer { border-top: 1px solid var(--border); padding: 48px 28px 64px; background: rgba(0, 0, 0, 0.18); margin-top: 32px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.footer-tag { color: var(--muted); font-size: 14px; font-style: italic; font-family: var(--font-serif); margin: 0; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 8px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.18s ease; }
.footer-links a:hover { color: var(--text); }
.footer-fineprint { color: var(--muted); opacity: 0.75; font-size: 12px; margin: 18px 0 0; text-align: center; line-height: 1.6; }

/* Inline links in article text (writers had been inlining the color). */
.help-main p a, .help-main li a, .help-faq a { color: var(--accent); }
.help-main p a:hover, .help-main li a:hover { text-decoration: underline; }

/* A Premium tag beside a heading or list item. */
.help-premium { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 3px; color: #f6c860; border: 1px solid rgba(246, 200, 96, 0.55); background: rgba(246, 200, 96, 0.10); }

/* Comparison table (Free vs Premium and the like). Scrolls inside itself on a phone. */
.help-table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.help-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.help-table th, .help-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); color: #cfcfe0; vertical-align: top; }
.help-table th { color: var(--text); font-weight: 700; background: var(--surface); }
.help-table tr:last-child td { border-bottom: 0; }
.help-table td.yes { color: var(--green, #4ade80); font-weight: 600; }

/* Premium-only guides say so before the tap (owner, 2026-10-27): the tag sits in
   the card's bottom-right corner, and on its own line under an article's title. */
.help-card { position: relative; }
.help-card:has(.help-premium) { padding-bottom: 40px; }
.help-card-title .help-premium { position: absolute; right: 14px; bottom: 12px; margin: 0; }
.help-main h1 .help-premium { display: block; width: max-content; margin: 10px 0 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; vertical-align: baseline; }

/* What a feature needs Premium for, in the article: a gold box with Get Premium
   (owner, 2026-10-27). The button opens the app's Premium screen
   (?getPremium=1; Manage Premium for someone who already has it). */
.help-premium-box { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(246, 200, 96, 0.55); background: rgba(246, 200, 96, 0.10); }
.help-premium-box p { margin: 0; flex: 1; min-width: 0; color: #f3e3b8; }
.help-premium-btn { flex-shrink: 0; padding: 8px 14px; border-radius: 10px; background: #f6c860; color: #14141d; font-weight: 700; font-size: 14px; }
.help-premium-btn:hover { filter: brightness(1.06); }
@media (max-width: 420px) { .help-premium-box { flex-direction: column; align-items: flex-start; } }

/* Inside the app (help.js adds .help-embedded): the app supplies the header, so
   the site's own header and footer go, and the page starts closer to the top. */
.help-embedded .help-nav, .help-embedded .help-drawer, .help-embedded .footer { display: none !important; }
.help-embedded .help-main { padding-top: 18px; }
.help-embedded body { background-image: none; }

/* Next (Getting Started, in order) and Suggested (every other guide), below the
   Questions (owner, 2026-10-27). */
.help-related { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--border); }
.help-related h2 { margin-top: 24px; }
.help-related-note { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
