/* PuLoop Help Centre (backend/help-centre, 2026-11-11) */
:root {
  --brand: #7704fa;
  --brand-2: #cb0596;
  --brand-3: #f5366e;
  --brand-soft: #f3e9ff;
  --bg: #ffffff;
  --bg-alt: #f6f5f8;
  --card: #ffffff;
  --text: #15161a;
  --muted: #6e6e73;
  --line: #e7e5ec;
  --tab: #efeaf6;
  --note: #fff7e6;
  --note-line: #f5b638;
  --warn: #fff0f2;
  --warn-line: #f5366e;
  --tip: #ecfbef;
  --tip-line: #009821;
  --focus: 0 0 0 3px rgba(119, 4, 250, .28);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #a35bff;
    --brand-soft: #2a1a42;
    --bg: #0f1013;
    --bg-alt: #16171c;
    --card: #1b1c22;
    --text: #f2f2f5;
    --muted: #a3a3ab;
    --line: #2b2c34;
    --tab: #24232c;
    --note: #2c2414;
    --warn: #2e161c;
    --tip: #142619;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #a35bff;
  --brand-soft: #2a1a42;
  --bg: #0f1013;
  --bg-alt: #16171c;
  --card: #1b1c22;
  --text: #f2f2f5;
  --muted: #a3a3ab;
  --line: #2b2c34;
  --tab: #24232c;
  --note: #2c2414;
  --warn: #2e161c;
  --tip: #142619;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.hc-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.hc-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.hc-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; white-space: nowrap; }
.hc-brand:hover { text-decoration: none; }
.hc-brand img { width: 30px; height: 30px; border-radius: 8px; }
.hc-brand span { color: var(--muted); font-weight: 500; }
.hc-header .spacer { flex: 1; }
.hc-mini-search { flex: 1; max-width: 420px; }
.hc-lang, .hc-contact-link {
  font-size: 14px; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; background: var(--card); white-space: nowrap;
}
.hc-lang select { border: 0; background: transparent; color: inherit; font: inherit; }
.in-app .hc-brand img { display: none; }

/* Search */
.search { position: relative; }
.search input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 42px;
}
.search input:focus { outline: none; box-shadow: var(--focus); border-color: var(--brand); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, var(--brand-3) 100%);
  color: #fff; padding: 48px 0 56px; text-align: center;
}
.hero h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.hero p { margin: 0 0 22px; opacity: .92; }
.hero .search { max-width: 620px; margin: 0 auto; }
.hero .search input { background: #fff; color: #15161a; border-color: transparent; padding: 14px 18px 14px 46px; font-size: 17px; }
.hero .search svg { color: #6e6e73; }
.hero-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 14px; }
.hero-chips a { color: #fff; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 999px; }

/* Grid of categories */
.section-title { font-size: 22px; margin: 40px 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--text); transition: border-color .15s, transform .15s;
}
.cat-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.cat-card .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.cat-card .ic svg { width: 22px; height: 22px; }
.cat-card h3 { margin: 0 0 2px; font-size: 16px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--text); }
.list a:hover { text-decoration: none; background: var(--bg-alt); }
.list a::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; }
.list .sub { display: block; color: var(--muted); font-size: 14px; }
.cols-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.contact-banner {
  margin: 40px 0; padding: 22px; border-radius: var(--radius); background: var(--bg-alt);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.contact-banner h3 { margin: 0; font-size: 18px; }
.contact-banner p { margin: 2px 0 0; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 999px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Two-column page (sidebar + content) */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.page > * { min-width: 0; }
@media (min-width: 960px) { .page { grid-template-columns: 250px minmax(0, 1fr); } }
.sidebar { display: none; }
@media (min-width: 960px) { .sidebar { display: block; position: sticky; top: 84px; align-self: start; } }
.sidebar h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 15px; }
.sidebar a:hover { background: var(--bg-alt); text-decoration: none; }
.sidebar a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .6; }
.page h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.25; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.page h2.sec { font-size: 18px; margin: 28px 0 10px; }

