/* FitFocus Help Center */
:root {
  --accent: #007A72;
  --accent-hover: #005C55;
  --accent-tint: #E6FAF8;
  --lime: #d1f264;
  --ink: #0a0a0a;
  --ink-2: #1f2024;
  --muted: #5c5f66;
  --bg: #fbfbfa;
  --card: #ffffff;
  --line: #ececea;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255,255,255,0.78);
  --radius: 16px;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --heading: 'Manrope', 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(--card); border-bottom: 1px solid var(--line); }
.topnav-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 5px; display: flex; }
.brand-name { color: var(--ink); font-family: var(--heading); font-weight: 700; font-size: 19px; }
.brand-name em { font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.topnav-links { display: flex; align-items: center; gap: 18px; }
.topnav-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.topnav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { background: var(--accent); color: var(--on-dark) !important; padding: 9px 18px; border-radius: 10px; font-weight: 700; }
.nav-cta:hover { background: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.news a:focus-visible { outline-color: var(--on-dark); }

/* 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 auto; max-height: min(70vh, 560px); z-index: 20; }
.sr-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover, .sr-item.is-active { background: var(--accent-tint); text-decoration: none; }
.sr-title { color: var(--ink); font-weight: 600; font-size: 15px; }
.sr-snip { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-snip mark { background: var(--accent-tint); color: var(--ink); font-weight: 600; padding: 0 1px; border-radius: 3px; }
.sr-meta { color: var(--muted); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.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; }
.cat-card { display: flex; flex-direction: column; gap: 18px; 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); border-color: var(--accent); }
.cat-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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: 19px; }
.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; }

/* home page */
.article-search { position: relative; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 44px 0 48px; }
.article-search::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 120% at 85% 0%, rgba(0,122,114,0.14), transparent 65%); pointer-events: none; }
.article-search .article-bound { position: relative; }
.article-search .searchbox { margin: 0 auto; }
.hero-home { position: relative; background: var(--bg); color: var(--ink); padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hero-home::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 90% at 90% 0%, rgba(0,122,114,0.16), transparent 65%); pointer-events: none; }
.hero-home .wrap { position: relative; }
.hero-home h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.03em; margin-bottom: 14px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.hero-lede { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin-bottom: 32px; }
.hero-home .searchbox input, .article-search .searchbox input { background: var(--card); color: var(--ink); border-color: var(--line); padding-top: 18px; padding-bottom: 18px; box-shadow: 0 12px 36px rgba(10,10,10,0.08); }
.hero-home .searchbox input::placeholder, .article-search .searchbox input::placeholder { color: var(--muted); }
.hero-home .searchbox input:focus, .article-search .searchbox input:focus { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint), 0 12px 36px rgba(10,10,10,0.08); }
.hero-home .searchbox > svg, .article-search .searchbox > svg { color: var(--accent); z-index: 1; }

.section { padding-top: 80px; padding-bottom: 80px; }
.section-h { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; text-align: center; margin-bottom: 40px; }

.news { background: var(--accent); color: var(--on-dark); padding: 80px 0; }
.news-head { display: flex; align-items: baseline; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.news-head .section-h { margin: 0; }
.news-all { color: var(--on-dark); font-weight: 700; font-size: 15px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; color: var(--on-dark); }
.news-card:hover { text-decoration: none; }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--ink-2); box-shadow: 0 10px 30px rgba(0,0,0,0.22); margin-bottom: 18px; transition: transform 0.2s ease; }
.news-card:hover img { transform: translateY(-3px); }
.news-date { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 8px; }
.news-title { font-family: var(--heading); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.news-desc { color: var(--on-dark-2); font-size: 15px; line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { font-weight: 700; margin-top: auto; }
.news-card:hover .news-more, .news-card:hover .news-title { text-decoration: underline; text-underline-offset: 3px; }

.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px; }
.list-card h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 16px; }
.list-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.list-card li::marker { color: var(--accent); }
.list-card a { color: var(--ink-2); font-size: 16px; }
.list-card a:hover { color: var(--accent); }

