/* Bodia Coach help center. Same tokens as the panel (app.css). */
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/coach/fonts/NunitoSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/coach/fonts/NunitoSans_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/coach/fonts/NunitoSans_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('/coach/fonts/NunitoSans_800ExtraBold.ttf') format('truetype'); }

:root {
  --ink: #111111;
  --ink-2: #1f1f22;
  --yellow: #ffcb45;
  --yellow-soft: #fff6dc;
  --amber-ink: #8a6300;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --line: #e5e5ea;
  --text: #111111;
  --text-2: #4b4b50;
  --text-3: #68686d;
  --blue: #007aff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 0.5px 1px rgba(17, 17, 17, 0.04);
  --shadow-pop: 0 18px 50px rgba(17, 17, 17, 0.16), 0 3px 10px rgba(17, 17, 17, 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(0, 122, 255, 0.45); outline-offset: 2px; }

/* Header */
.hero { background: var(--ink); color: #fff; padding: 0 16px 40px; }
.topbar { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--ink-2); display: grid; place-items: center; flex: none; }
.brand-badge img { display: block; }
.brand-text { font-weight: 800; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-left: 6px; }
.back-link { flex: none; text-decoration: none; font-weight: 700; font-size: 0.875rem; color: var(--ink); background: var(--yellow); padding: 8px 14px; border-radius: 999px; transition: filter 0.2s var(--ease); }
.back-link:hover { filter: brightness(1.05); }
.hero-inner { max-width: 720px; margin: 0 auto; padding-top: 28px; text-align: center; }
.hero h1 { font-size: 2.125rem; font-weight: 800; margin-bottom: 20px; }
.search { position: relative; display: block; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 58px; border: 0; border-radius: 16px; padding: 0 18px 0 52px;
  font: 600 1.0625rem 'Nunito Sans', sans-serif; color: var(--text); background: var(--surface);
  box-shadow: var(--shadow-pop); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-3); font-weight: 400; }
.search input:focus { outline: 3px solid var(--yellow); outline-offset: 0; }

/* Main */
.main { max-width: 960px; margin: 0 auto; padding: 28px 16px 40px; outline: none; }
.section-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 14px; }
.muted { color: var(--text-2); }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.topic {
  display: block; text-decoration: none; background: var(--surface); border-radius: var(--radius);
  padding: 0 0 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.topic:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.topic-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow-soft); color: var(--amber-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.125rem; margin-bottom: 12px; }
.topic h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 4px; }
.topic p { margin: 0; color: var(--text-2); font-size: 0.875rem; }
.topic small { display: block; margin-top: 10px; color: var(--text-3); font-weight: 600; font-size: 0.8125rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-2); margin-bottom: 16px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }

.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 12px; padding: 15px 18px; text-decoration: none; }
.list a:hover { background: var(--surface-2); }
.list .grow { flex: 1; min-width: 0; }
.list b { display: block; font-weight: 700; }
.list small { display: block; color: var(--text-2); font-size: 0.8125rem; overflow-wrap: anywhere; }
.chev { color: var(--text-3); flex: none; }
.list-head { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.list-sub { margin: 0 0 18px; color: var(--text-2); }
.empty { padding: 28px 18px; text-align: center; color: var(--text-2); }

.article { padding: 28px; }
.article h1 { font-size: 1.625rem; font-weight: 800; margin-bottom: 18px; }
.article p { margin: 0 0 14px; }
.article ol, .article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article ol li::marker { font-weight: 800; color: var(--amber-ink); }
.tip { background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; font-size: 0.9375rem; }
.tip b { color: var(--amber-ink); }
.related { margin-top: 24px; }
.related h2 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 10px; }

.back-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; text-decoration: none; font-weight: 700; color: var(--blue); }

/* Guide */
.featured { display: block; text-decoration: none; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 28px; box-shadow: var(--shadow-pop); transition: transform 0.25s var(--ease); }
.featured:hover { transform: translateY(-2px); }
.featured-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.featured h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 4px; }
.featured p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 22px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; }
.toc li { margin: 0; }
.toc-link { background: none; border: 0; padding: 5px 0; font: 600 0.9375rem 'Nunito Sans', sans-serif; color: var(--blue); cursor: pointer; text-align: left; }
.toc-link:hover { text-decoration: underline; }
.article-h { font-size: 1.1875rem; font-weight: 800; margin: 26px 0 10px; scroll-margin-top: 16px; outline: none; }

/* Feedback */
.feedback { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.feedback h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.feedback p { margin: 0 0 16px; color: var(--text-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transition: filter 0.2s var(--ease); }
.btn:hover { filter: brightness(1.25); }

.footer { text-align: center; color: var(--text-3); font-size: 0.8125rem; padding: 0 16px 32px; }
.noscript { text-align: center; padding: 16px; }

@media (max-width: 600px) {
  .hero { padding-bottom: 28px; }
  .hero-inner { padding-top: 12px; }
  .hero h1 { font-size: 1.625rem; margin-bottom: 16px; }
  .brand-sub { display: none; }
  .search input { height: 52px; font-size: 1rem; }
  .topics { grid-template-columns: 1fr; }
  .article { padding: 20px 16px; }
  .article h1 { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Topic cards: an illustration on top instead of a letter. */
.topic-art { display: block; width: 100%; height: 160px; max-height: 160px; object-fit: cover; object-position: center; background: #f6f5f2; margin-bottom: 14px; transition: transform .35s var(--ease); }
.topic:hover .topic-art { transform: scale(1.03); }
.topic h3, .topic p, .topic small { padding: 0 20px; }