/* Article body */
.article { max-width: 760px; }
.article h2 { font-size: 20px; margin: 28px 0 8px; }
.article h3 { font-size: 17px; margin: 22px 0 6px; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 4px 0; }
.article code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--line); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.article blockquote p { margin: 4px 0; }
.article .callout { border-left-color: var(--note-line); background: var(--note); }
.article .callout-Important, .article .callout-Warning { border-left-color: var(--warn-line); background: var(--warn); }
.article .callout-Tip { border-left-color: var(--tip-line); background: var(--tip); }
.pf-tabs { display: flex; gap: 6px; margin: 18px 0 4px; padding: 4px; background: var(--tab); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.pf-tab { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pf-tab.is-active { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pf-panel { padding-top: 4px; }
.app-btn { display: none; }
.in-app .app-btn { display: inline-flex; margin: 6px 0; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.in-app .app-btn:hover { text-decoration: none; }
.updated { color: var(--muted); font-size: 13px; margin-top: 28px; }

/* Helpful? */
.helpful { margin: 32px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 760px; }
.helpful h3 { margin: 0 0 10px; font-size: 16px; }
.helpful .row { display: flex; gap: 10px; flex-wrap: wrap; }
.helpful .reasons { display: none; margin-top: 14px; }
.helpful.ask .reasons { display: block; }
.helpful label.r { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 15px; }
.helpful textarea { width: 100%; margin: 8px 0; }
.helpful .thanks { display: none; color: var(--muted); }
.helpful.done .thanks { display: block; }
.helpful.done .row, .helpful.done .reasons, .helpful.done h3 { display: none; }

.related { margin-top: 32px; max-width: 760px; }
.related h3 { font-size: 16px; margin: 0 0 10px; }

/* Forms */
.form { max-width: 640px; }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.errors { background: var(--warn); border-left: 4px solid var(--warn-line); padding: 10px 14px; border-radius: 0 10px 10px 0; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.suggest { display: none; margin: -6px 0 16px; padding: 12px 14px; background: var(--brand-soft); border-radius: 10px; font-size: 15px; }
.suggest.on { display: block; }
.suggest ul { margin: 6px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; }
.ok-box { padding: 24px; border-radius: var(--radius); background: var(--tip); border-left: 4px solid var(--tip-line); }

/* Ticket thread */
.thread { list-style: none; padding: 0; margin: 0 0 20px; max-width: 760px; }
.thread li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--card); }
.thread li.staff { background: var(--brand-soft); border-color: transparent; }
.thread .who { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.thread .msg { white-space: pre-line; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); }
.status.open { background: #e6f0ff; color: #1d4ed8; }
.status.pending { background: #fff4d6; color: #92600a; }
.status.resolved { background: #e3f7e8; color: #146c2e; }

/* Search results */
.results { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.results a.t { font-weight: 600; font-size: 17px; }
.results .where { font-size: 13px; color: var(--muted); }
.results p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.results mark { background: var(--brand-soft); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Footer */
.hc-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 32px 0 24px; font-size: 14px; }
.hc-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.hc-footer h4 { margin: 0 0 8px; font-size: 14px; }
.hc-footer ul { list-style: none; margin: 0; padding: 0; }
.hc-footer li { margin: 4px 0; }
.hc-footer a { color: var(--muted); }
.hc-footer .copy { margin-top: 24px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.in-app .hc-footer .cols { display: none; }

.hc-search-link { display: none; color: var(--text); width: 36px; height: 36px; border-radius: 999px; place-items: center; margin-left: auto; }
.hc-search-link svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .hc-header .wrap { height: 56px; }
  .hc-brand span, .hc-lang { display: none; }
  .hc-mini-search { display: none; }
  .hc-search-link { display: grid; }
  .hero { padding: 32px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