.connect { background: var(--accent-tint); color: var(--ink); padding: 80px 0 88px; }
.connect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.connect-card { display: flex; align-items: center; gap: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; font-family: var(--heading); font-weight: 800; font-size: 18px; line-height: 1.25; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.connect-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(10,10,10,0.08); }
.connect-card svg { flex: 0 0 auto; width: 34px; height: 34px; color: var(--accent); }

/* 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: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs-dark a { color: var(--muted); }
.crumbs-dark a:hover { color: var(--accent); }
.crumbs-dark .sep { padding: 0 8px; font-size: 16px; }
.crumbs-dark [aria-current] { color: var(--ink-2); }

/* 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; }



/* wide article layout: content + sticky table of contents */
.article-bound { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.article-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 200px; gap: 48px; align-items: start; padding-top: 40px; }
.article-grid:not(:has(.toc:not(:empty))) { grid-template-columns: 280px minmax(0, 1fr); }

/* categories sidebar (generated by tools/build-help-search-index.js) */
.sidebar { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px 20px; box-shadow: 0 4px 16px rgba(10,10,10,0.04); }
.sidebar-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 12px; }
.side-cat { border-bottom: 1px solid var(--line); }
.side-cat:last-child { border-bottom: 0; }
.side-cat summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; padding: 12px 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 8px; }
.side-cat summary::-webkit-details-marker { display: none; }
.side-cat summary::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.side-cat[open] summary { font-weight: 800; color: var(--ink); }
.side-cat[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.side-cat summary:hover { color: var(--accent); }
.side-cat summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.side-cat ul { list-style: none; padding: 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.side-cat li a { display: flex; gap: 8px; padding: 6px 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); border-radius: 8px; }
.side-cat li a::before { content: "\203A"; color: var(--muted); }
.side-cat li a:hover { color: var(--accent); background: var(--accent-tint); text-decoration: none; }
.side-cat li a[aria-current] { color: var(--accent); background: var(--accent-tint); font-weight: 700; }
.side-cat li a[aria-current]::before { color: var(--accent); }

/* category page header + list */
.cat-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.cat-lede { color: var(--ink-2); font-size: 18px; max-width: 680px; }
.cat-meta { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 6px; }
.cat-box { margin: 28px 0 64px; }
.cat-box .art-list { margin: 0; }
.article-main { min-width: 0; }

/* on-this-page table of contents */
.toc { position: sticky; top: 24px; margin-top: 44px; 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 { margin: 0 0 40px; font-size: 17px; }
.article h2, .article h3 { scroll-margin-top: 24px; }
.article h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.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: 24px; font-weight: 800; margin: 36px 0 12px; }
.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 var(--line); 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: 1200px) {
  .article-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .article-grid, .article-grid:not(:has(.toc:not(:empty))) { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; }
  .sidebar { order: 2; margin-bottom: 48px; }
}
@media (max-width: 1000px) {
  .news-grid, .connect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 48px; }
  .hero-home { padding: 56px 0 64px; }
  .section, .news, .connect { padding-top: 56px; padding-bottom: 56px; }
  .section-h { margin-bottom: 28px; }
  .cat-grid, .news-grid, .connect-grid, .lists { grid-template-columns: 1fr; }
  .list-card { padding: 26px 22px; }
  .cat-card { flex-direction: row; gap: 16px; padding: 20px; }
  .brand-name em { margin-left: 0; padding-left: 0; border-left: 0; font-size: 11px; }
  .topnav-links a:not(.nav-cta) { display: none; }
  .art-row { padding: 16px 18px; }
  .article-search { padding: 24px 0 28px; }
  /* keep the brand and CTA on one line on phones */
  .brand { gap: 8px; }
  .brand-logo { padding: 5px; border-radius: 9px; }
  .brand-logo img { width: 26px; height: 26px; }
  .brand-name { font-size: 15px; line-height: 1.15; }
  .brand-name em { display: block; }
  .nav-cta { white-space: nowrap; padding: 7px 13px; font-size: 13px; }
}
