/* TastePapa Help — long-form documentation. Single column, prose-first.
   No card grid, no sidebar TOC, no featured ribbon, no collapsibles —
   intentionally a different shape from typical help-desk layouts. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,700&display=swap');

:root {
  --brand: #218D68;
  --brand-dark: #176B4F;
  --brand-soft: #E8F4EE;
  --brand-border: #CFE4D9;
  --ink: #111418;
  --ink-2: #2F3640;
  --muted: #6E7682;
  --surface: #FFFFFF;
  --canvas: #F7F8F9;
  --line: #E5E7EB;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

/* ─── Top bar ───────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.brand-mark img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.topbar-spacer { flex: 1; }
.topbar a.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.topbar a.nav-link + a.nav-link { margin-left: 12px; }
.topbar a.nav-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* ─── Page layout ───────────────────────────────────────────── */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

/* ─── Page header ───────────────────────────────────────────── */
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}
.page-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
}

/* ─── Quick search ──────────────────────────────────────────── */
.search-wrap {
  position: relative;
  margin: 24px 0 8px;
  max-width: 460px;
}
.search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(33, 141, 104, 0.14);
}
.search-input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.search-clear:hover { background: var(--canvas); color: var(--ink); }
.search-clear.visible { display: flex; }

/* ─── Body sections ─────────────────────────────────────────── */
.section {
  padding-top: 36px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.section:first-of-type { border-top: none; padding-top: 24px; }

.section h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}
.section-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.section h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.15px;
  color: var(--ink);
  margin: 24px 0 8px;
}

.section p, .section li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 14px;
}
.section ul, .section ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.section li { margin-bottom: 6px; }
.section strong { color: var(--ink); font-weight: 600; }
.section em { font-style: normal; color: var(--ink); font-weight: 600; }
.section code {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 13px;
}

.note {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  font-size: 14px;
  color: var(--brand-dark);
}
.note strong { color: var(--brand-dark); }

/* ─── Footer ────────────────────────────────────────────────── */
.contact {
  margin-top: 56px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.contact p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.contact a.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand);
  text-decoration: none;
}
.contact a.email-link:hover { color: var(--brand-dark); text-decoration: underline; }

.footnote {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 28px;
}
.footnote a { color: var(--brand); font-weight: 500; }

/* ─── Search empty state ───────────────────────────────────── */
.empty-state {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty-state a { color: var(--brand); font-weight: 600; }

.section.hidden { display: none; }
.section .hidden { display: none; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar-inner { padding: 12px 18px; }
  .wrap { padding: 36px 18px 56px; }
  .page-header h1 { font-size: 28px; }
  .section h2 { font-size: 22px; }
  .section h3 { font-size: 15px; }
  .section p, .section li { font-size: 14.5px; }
  .contents { padding: 14px 16px; }
}
