/* QuickCoach Help Center */
:root {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-tint: #eff4ff;
  --lime: #d1f264;
  --ink: #0a0a0a;
  --ink-2: #1f2024;
  --muted: #5c5f66;
  --bg: #fbfbfa;
  --card: #ffffff;
  --line: #ececea;
  --radius: 16px;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --heading: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--heading); letter-spacing: -0.02em; line-height: 1.2; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* top nav */
.topnav { background: var(--accent); }
.topnav-in { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { background: #fff; border-radius: 9px; padding: 5px; display: flex; }
.brand-name { color: #fff; font-family: var(--heading); font-weight: 700; font-size: 18px; }
.brand-name em { font-style: normal; font-weight: 600; opacity: 0.85; }
.topnav-links { display: flex; align-items: center; gap: 18px; }
.topnav-links a { color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 600; }
.topnav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { background: var(--lime); color: var(--ink) !important; padding: 8px 16px; border-radius: 999px; }
.nav-cta:hover { filter: brightness(0.96); }

/* hero */
.hero { background: var(--accent); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; margin-bottom: 28px; }
.hero-sm { padding: 32px 0 36px; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 15px; margin-top: 6px; max-width: 640px; }
.hero-cat { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.hero-cat h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.dot { opacity: 0.6; padding: 0 4px; }

/* search */
.searchbox { position: relative; max-width: 720px; }
.searchbox > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(255,255,255,0.8); pointer-events: none; }
.searchbox input { width: 100%; padding: 16px 20px 16px 50px; font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; outline: none; }
.searchbox input::placeholder { color: rgba(255,255,255,0.75); }
.searchbox input:focus { background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.5); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(10,10,10,0.12); overflow: hidden; z-index: 20; }
.sr-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--accent-tint); text-decoration: none; }
.sr-title { color: var(--ink); font-weight: 600; font-size: 15px; }
.sr-meta { color: var(--muted); font-size: 13px; }
.sr-empty { padding: 14px 18px; color: var(--muted); font-size: 14px; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: -28px 0 56px; position: relative; }
.cat-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 16px rgba(10,10,10,0.04); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cat-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10,10,10,0.08); }
.cat-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 24px; height: 24px; }
.cat-icon-hero { background: rgba(255,255,255,0.16); color: #fff; width: 56px; height: 56px; }
.cat-icon-hero svg { width: 28px; height: 28px; }
.cat-body { display: flex; flex-direction: column; gap: 4px; }
.cat-name { color: var(--ink); font-family: var(--heading); font-weight: 700; font-size: 17px; }
.cat-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cat-count { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 4px; }

/* breadcrumbs */
.crumbs { font-size: 14px; color: rgba(255,255,255,0.8); }
.crumbs a { color: rgba(255,255,255,0.9); }
.crumbs span { padding: 0 6px; opacity: 0.7; }
.crumbs [aria-current] { opacity: 1; padding: 0; }
.crumbs-dark { color: var(--muted); padding: 24px 0 0; }
.crumbs-dark a { color: var(--accent); }

/* category article list */
.art-list { display: flex; flex-direction: column; gap: 14px; margin: 32px 0 56px; }
.art-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.art-row:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10,10,10,0.07); }
.art-row-body { display: flex; flex-direction: column; gap: 3px; }
.art-row-title { color: var(--ink); font-family: var(--heading); font-weight: 700; font-size: 16px; }
.art-row-desc { color: var(--muted); font-size: 14px; }
.art-row-arrow { color: var(--accent); font-size: 18px; flex: 0 0 auto; }

/* article search band (sits directly under the blue topnav) */
.article-search { padding: 24px 0 32px; }
.article-search .searchbox { max-width: 720px; }

/* wide article layout: content + sticky table of contents */
.article-bound { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.article-main { min-width: 0; }

/* on-this-page table of contents */
.toc { position: sticky; top: 24px; margin-top: 66px; font-size: 14px; }
.toc:empty { display: none; }
.toc-label { font-family: var(--heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--line); }
.toc-link { display: block; color: var(--muted); padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.4; }
.toc-link:hover { color: var(--ink-2); text-decoration: none; }
.toc-link.sub { padding-left: 30px; font-size: 13px; }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* article */
.article-wrap { max-width: 760px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin: 20px 0 28px; box-shadow: 0 4px 16px rgba(10,10,10,0.04); }
.article h2, .article h3 { scroll-margin-top: 24px; }
.article h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin-bottom: 10px; }
.article-lede { color: var(--muted); font-size: 17px; margin-bottom: 20px; }

/* author byline */
.byline { display: flex; align-items: center; gap: 12px; padding: 0 0 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: var(--accent-tint); }
.byline-meta { display: flex; flex-direction: column; gap: 1px; }
.byline-name { color: var(--ink-2); font-size: 15px; }
.byline-date { color: var(--muted); font-size: 15px; }
.article h2 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.article p { margin: 0 0 14px; color: var(--ink-2); }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.article li { margin-bottom: 8px; }
.more { margin: 0 0 56px; }
.more h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.more ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.more a { font-size: 15px; }

/* article media & extras */
.article h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.shot { margin: 18px 0 22px; }
.shot img { border: 1px solid var(--line); border-radius: 12px; }
.shot figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.note { background: var(--accent-tint); border: 1px solid #dbe7ff; border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.note p:last-child { margin-bottom: 0; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--bg); font-weight: 600; }
.article video { max-width: 100%; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0 22px; }
.article pre { background: var(--ink-2); color: #f4f4f5; border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article code { background: var(--accent-tint); color: var(--ink-2); padding: 1px 5px; border-radius: 5px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-in { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* responsive */
@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 48px; }
  .cat-grid { grid-template-columns: 1fr; margin-top: -24px; }
  .article { padding: 26px 20px; }
  .topnav-links a:not(.nav-cta) { display: none; }
  .art-row { padding: 16px 18px; }
  .article-search { padding: 16px 0 24px; }
}
