/* The help pages, shaper.xyz/help/<tool>/ (D-053; the Airfoil tool's since
   UI-28, first written as its guide in UI-25): a reading page in the tool's
   look - the grey drafting background, translucent rounded boxes - light
   only, one column that fits a phone. site/templates/help.html. */

:root {
  --ink: #1d2a38;
  --ink-quiet: #4a5866;
  --accent: #2f6fe0;
  --bg: #cfd4da;
  --box: rgba(236, 239, 243, 0.92);
  --box-solid: #eceff3;
  --line: #b4bcc6;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

#ag-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) 10px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--box-solid);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ag-brand { font-weight: 600; color: var(--ink); text-decoration: none; }
.ag-sep { color: var(--ink-quiet); }
#ag-header a:not(.ag-brand) { color: var(--ink); }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px max(var(--gutter), env(safe-area-inset-right, 0px)) 48px max(var(--gutter), env(safe-area-inset-left, 0px));
}
h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 10px; }
h2 { font-size: 19px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 16px 0 4px; }
p, ul, ol { margin: 0 0 10px; }
ul, ol { padding-left: 22px; }
li { margin: 3px 0; }

.ag-lead { font-size: 16px; color: var(--ink); }
.ag-open { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.ag-button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.ag-button.ag-quiet { background: var(--box); color: var(--accent); }

/* Each part of the guide: a box of its own. */
.ag-part {
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.ag-toc { columns: 2 220px; padding-left: 18px; margin: 0; }

figure { margin: 12px 0 6px; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
figcaption { font-size: 13px; color: var(--ink-quiet); margin-top: 4px; }

kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font: 12px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
  white-space: nowrap;
}
.ag-keys { width: 100%; border-collapse: collapse; }
.ag-keys th, .ag-keys td { text-align: left; vertical-align: top; padding: 5px 8px; border-top: 1px solid var(--line); }
.ag-keys th { width: 40%; font-weight: normal; }

/* The video, once there is one: a 16:9 frame above the guide. */
.ag-video { margin: 0 0 16px; }
.ag-video iframe, .ag-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }

.ag-credit { font-size: 13px; color: var(--ink-quiet); }

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 22px; }
  .ag-part { padding: 14px; }
  .ag-keys th { width: 46%; }
}
