/* Shared by Astro pages and the isolated Gerber application. Sizes describe
 * reading/interaction roles, not a blanket minimum for every piece of text. */
:root {
  --type-display-title: clamp(34px, 4.8vw, 57px);
  --type-page-title: clamp(30px, 3vw, 42px);
  --type-section-title: clamp(23px, 2vw, 28px);
  --type-subsection-title: clamp(20px, 1.7vw, 23px);
  --type-prose-h2: clamp(23px, 2vw, 26px);
  --type-prose-h3: clamp(20px, 1.7vw, 22px);
  --type-panel-title: clamp(18px, 1.4vw, 20px);
  --type-panel-subtitle: 16px;
  --type-body: clamp(17px, 1.25vw, 18px);
  --type-label: 14px;
  --type-control: 16px;
  --type-action: 16px;
  --type-support: 14px;
  --type-meta: 14px;
  --type-data: 18px;
  --type-unit: 14px;
  --type-table: 14px;
  --type-code: 14px;
  --type-plot: 12px;
  --type-footer: 14px;
  --type-footer-meta: 13px;
  --type-related-title: 16px;
  --type-related-link: 14.5px;
  --type-body-line: 1.7;
  --type-heading-line: 1.3;
  --type-subheading-line: 1.4;
  --type-heading-tracking: -.015em;
  --type-subheading-tracking: -.01em;
  --type-ui-line: 1.45;
  --type-control-height: 40px;
  --type-tool-page-title:clamp(26px, 2.2vw, 30px);
  --type-tool-panel-title:18px;
  --type-tool-guide-h2:22px;
  --type-tool-guide-h3:20px;
  --type-tool-label:14px;
  --type-tool-control:15px;
  --type-tool-action:14px;
  --type-tool-data:20px;
  --type-tool-control-height:32px;
}

/* Shared by Astro workspaces and embedded applications, without changing
 * presentation pages or long-form reading sizes. */
[data-page-family="tool"], [data-tool-interface] {
  --type-page-title:var(--type-tool-page-title);
  --type-panel-title:var(--type-tool-panel-title);
  --type-prose-h2:var(--type-tool-guide-h2);
  --type-prose-h3:var(--type-tool-guide-h3);
  --type-label:var(--type-tool-label);
  --type-control:var(--type-tool-control);
  --type-action:var(--type-tool-action);
  --type-data:var(--type-tool-data);
  --type-control-height:var(--type-tool-control-height);
}
@media(max-width:700px) {
  [data-page-family="tool"], [data-tool-interface] {--type-control-height:44px;--type-control:16px}
}
