/* The ACOS tool inside the site's own header and footer.

   Loaded last - after the site stylesheet and the tool's own - so it settles the few
   places the two disagree. Kept in its own file so the tool's stylesheet stays as its
   author wrote it, and so this is the only thing to look at if the two drift apart. */

/* Line the tool up with the site grid, so its edge sits directly under the logo. */
.page {
  max-width: calc(var(--container) + 2 * var(--gutter));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-top: 0;
}

/* The site caps .section-head at 760px for prose pages. Here it holds a heading and the
   Download button, which belongs at the far edge of the table, not 760px in. */
.page .section-head { max-width: none; margin-bottom: 0; }

/* Breadcrumb and the privacy promise, in place of the tool's stand-alone title bar
   (whose logo and "by YAE Digital" link the site header now covers). */
.tool-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: var(--s-4);
}
.tool-bar .crumbs { padding-top: 0; }
.private-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .82rem/1.2 var(--font-body); color: var(--ok);
  background: #e7f5ed; padding: 8px 14px; border-radius: 999px;
}
.private-badge::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(23, 121, 74, .16);
}

/* A 32px slider is hard to hit with a thumb; give touch screens a full 44px. */
@media (pointer: coarse) {
  .page input[type="range"] { min-height: 44px; }
}
/* Nothing on this page below 12px. */
.source-chip { font-size: 12px; }
/* Chart tick labels were 11px; 12px stays clear on a phone without crowding the axis. */
.chart text { font-size: 12px; }
