/* FormuLink onboarding: warm paper, deep teal, quiet amber details. */
.fl-help-page {
  --help-paper: #f6f3ec;
  --help-card: #fffdf8;
  --help-ink: #22302c;
  --help-muted: #65736d;
  --help-line: #e4dfd2;
  --help-teal: #146b60;
  --help-deep: #12352f;
  --help-soft: #e7f0ed;
  --help-ochre: #b47637;
  margin: 0;
  background: var(--help-paper);
  color: var(--help-ink);
  font: 16px/1.65 Georgia, "Times New Roman", serif;
}
.fl-help-page *,
.fl-help-page *::before,
.fl-help-page *::after { box-sizing: border-box; }
.fl-help-page a { color: var(--help-teal); text-underline-offset: .18em; }
.fl-help-page a:hover { color: var(--help-deep); }
.fl-help-page a:focus-visible,
.fl-help-page button:focus-visible,
.fl-help-page input:focus-visible {
  outline: 3px solid var(--help-ochre);
  outline-offset: 3px;
}
.help-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px max(22px, calc((100% - 1120px) / 2));
  background: var(--help-deep);
  color: #fbfaf5;
  font: 600 13px/1.3 system-ui, sans-serif;
}
.help-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.fl-help-page .help-brand,
.fl-help-page .help-brand:hover { color: #f5faf7; }
.help-mark {
  display: grid; place-items: center; width: 29px; height: 29px;
  border: 1px solid rgba(255,255,255,.34); border-radius: 9px;
  color: #fff; font: 700 18px/1 system-ui, sans-serif;
}
.help-topbar nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.help-topbar nav a { color: #e0ebe6; text-decoration: none; }
.help-topbar nav a:hover { color: #fff; text-decoration: underline; }
.help-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.help-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  gap: clamp(26px, 6vw, 86px); align-items: end;
  padding: clamp(42px, 8vw, 90px) 0 48px;
}
.help-eyebrow {
  margin: 0 0 12px; color: var(--help-teal);
  font: 700 11px/1.4 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.help-hero h1 {
  max-width: 680px; margin: 0; color: var(--help-deep);
  font: 400 clamp(42px, 7vw, 76px)/.99 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.help-hero .intro { max-width: 510px; margin: 20px 0 0; color: var(--help-muted); font-size: 18px; }
.help-hero-aside {
  padding: 20px 0 5px 23px; border-left: 2px solid #c9d9d2;
  color: var(--help-muted); font: 14px/1.65 system-ui, sans-serif;
}
.help-hero-aside strong { display: block; margin-bottom: 6px; color: var(--help-deep); font-size: 15px; }
.help-tools {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--help-line); border-radius: 13px;
  background: var(--help-card); box-shadow: 0 5px 18px rgba(31,54,46,.04);
}
.help-search-wrap { flex: 1; min-width: 0; }
.help-search-label {
  display: block; margin: 0 0 5px; color: var(--help-muted);
  font: 700 11px/1.4 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.help-search {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #cfcabd; border-radius: 8px; background: #fff;
  color: var(--help-ink); font: 15px/1.4 system-ui, sans-serif;
}
.help-search-status { min-width: 142px; margin: 0; color: var(--help-muted); font: 12px/1.4 system-ui, sans-serif; }
.help-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start; padding: 38px 0 80px;
}
.help-rail { position: sticky; top: 18px; }
.help-rail h2 {
  margin: 0 0 12px; color: var(--help-muted);
  font: 700 11px/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
}
.help-rail ul { margin: 0; padding: 0; list-style: none; }
.help-rail li + li { margin-top: 4px; }
.help-rail a {
  display: block; padding: 8px 10px; border-radius: 7px;
  color: var(--help-ink); font: 13px/1.4 system-ui, sans-serif; text-decoration: none;
}
.help-rail a:hover { background: var(--help-soft); color: var(--help-deep); }
.help-content { min-width: 0; }
.help-section {
  padding: 0 0 37px; margin: 0 0 34px; border-bottom: 1px solid var(--help-line);
  scroll-margin-top: 22px;
}
.help-section:last-child { border-bottom: 0; }
.help-section h2 {
  margin: 0 0 14px; color: var(--help-deep);
  font: 400 clamp(27px, 4vw, 38px)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.help-section h3 { margin: 24px 0 7px; color: var(--help-deep); font: 700 15px/1.4 system-ui, sans-serif; }
.help-section p { max-width: 760px; margin: 9px 0; }
.help-section ul, .help-section ol { padding-left: 1.25rem; }
.help-section li { padding-left: 3px; margin: 6px 0; }
.help-note {
  margin: 18px 0; padding: 13px 16px; border-left: 3px solid var(--help-ochre);
  background: #f1eadc; color: #4d5146; font: 14px/1.55 system-ui, sans-serif;
}
.help-note strong { color: var(--help-deep); }
.help-steps { counter-reset: help-step; padding: 0 !important; list-style: none; }
.help-steps li {
  position: relative; min-height: 40px; margin: 11px 0; padding: 3px 0 0 45px;
  counter-increment: help-step;
}
.help-steps li::before {
  content: counter(help-step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  color: var(--help-teal); font: 700 12px/28px system-ui, sans-serif;
  text-align: center; width: 30px; height: 30px; border: 1px solid #b9d0c8; border-radius: 50%;
}
.help-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 18px 0 24px; }
.help-role-card {
  padding: 16px; border: 1px solid var(--help-line); border-radius: 11px;
  background: var(--help-card);
}
.help-role-card h3 { margin: 0 0 6px; }
.help-role-card p { margin: 0; color: var(--help-muted); font: 13px/1.55 system-ui, sans-serif; }
.help-section[hidden], .help-role-card[hidden] { display: none !important; }
.help-empty {
  display: none; margin: 22px 0; padding: 18px; border: 1px dashed #bbb5a8;
  border-radius: 10px; color: var(--help-muted); font: 14px/1.5 system-ui, sans-serif;
}
.help-empty.is-visible { display: block; }
.help-footer {
  padding: 22px 0 34px; border-top: 1px solid var(--help-line);
  color: var(--help-muted); font: 12px/1.5 system-ui, sans-serif;
}

/* Small adapter controls stay inside the existing compact search controls. */
.fl-help-link {
  flex: 0 0 auto; align-self: center; padding: 5px 9px; border: 1px solid rgba(255,255,255,.34);
  border-radius: 7px; color: #f5faf7; font: 600 12px/1.35 system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease;
}
.fl-help-link:hover, .fl-help-link:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: #fff; }
.fl-search-clear {
  display: inline-grid; place-items: center; flex: 0 0 28px;
  width: 28px; min-width: 28px; min-height: 28px; height: 28px; margin-left: auto; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted, #65736d);
  font: 500 19px/1 system-ui, sans-serif; cursor: pointer;
}
.fl-search-clear:hover { background: var(--accent-soft, #e7f0ed); color: var(--accent-ink, #146b60); }
.fl-search-clear[hidden] { display: none !important; }

@media (max-width: 760px) {
  .help-topbar { align-items: flex-start; flex-direction: column; padding: 13px 20px; gap: 10px; }
  .help-topbar nav { gap: 7px 15px; }
  .help-shell { width: min(100% - 32px, 620px); }
  .help-hero { grid-template-columns: 1fr; gap: 24px; padding: 42px 0 30px; }
  .help-hero-aside { max-width: 520px; padding-top: 0; padding-bottom: 0; }
  .help-tools { align-items: stretch; flex-direction: column; gap: 7px; }
  .help-search-status { min-width: 0; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 25px; }
  .help-rail { position: static; padding-bottom: 12px; border-bottom: 1px solid var(--help-line); }
  .help-rail ul { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .help-rail li { flex: 0 0 auto; }
  .help-rail li + li { margin-top: 0; }
  .help-role-grid { grid-template-columns: 1fr; }
  .help-section { padding-bottom: 27px; margin-bottom: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-help-link { transition: none; }
}
