/* ==========================================================================
   Support / help center — GoDaddy/Hostinger-style, on the Managello system.
   Reuses tokens from site.css. Marketing surface → Managello navy/amber is OK.
   ========================================================================== */

/* ---- hero (dark navy search band) ---- */
.sup-hero{ background:var(--brand-navy); padding:72px 0 84px; text-align:center; }
.sup-hero .eyebrow{ color:rgba(255,255,255,.6); margin-bottom:14px; }
.sup-hero h1{ color:#fff; font-size:clamp(2.1rem,4vw,3rem); font-weight:800; line-height:1.05; }
.sup-search{ max-width:680px; margin:28px auto 0; position:relative; display:block; }
.sup-search input{ width:100%; box-sizing:border-box; border:none; border-radius:12px; padding:18px 20px 18px 52px; font-size:1.02rem; font-family:'Inter',sans-serif; color:var(--brand-ink); background:#fff; box-shadow:0 20px 50px -24px rgba(0,0,0,.5); outline:none; }
.sup-search input::placeholder{ color:#9AA5AD; }
.sup-search input:focus{ box-shadow:0 20px 50px -20px rgba(0,0,0,.55), 0 0 0 3px rgba(201,132,62,.5); }
.sup-search .sup-search-ic{ position:absolute; left:20px; top:50%; transform:translateY(-50%); width:20px; height:20px; color:#9AA5AD; pointer-events:none; }
.sup-search button{ position:absolute; right:8px; top:50%; transform:translateY(-50%); border:none; background:var(--brand-navy); color:#fff; font-weight:600; font-size:0.86rem; padding:10px 16px; border-radius:9px; cursor:pointer; font-family:'Inter',sans-serif; }
.sup-search button:hover{ background:#1b2730; }
.sup-hero-note{ color:rgba(255,255,255,.6); font-size:0.92rem; margin-top:20px; }
.sup-hero-note a{ color:#fff; border-bottom:1px solid rgba(255,255,255,.4); }

/* pull the content up to overlap the hero slightly, like the screenshot */
.sup-body{ padding:56px 0 0; }

/* ---- category cards ---- */
.sup-cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.sup-cat-card{ display:flex; flex-direction:column; background:var(--brand-white); border:1px solid var(--brand-line); border-radius:16px; padding:26px; box-shadow:0 1px 2px rgba(28,38,48,.03); transition:border-color .22s ease, box-shadow .28s ease, transform .28s ease; }
.sup-cat-card:hover{ border-color:rgba(201,132,62,.4); box-shadow:0 24px 48px -30px rgba(28,38,48,.3); transform:translateY(-3px); }
.sup-cat-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.sup-cat-ic{ width:44px; height:44px; border-radius:11px; background:var(--brand-surface); border:1px solid var(--brand-line); display:grid; place-items:center; color:var(--brand-navy); }
.sup-cat-ic svg{ width:22px; height:22px; }
.sup-cat-count{ font-size:0.82rem; color:#8A97A0; }
.sup-cat-card h3{ font-family:'Inter Tight',sans-serif; font-size:1.12rem; color:var(--brand-navy); margin-bottom:8px; }
.sup-cat-card p{ font-size:0.9rem; line-height:1.5; color:#5A6870; }

/* ---- section headings ---- */
.sup-section{ margin-top:56px; }
.sup-section h2{ font-size:1.5rem; color:var(--brand-navy); margin-bottom:20px; }

/* ---- popular articles list ---- */
.sup-list{ border:1px solid var(--brand-line); border-radius:14px; overflow:hidden; background:var(--brand-white); }
.sup-list-row{ display:flex; align-items:center; gap:14px; padding:18px 22px; border-bottom:1px solid var(--brand-line); transition:background .18s ease; }
.sup-list-row:last-child{ border-bottom:none; }
.sup-list-row:hover{ background:var(--brand-surface); }
.sup-list-chev{ color:var(--brand-amber); font-weight:700; flex-shrink:0; }
.sup-list-title{ font-size:0.98rem; color:var(--brand-navy); font-weight:500; flex:1; min-width:0; }
.sup-list-meta{ font-size:0.82rem; color:#8A97A0; white-space:nowrap; flex-shrink:0; }

/* ---- common questions ---- */
.sup-cq{ max-width:820px; }
.sup-cq a{ display:block; padding:18px 4px; border-bottom:1px solid var(--brand-line); font-family:'Inter Tight',sans-serif; font-weight:700; font-size:1.05rem; color:var(--brand-navy); transition:color .18s ease; }
.sup-cq a:first-child{ border-top:1px solid var(--brand-line); }
.sup-cq a:hover{ color:var(--brand-amber); }

/* ---- still need help band ---- */
.sup-help{ border-top:1px solid var(--brand-line); margin-top:64px; padding:56px 0; }
.sup-help-inner{ max-width:820px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; background:var(--brand-white); border:1px solid var(--brand-line); border-radius:16px; padding:30px 34px; box-shadow:0 18px 44px -34px rgba(28,38,48,.2); }
.sup-help-copy{ max-width:560px; }
.sup-help-copy h2{ font-size:1.6rem; color:var(--brand-navy); margin-bottom:12px; }
.sup-help-copy p{ font-size:0.98rem; line-height:1.6; color:#5A6870; }
.sup-help-actions{ display:flex; gap:12px; flex-shrink:0; }

/* ---- category + article pages ---- */
.sup-page-head{ background:var(--brand-navy); padding:52px 0 44px; }
/* reset the global site `nav` chrome (white/sticky/bordered) for breadcrumbs */
.sup-crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:0.82rem; color:rgba(255,255,255,.6); margin-bottom:16px; background:transparent; position:static; border:none; height:auto; z-index:auto; }
.sup-crumbs a{ color:rgba(255,255,255,.8); }
.sup-crumbs a:hover{ color:#fff; }
.sup-crumbs .sep{ color:rgba(255,255,255,.35); }
.sup-crumbs .current{ color:#fff; }
.sup-page-head h1{ color:#fff; font-size:clamp(1.8rem,3vw,2.4rem); font-weight:800; max-width:24ch; }
.sup-page-head p{ color:rgba(255,255,255,.72); font-size:1.02rem; margin-top:12px; max-width:60ch; }

.sup-article-wrap{ display:grid; grid-template-columns:1fr 280px; gap:56px; padding:56px 0 80px; align-items:start; }
.sup-article{ min-width:0; }
.sup-article-meta{ display:flex; align-items:center; gap:14px; font-size:0.84rem; color:#8A97A0; margin-bottom:22px; }
.sup-article-meta .dot{ color:var(--brand-line); }

/* rendered markdown */
.sup-prose{ font-size:1.02rem; line-height:1.7; color:#33424C; }
.sup-prose h2{ font-family:'Inter Tight',sans-serif; font-size:1.4rem; color:var(--brand-navy); margin:34px 0 12px; }
.sup-prose h3{ font-family:'Inter Tight',sans-serif; font-size:1.12rem; color:var(--brand-navy); margin:26px 0 10px; }
.sup-prose p{ margin:0 0 16px; }
.sup-prose ul, .sup-prose ol{ margin:0 0 18px 22px; }
.sup-prose li{ margin-bottom:8px; }
.sup-prose a{ color:var(--brand-amber); border-bottom:1px solid rgba(201,132,62,.4); }
.sup-prose a:hover{ border-color:var(--brand-amber); }
.sup-prose code{ font-family:'JetBrains Mono',monospace; font-size:0.88em; background:var(--brand-surface); border:1px solid var(--brand-line); border-radius:5px; padding:2px 6px; }
.sup-prose pre{ background:var(--brand-navy); color:#E8EDF1; border-radius:10px; padding:16px 18px; overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; margin:0 0 18px; }
.sup-prose pre code{ white-space:pre; }
.sup-prose pre code{ background:transparent; border:none; color:inherit; padding:0; font-size:0.85rem; }
.sup-prose blockquote{ border-left:3px solid var(--brand-amber); background:var(--brand-surface); padding:14px 18px; border-radius:0 8px 8px 0; margin:0 0 18px; color:#4B5A64; }
.sup-prose blockquote p{ margin:0; }
.sup-prose strong{ color:var(--brand-navy); }

/* helpful vote */
.sup-vote{ margin-top:44px; padding:24px 26px; border:1px solid var(--brand-line); border-radius:14px; background:var(--brand-surface); display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.sup-vote-q{ font-family:'Inter Tight',sans-serif; font-weight:700; color:var(--brand-navy); font-size:1.02rem; }
.sup-vote-btns{ display:flex; gap:10px; }
.sup-vote-btn{ border:1px solid var(--brand-line); background:#fff; color:var(--brand-navy); border-radius:9px; padding:9px 20px; font-weight:600; font-size:0.9rem; cursor:pointer; font-family:'Inter',sans-serif; }
.sup-vote-btn:hover{ border-color:var(--brand-amber); color:var(--brand-amber); }
.sup-vote-thanks{ color:#15803D; font-weight:600; font-size:0.94rem; }

/* article sidebar */
.sup-side{ position:sticky; top:96px; display:flex; flex-direction:column; gap:24px; }
.sup-side-card{ border:1px solid var(--brand-line); border-radius:14px; background:var(--brand-white); padding:20px 22px; }
.sup-side-card h4{ font-family:'Inter Tight',sans-serif; font-size:0.78rem; text-transform:uppercase; letter-spacing:.06em; color:#8A97A0; margin-bottom:14px; }
.sup-side-links{ display:flex; flex-direction:column; gap:12px; }
.sup-side-links a{ font-size:0.92rem; color:var(--brand-navy); line-height:1.35; }
.sup-side-links a:hover{ color:var(--brand-amber); }
.sup-side-cta{ background:var(--brand-navy); border-radius:14px; padding:22px; color:#fff; }
.sup-side-cta h4{ color:#fff; font-family:'Inter Tight',sans-serif; font-size:1.02rem; margin-bottom:8px; text-transform:none; letter-spacing:0; }
.sup-side-cta p{ font-size:0.86rem; color:rgba(255,255,255,.7); line-height:1.5; margin-bottom:14px; }
.sup-side-cta .btn{ width:100%; }

/* category page article list reuses .sup-list */
.sup-cat-lead{ padding:44px 0 0; }

/* search results */
.sup-search-page{ padding:52px 0 80px; }
.sup-search-summary{ font-size:0.98rem; color:#5A6870; margin-bottom:24px; }
.sup-search-summary strong{ color:var(--brand-navy); }
.sup-result{ display:block; padding:22px 24px; border:1px solid var(--brand-line); border-radius:14px; background:var(--brand-white); margin-bottom:14px; transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.sup-result:hover{ border-color:rgba(201,132,62,.4); box-shadow:0 18px 36px -26px rgba(28,38,48,.3); transform:translateY(-2px); }
.sup-result-cat{ font-family:'JetBrains Mono',monospace; font-size:0.72rem; letter-spacing:.05em; text-transform:uppercase; color:var(--brand-amber); margin-bottom:8px; }
.sup-result h3{ font-family:'Inter Tight',sans-serif; font-size:1.12rem; color:var(--brand-navy); margin-bottom:6px; }
.sup-result p{ font-size:0.92rem; color:#5A6870; line-height:1.5; }
.sup-empty{ text-align:center; padding:48px 0; }
.sup-empty p{ color:#5A6870; font-size:1rem; margin-bottom:18px; }

/* ---- ticket form ---- */
.sup-form-wrap{ display:grid; grid-template-columns:1fr 340px; gap:56px; padding:56px 0 80px; align-items:start; }
.sup-form{ min-width:0; }
.sup-field{ margin-bottom:20px; }
.sup-field label{ display:block; font-size:0.9rem; font-weight:600; color:var(--brand-navy); margin-bottom:8px; }
.sup-field input, .sup-field select, .sup-field textarea{ width:100%; box-sizing:border-box; border:1px solid var(--brand-line); border-radius:10px; padding:12px 14px; font-size:0.98rem; font-family:'Inter',sans-serif; color:var(--brand-ink); background:#fff; outline:none; }
.sup-field input:focus, .sup-field select:focus, .sup-field textarea:focus{ border-color:var(--brand-amber); box-shadow:0 0 0 3px rgba(201,132,62,.14); }
.sup-field textarea{ min-height:180px; resize:vertical; line-height:1.6; }
.sup-field-error{ color:#B3261E; font-size:0.84rem; margin-top:6px; }
.sup-field-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.sup-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sup-form-actions{ display:flex; align-items:center; gap:16px; margin-top:8px; }
.sup-form-note{ font-size:0.82rem; color:#8A97A0; }
.sup-aside-card{ border:1px solid var(--brand-line); border-radius:16px; background:var(--brand-white); padding:26px; }
.sup-aside-card h3{ font-family:'Inter Tight',sans-serif; font-size:1.1rem; color:var(--brand-navy); margin-bottom:12px; }
.sup-aside-card p{ font-size:0.92rem; line-height:1.6; color:#5A6870; margin-bottom:12px; }
.sup-aside-card ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.sup-aside-card li{ display:flex; gap:9px; font-size:0.9rem; color:#4B5A64; line-height:1.4; }
.sup-aside-card li::before{ content:'✓'; color:var(--brand-amber); font-weight:700; }

/* ticket sent confirmation */
.sup-sent{ max-width:620px; margin:0 auto; text-align:center; padding:80px 0; }
.sup-sent-badge{ width:64px; height:64px; border-radius:50%; background:rgba(21,128,61,.12); color:#15803D; display:grid; place-items:center; font-size:1.8rem; margin:0 auto 24px; }
.sup-sent h1{ font-size:2rem; color:var(--brand-navy); margin-bottom:14px; }
.sup-sent p{ font-size:1.02rem; line-height:1.6; color:#5A6870; margin-bottom:10px; }
.sup-sent-ref{ display:inline-block; margin:18px 0 26px; padding:14px 26px; background:var(--brand-surface); border:1px solid var(--brand-line); border-radius:12px; }
.sup-sent-ref span{ display:block; font-size:0.72rem; text-transform:uppercase; letter-spacing:.05em; color:#8A97A0; margin-bottom:4px; }
.sup-sent-ref strong{ font-family:'Inter Tight',sans-serif; font-size:1.6rem; color:var(--brand-navy); letter-spacing:.02em; }

/* flash */
.sup-flash{ background:rgba(21,128,61,.1); border:1px solid rgba(21,128,61,.3); color:#15803D; border-radius:10px; padding:12px 16px; font-size:0.92rem; margin-bottom:20px; }

/* ---- responsive ---- */
@media(max-width:900px){
  .sup-cat-grid{ grid-template-columns:repeat(2,1fr); }
  .sup-article-wrap, .sup-form-wrap{ grid-template-columns:1fr; gap:36px; }
  .sup-side{ position:static; }
  .sup-help-inner{ flex-direction:column; align-items:flex-start; }
}
@media(max-width:640px){
  .sup-cat-grid{ grid-template-columns:1fr; }
  .sup-form-row{ grid-template-columns:1fr; }
  .sup-help-actions{ width:100%; flex-direction:column; }
  .sup-help-actions .btn{ width:100%; }

  /* mobile density: pull the help-center sections closer together */
  .sup-hero{ padding:48px 0 40px; }
  .sup-body{ padding:36px 0 0; }
  .sup-help{ margin-top:40px; padding:40px 0; }
  .sup-page-head{ padding:40px 0 32px; }
  .sup-article-wrap{ padding:36px 0 48px; gap:28px; }
  .sup-cat-lead{ padding:32px 0 0; }
  .sup-search-page{ padding:40px 0 48px; }
  .sup-form-wrap{ padding:36px 0 48px; }
  .sup-sent{ padding:56px 0; }
}

/* typed intake — ticket type picker and its per-type questions */
.sup-type-hint{ margin-top:8px; font-size:0.86rem; color:#5A6870; }
.sup-optional{ margin-left:7px; font-size:0.74rem; font-weight:500; text-transform:uppercase; letter-spacing:.04em; color:#8A97A0; }
.sup-type-fields{ border-left:2px solid var(--brand-line); padding-left:18px; margin-bottom:20px; }
.sup-type-fields .sup-field:last-child{ margin-bottom:0; }
/* These are follow-up questions, not the main "how can we help" box — they shouldn't
   dominate the form the way the 180px default would. */
.sup-type-fields textarea{ min-height:110px; }

/* attachment picker on the public ticket form */
.sup-field input[type=file]{ padding:11px 13px; font-size:0.9rem; background:var(--brand-surface); cursor:pointer; }

/* customer-facing ticket status page */
.sup-status-wrap{ display:grid; grid-template-columns:1fr 300px; gap:32px; align-items:start; padding:36px 0 64px; }
.sup-status-pill{ display:inline-block; font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:3px 10px; border-radius:20px; margin-right:10px; background:rgba(201,132,62,.12); color:var(--brand-amber); }
.sup-status-pill.resolved, .sup-status-pill.closed{ background:rgba(21,128,61,.1); color:#15803D; }
.sup-status-pill.pending{ background:rgba(180,83,9,.1); color:#B45309; }
.sup-status-pill.in_progress{ background:rgba(37,50,61,.1); color:var(--brand-navy); }

.sup-thread{ display:flex; flex-direction:column; gap:14px; }
.sup-msg{ background:#fff; border:1px solid var(--brand-line); border-radius:12px; padding:16px 20px 18px; }
.sup-msg header{ display:flex; align-items:center; gap:10px; margin-bottom:11px; padding-bottom:10px; border-bottom:1px solid var(--brand-line); }
.sup-msg .who{ font-weight:700; font-size:.92rem; color:var(--brand-navy); }
.sup-msg time{ margin-left:auto; font-size:.8rem; color:#8A97A0; }
.sup-msg .body{ white-space:pre-wrap; font-size:.97rem; line-height:1.65; word-break:break-word; }
/* Support's replies read as the other side of a conversation, not as your own words. */
.sup-msg.from-support{ border-left:3px solid var(--brand-amber); background:#FFFDFA; }

.sup-files{ list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.sup-files a{ display:inline-block; border:1px solid var(--brand-line); background:var(--brand-surface); border-radius:8px; padding:7px 11px; font-size:.84rem; font-weight:600; color:var(--brand-navy); }
.sup-files a:hover{ border-color:var(--brand-amber); background:#fff; }
.sup-files span{ font-weight:400; color:#8A97A0; }

.sup-meta-row{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--brand-line); font-size:.88rem; }
.sup-meta-row:last-of-type{ border-bottom:none; }
.sup-meta-row span{ color:#8A97A0; }
.sup-meta-row strong{ color:var(--brand-navy); text-align:right; word-break:break-word; }

.sup-flash{ background:rgba(21,128,61,.08); border:1px solid rgba(21,128,61,.3); color:#15803D; border-radius:10px; padding:12px 16px; font-size:.9rem; margin-bottom:18px; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media(max-width:860px){
  .sup-status-wrap{ grid-template-columns:1fr; gap:24px; }
}
