/* "How can I help?" band at the bottom of a page.
   One file for every page that shows it: the site pages (just above the copyright line) and the Lab guides
   (after the guide). Like the armantik.com bar, it carries its own colors and spacing, so it looks the same
   whatever the page's own styles are, in light and dark. The markup to copy is in README.md,
   "The How can I help footer". Add aa-pad to the class on pages whose body has no side padding. */
.aa-helpfoot {
  --hf-ink: #16211F; --hf-muted: #4A5855; --hf-line: #DCE3E0; --hf-accent: #0F5C55;
  --hf-mono: "JetBrains Mono", "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo-tick: var(--hf-accent);
  box-sizing: border-box; max-width: 1160px; margin: 72px auto 0; padding: 28px 0 34px;
  border-top: 1px solid var(--hf-line); color: var(--hf-ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 22px 32px;
  font-size: 16px; line-height: 1.55; text-align: left;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aa-helpfoot { --hf-ink: #E3EAE7; --hf-muted: #A3B1AD; --hf-line: #2B3633; --hf-accent: #5BB8AA; } }
:root[data-theme="dark"] .aa-helpfoot { --hf-ink: #E3EAE7; --hf-muted: #A3B1AD; --hf-line: #2B3633; --hf-accent: #5BB8AA; }
.aa-helpfoot.aa-pad {
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  margin-top: 8px;
}
.aa-helpfoot *, .aa-helpfoot *::before, .aa-helpfoot *::after { box-sizing: border-box; }
.aa-helpfoot [hidden] { display: none !important; }

.aa-helpfoot .aa-hf-main { flex: 1 1 440px; min-width: 0; display: grid; gap: 10px; }
.aa-helpfoot .aa-hf-label { margin: 0; font: 500 13px/1.4 var(--hf-mono); color: var(--hf-accent); letter-spacing: 0; text-transform: none; }
.aa-helpfoot .aa-hf-h {
  margin: 0; padding: 0; border: 0; color: var(--hf-ink);
  font-family: var(--display, var(--f-display, inherit)); font-size: clamp(25px, 3.6vw, 34px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em;
}
.aa-helpfoot .aa-hf-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; max-width: 64ch; }
.aa-helpfoot .aa-hf-list li {
  margin: 0; padding: 0; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; align-items: start;
  color: var(--hf-muted); font-size: 16px; line-height: 1.55;
}
.aa-helpfoot .aa-hf-list li::before, .aa-helpfoot .aa-hf-list li::marker { content: none; }
.aa-helpfoot .aa-hf-list svg { width: 10px; height: 15px; margin-top: 0.3em; }
.aa-helpfoot .aa-hf-list b { color: var(--hf-ink); font-weight: 600; }

/* right side: "Write to me", the contact ways from Let's talk, then the help links */
.aa-helpfoot .aa-hf-side { display: grid; gap: 6px; justify-items: start; min-width: 0; max-width: 100%; }
.aa-helpfoot .aa-hf-write { margin: 0; font: 700 15px/1.4 var(--hf-mono); color: var(--hf-accent); }
.aa-helpfoot .aa-hf-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; max-width: 100%; }

/* the contact ways: the same icons and captions as Let's talk on the home page (assets/style.css),
   repeated here because the Lab guides don't load style.css */
.aa-helpfoot .email-img {
  display: inline-block; flex: none; vertical-align: middle; margin-right: 4px;
  font-size: 16px; width: 10.8em; height: 1.32em; max-width: 100%;
  background: var(--hf-ink);
  -webkit-mask: url(email.svg) no-repeat left center / contain; mask: url(email.svg) no-repeat left center / contain;
}
.aa-helpfoot .ico { display: block; flex: none; overflow: visible; width: 26px; height: 26px; }
.aa-helpfoot .ico path { stroke: currentColor; }
.aa-helpfoot .ico .a { stroke: var(--hf-accent); opacity: .55; }
.aa-helpfoot .ico-link, .aa-helpfoot .copy-ico {
  display: inline-grid; justify-items: center; gap: 3px; padding: 4px 6px; margin: 0;
  border: 0; border-radius: 6px; background: none; color: var(--hf-ink); text-decoration: none; cursor: pointer; font: inherit;
}
.aa-helpfoot .ico-cap, .aa-helpfoot .copy-cap { font: 500 10px/1.2 var(--hf-mono); letter-spacing: 0.02em; color: var(--hf-muted); transition: color .15s; }
.aa-helpfoot .ico-link:hover, .aa-helpfoot .copy-ico:hover { color: var(--hf-accent); }
.aa-helpfoot .ico-link:hover .ico-cap, .aa-helpfoot .ico-link:focus-visible .ico-cap,
.aa-helpfoot .copy-ico:hover .copy-cap, .aa-helpfoot .copy-ico:focus-visible .copy-cap,
.aa-helpfoot .copy-ico.is-done .copy-cap { color: var(--hf-accent); }
.aa-helpfoot .txt-mark { display: flex; align-items: center; justify-content: center; white-space: nowrap; height: 26px; min-width: 26px; font: 600 15px/1 var(--hf-mono); letter-spacing: -0.03em; color: currentColor; }
.aa-helpfoot .txt-mark b { color: var(--hf-accent); font-weight: 600; }
.aa-helpfoot .ico-link:hover .txt-mark b { color: inherit; }

.aa-helpfoot .aa-hf-cta {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px;
  font: 500 13.5px/1.4 var(--hf-mono);
}
.aa-helpfoot .aa-hf-cta a {
  color: var(--hf-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border: 0; background: none;
}
.aa-helpfoot .aa-hf-cta svg { width: 9px; height: 14px; flex: none; }
.aa-helpfoot .aa-hf-cta a:hover { color: var(--hf-accent); }

/* The copyright line under the band, for Lab pages that have no site footer of their own.
   Same colors as the band. Add aa-pad as on the band. */
.aa-copy {
  --hf-muted: #4A5855; --hf-line: #DCE3E0;
  box-sizing: border-box; max-width: 1160px; margin: 0 auto; padding: 16px 0 36px;
  border-top: 1px solid var(--hf-line); color: var(--hf-muted); text-align: left;
  font: 400 13px/1.6 "JetBrains Mono", "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.aa-copy a { color: inherit; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aa-copy { --hf-muted: #A3B1AD; --hf-line: #2B3633; } }
:root[data-theme="dark"] .aa-copy { --hf-muted: #A3B1AD; --hf-line: #2B3633; }
.aa-copy.aa-pad {
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  margin-top: 8px;
}
