/* Public website foundation */
@font-face {
  font-family: Inter;
  src: url("fonts/inter-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --site-surface: #ffffff;
  --site-focus: #315f8f;
  --site-bg: #ffffff;
  --site-bg-muted: #f6f8fa;
  --site-text-heading: #0f172a;
  --site-text-ink: #24292f;
  --site-text-muted: #57606a;
  --site-border-default: #d0d7de;
  --site-input-border: #8c959f;
  --site-link: #315f8f;
  --site-accent: #315f8f;
  --site-accent-hover: #244d78;
  --site-accent-ink: #ffffff;
  --site-panel-info: #edf5ff;
  --site-panel-success: #eaf5ee;
  --site-panel-danger: #fff0ef;
  --site-danger-ink: #9f231f;
  --site-space-1: .25rem;
  --site-space-2: .5rem;
  --site-space-3: .75rem;
  --site-space-4: 1rem;
  --site-space-5: 1.25rem;
  --site-space-6: 1.5rem;
  --site-space-7: 2rem;
  --site-space-8: 2.5rem;
  --site-gap-control: .75rem;
  --site-gap-block: 1rem;
  --site-gap-section: 1.5rem;
  --site-size-touch: 2.75rem;
  --site-pad-panel: 1rem;
  --site-radius-md: .35rem;
  --site-text-sm: .875rem;
  --site-text-body: 1rem;
  --site-text-lg: 1.125rem;
  --site-text-xl: 1.5rem;
  --site-weight-semibold: 600;
  --site-weight-bold: 700;
  --site-leading-normal: 1.6;
  --site-leading-tight: 1.15;
  --site-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --site-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text-ink);
  font: var(--site-text-body)/var(--site-leading-normal) var(--site-font);
}
a { color: var(--site-link); text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--site-focus); outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }

.skip-link {
  position: fixed;
  inset: .5rem auto auto .5rem;
  z-index: 20;
  padding: .5rem .75rem;
  background: var(--site-bg);
  border: 1px solid var(--site-input-border);
  clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--site-size-touch);
  padding: .58rem .9rem;
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
  background: var(--site-surface);
  color: var(--site-text-heading);
  font: var(--site-weight-semibold) .9rem/1.35 var(--site-font);
  text-align: center;
  text-decoration: none;
}
.button:hover { border-color: var(--site-input-border); background: var(--site-bg-muted); }
.button--primary { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-accent-ink); }
.button--primary:hover { background: var(--site-accent-hover); border-color: var(--site-accent-hover); }
.button--lg { padding-inline: var(--site-space-4); }
.stack { display: grid; gap: var(--site-gap-block); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--site-gap-control); }
.label { display: block; margin-block-end: .25rem; font-weight: 600; }
.input, .select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-block-size: var(--site-size-touch);
  padding: .46rem .65rem;
  border: 1px solid var(--site-input-border);
  border-radius: var(--site-radius-md);
  background: var(--site-surface);
  color: var(--site-text-ink);
}
.check { display: flex; gap: var(--site-space-2); align-items: baseline; }
.field-error { color: var(--site-danger-ink); }
.callout {
  padding: var(--site-pad-panel);
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
  background: var(--site-bg-muted);
}
.callout--info { background: var(--site-panel-info); }
.callout--success { background: var(--site-panel-success); }
.callout--danger { background: var(--site-panel-danger); color: var(--site-danger-ink); }
.mono { font-family: var(--site-font-mono); }

.site-width {
  width: min(100% - 2 * var(--site-space-6), 66rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--site-space-3);
  min-height: 4.5rem;
  padding-block: var(--site-space-3);
  border-bottom: 1px solid var(--site-border-default);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--site-space-2);
  color: var(--site-text-heading);
  font-size: 1.15rem;
  font-weight: var(--site-weight-bold);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.intro {
  padding-block: clamp(3.5rem, 9vw, 8rem);
}

.intro h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--site-text-heading);
  font-size: clamp(2.65rem, 8vw, 6.75rem);
  font-weight: var(--site-weight-bold);
  letter-spacing: -0.075em;
  line-height: 0.99;
  text-wrap: balance;
}

.intro p {
  max-width: 40ch;
  margin: var(--site-space-6) 0 var(--site-space-7);
  color: var(--site-text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.45;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border-top: 1px solid var(--site-border-default);
  margin-bottom: var(--site-space-8);
}

.features section {
  padding: var(--site-space-6) var(--site-space-7) var(--site-space-7) 0;
}

.features h2 {
  margin: 0 0 var(--site-space-2);
  color: var(--site-text-heading);
  font-size: 1.15rem;
}

.features p {
  max-width: 30ch;
  margin: 0;
  color: var(--site-text-muted);
}

.button {
  text-decoration: none;
}

/* Policy pages */

.policy {
  max-width: 68ch;
  padding-block: var(--site-space-7) var(--site-space-8);
  overflow-wrap: anywhere;
}

.policy h1 {
  margin-bottom: var(--site-space-3);
  font-size: var(--site-text-xl);
}

.policy h2 {
  margin-block: var(--site-space-6) var(--site-space-2);
  font-size: var(--site-text-lg);
}

.policy p + p {
  margin-top: var(--site-space-3);
}

/* Navigation */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--site-space-1) var(--site-space-5);
  border-block-end: 1px solid var(--site-border-default);
}

.site-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--site-size-touch);
  color: var(--site-text-muted);
  font-weight: var(--site-weight-semibold, 600);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--site-text-heading);
  text-decoration: underline;
}

.site-nav a[aria-current] {
  color: var(--site-text-heading);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-footer {
  margin-top: var(--site-space-8);
  padding-block: var(--site-space-4) var(--site-space-7);
  border-top: 1px solid var(--site-border-default);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--site-space-5);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-gap-control) var(--site-space-6);
}

/* Longform and index pages */

.page-head,
.article {
  max-width: 68ch;
  padding-block-start: clamp(2.5rem, 5vw, 4.5rem);
}

.page-head h1,
.article-head h1 {
  margin: 0;
  color: var(--site-text-heading);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: var(--site-weight-bold);
  letter-spacing: -0.04em;
  line-height: var(--site-leading-tight);
  text-wrap: balance;
}

.dek {
  margin: var(--site-space-4) 0 0;
  color: var(--site-text-muted);
  font-size: var(--site-text-lg);
  line-height: var(--site-leading-normal);
}

.article-head {
  margin-bottom: var(--site-space-6);
}

.byline {
  margin: var(--site-space-3) 0 0;
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--site-space-2);
  margin-bottom: var(--site-space-4);
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
}

.crumbs a {
  color: var(--site-text-muted);
}

.prose {
  font-size: var(--site-text-lg);
  line-height: 1.65;
}

.prose img {
  max-inline-size: 100%;
  block-size: auto;
}

.workflow-tool input,
.workflow-tool select,
.workflow-tool button {
  min-block-size: var(--site-size-touch);
}

.workflow-tool input,
.workflow-tool select {
  inline-size: 100%;
}

.workflow-tool .callout {
  margin-block-start: var(--site-gap-block);
}

.workflow-tool .callout h3 {
  margin-block: 0;
}

.workflow-tool__fields {
  display: grid;
  gap: var(--site-gap-block);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.workflow-tool fieldset {
  min-inline-size: 0;
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
  padding: var(--site-pad-panel);
}

.workflow-tool dd {
  margin-inline-start: 0;
  margin-block-end: var(--site-space-2);
  font-family: var(--site-font-mono);
}

.prose h2,
.worksheet h2,
.next-step h2,
.notify h2,
.doc-group h2 {
  margin: var(--site-space-8) 0 var(--site-space-3);
  color: var(--site-text-heading);
  font-size: var(--site-text-xl);
  font-weight: var(--site-weight-semibold, 600);
  line-height: var(--site-leading-tight);
}

.prose h3 {
  margin: var(--site-space-6) 0 var(--site-space-2);
  color: var(--site-text-heading);
  font-size: var(--site-text-lg);
  font-weight: var(--site-weight-semibold, 600);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 var(--site-space-4);
}

.prose li + li {
  margin-top: var(--site-space-2);
}

.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin-bottom: var(--site-space-4);
  border-collapse: collapse;
  font-size: var(--site-text-body);
  line-height: var(--site-leading-normal);
}

.prose th,
.prose td {
  padding: var(--site-space-2) var(--site-space-3);
  border: 1px solid var(--site-border-default);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--site-bg-muted);
  color: var(--site-text-heading);
  font-weight: var(--site-weight-semibold, 600);
}

.prose blockquote {
  margin: 0 0 var(--site-space-4);
  padding: var(--site-space-3) var(--site-space-4);
  background: var(--site-bg-muted);
  border-radius: var(--site-radius-md);
}

.prose pre {
  max-inline-size: 100%;
  overflow-x: auto;
  padding: var(--site-space-4);
  background: var(--site-bg-muted);
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
}

.prose code {
  font-family: var(--site-font-mono);
  font-size: 0.9em;
}

.article-foot {
  margin: var(--site-space-7) 0 0;
  color: var(--site-text-muted);
}

/* Worksheet */

.workbook-preview {
  margin-block-end: var(--site-space-4);
}

.workbook-preview h2 {
  margin: 0 0 var(--site-space-2);
  color: var(--site-text-heading);
  font-size: var(--site-text-xl);
}

.workbook-preview figure {
  margin: 0;
}

.workbook-preview__sheet {
  overflow-x: auto;
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
}

.workbook-preview__sheet img {
  display: block;
  max-width: none;
  height: auto;
}

.workbook-preview figcaption {
  margin-block-start: var(--site-space-2);
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
}

.worksheet-download {
  margin-block-end: var(--site-gap-block);
}

.worksheet__hint {
  margin: 0 0 var(--site-space-3);
  color: var(--site-text-muted);
}

.worksheet__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
}

.worksheet__list li + li {
  border-top: 1px solid var(--site-border-default);
}

.worksheet__list .check {
  display: flex;
  align-items: flex-start;
  gap: var(--site-space-3);
  padding: var(--site-space-3) var(--site-space-4);
  font-size: var(--site-text-lg);
  line-height: var(--site-leading-normal);
}

.worksheet__list .check input[type="checkbox"] {
  margin-top: 0.3em;
}

.worksheet__list .check:has(input:checked) span {
  color: var(--site-text-muted);
}

/* Course funnel */

.next-step p {
  margin: 0 0 var(--site-space-4);
  font-size: var(--site-text-lg);
  line-height: var(--site-leading-normal);
}

.notify-form {
  max-width: 28rem;
}

.notify-form__actions {
  display: grid;
  justify-items: start;
  gap: var(--site-space-2);
}

.notify-form__actions .hint {
  margin: 0;
}

.prelaunch {
  margin-top: var(--site-space-6);
}

.callout p {
  margin: 0;
}

.button[aria-busy="true"] {
  cursor: progress;
}

/* Index lists */

.doc-list {
  margin: var(--site-space-6) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--site-border-default);
}

.doc-group .doc-list {
  margin-top: 0;
}

.doc-list li {
  padding-block: var(--site-space-4);
  border-bottom: 1px solid var(--site-border-default);
}

.doc-list a {
  color: var(--site-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  font-size: var(--site-text-lg);
  font-weight: var(--site-weight-semibold, 600);
}

.doc-list p {
  margin: var(--site-space-1) 0 0;
  color: var(--site-text-muted);
}

.doc-group,
.page-head + .doc-list,
.page-head + .callout {
  max-width: 68ch;
}

/* Small screens */

@media (max-width: 480px) {
  .next-step .button,
  .notify-form .button,
  .notify-form .select {
    width: 100%;
    justify-content: center;
  }

  .notify-form__actions {
    justify-items: stretch;
  }
}

@media print {
  .site-header,
  .site-footer,
  .next-step,
  .skip-link {
    display: none;
  }
}

.notify-form .input,
.notify-form .select {
  width: 100%;
}

.notify-form__consent {
  align-items: flex-start;
  line-height: var(--site-leading-normal);
}

.notify-form__consent input[type="checkbox"] {
  margin-top: 0.2em;
}

[data-notify-status]:empty {
  display: none;
}

.button[aria-disabled="true"] {
  background: var(--site-bg-muted);
  border-color: var(--site-border-default);
  color: var(--site-text-muted);
  pointer-events: none;
}

.notify-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cohort-action {
  margin-top: var(--site-space-4);
}

.article-badge {
  margin: 0 0 var(--site-space-3);
}

.notify {
  margin-top: var(--site-gap-section);
}

.notify > p {
  margin: 0 0 var(--site-space-4);
  font-size: var(--site-text-lg);
  line-height: var(--site-leading-normal);
}

/* Reading pages and collections share the masthead's left edge. */
.article,
.policy {
  max-width: 46rem;
}

.page-head {
  max-width: none;
  padding-block: clamp(2.75rem, 7vw, 5.75rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1,
.article-head h1,
.policy h1 {
  margin: 0;
  color: var(--site-text-heading);
  font-size: clamp(2.45rem, 6vw, 4.85rem);
  font-weight: var(--site-weight-bold);
  line-height: 1.02;
  letter-spacing: -.07em;
  text-wrap: initial;
}

.article-head h1,
.policy h1 {
  font-size: clamp(2.15rem, 5.5vw, 3.65rem);
  letter-spacing: -.055em;
}

.dek {
  max-width: 49ch;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.45;
}

.doc-group,
.page-head + .doc-list,
.page-head + .callout {
  max-width: none;
}

.page-head + .doc-list {
  margin-block-start: 0;
}

.doc-group + .doc-group {
  margin-block-start: var(--site-space-8);
}

.doc-group h2 {
  margin-block: 0 var(--site-space-3);
  color: var(--site-text-heading);
}

.doc-list {
  display: grid;
}

.doc-list li {
  min-width: 0;
  padding-block: var(--site-space-5);
}

.doc-list p {
  max-width: 53ch;
}

@media (min-width: 740px) {
  .doc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--site-space-8);
  }
}

.article > .prose:not(.workflow-tool) {
  font: clamp(1.075rem, 1.5vw, 1.19rem)/1.73 var(--site-font);
  overflow-wrap: anywhere;
}

.article > .prose :is(h2, h3, table, figcaption) {
  font-family: var(--site-font);
}

.article > .prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -.025em;
}

.article .prose picture,
.article .prose picture img {
  display: block;
  margin-inline: auto;
}

.article .prose figure {
  margin: var(--site-space-6) 0;
}

.article .prose figcaption {
  margin-block-start: var(--site-space-2);
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
}

.article .prose table caption {
  padding-block: var(--site-space-2);
  text-align: left;
  font-weight: var(--site-weight-semibold);
}

.article .prose pre {
  font-size: var(--site-text-sm);
}

.workflow-tool,
.notify {
  margin-block-start: var(--site-space-8);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--site-bg-muted);
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
  font: .95rem/1.55 var(--site-font);
}

.workflow-tool > h2,
.notify > h2 {
  margin-block-start: 0;
}

.workflow-tool :is(fieldset, small) {
  color: var(--site-text-muted);
}

.workflow-tool legend {
  color: var(--site-text-heading);
  font-size: var(--site-text-sm);
  font-weight: 600;
}

.workflow-tool .callout {
  overflow-wrap: anywhere;
}

.next-step {
  border-top: 1px solid var(--site-border-default);
  margin-block-start: var(--site-space-8);
  padding-block-start: var(--site-space-5);
}

.next-step h2 {
  margin-block-start: 0;
}

@media print {
  .worksheet-download,
  .workflow-tool,
  .notify { display: none; }
}
/* Two-column references keep the worked case visible beside its next action. */
.prose .workflow-reference {
  display: table;
  table-layout: fixed;
}

.workflow-reference thead th:first-child {
  width: 36%;
}

.workflow-reference :is(th, td) {
  font-family: var(--site-font);
}

@media (max-width: 480px) {
  .workflow-reference :is(th, td) {
    padding-inline: var(--site-space-2);
    font-size: var(--site-text-sm);
  }
}

/* The same comparison cells remain in reading order on narrow screens. */
.prose .comparison-table {
  display: table;
  table-layout: fixed;
}

.comparison-table th:first-child { width: 23%; }
.comparison-table-label { display: none; }

@media (max-width: 640px) {
  .prose .comparison-table,
  .comparison-table :is(caption, tbody, tr, td, th[scope="row"]) {
    display: block;
    width: 100%;
  }
  .comparison-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .comparison-table tbody tr + tr { margin-block-start: var(--site-space-4); }
  .comparison-table td + td { border-block-start: 0; }
  .comparison-table-label {
    display: block;
    margin-block-end: var(--site-space-1);
    font-weight: var(--site-weight-semibold);
  }
}

/* One contextual invitation after each article. */
.article-action {
  margin-block-start: var(--site-space-8);
  padding-block: var(--site-space-6) var(--site-space-3);
  border-block-start: 1px solid var(--site-border-default);
  scroll-margin-block-start: var(--site-space-6);
}

.article-action h2 {
  margin: 0 0 var(--site-space-2);
  color: var(--site-text-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.article-action p {
  max-inline-size: 55ch;
  margin: 0 0 var(--site-space-3);
  font: 1.08rem/1.6 var(--site-font);
}

.article-action__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--site-size-touch);
  gap: var(--site-space-2);
  padding: .6rem .9rem;
  background: var(--site-accent);
  color: var(--site-accent-ink);
  border-radius: var(--site-radius-md);
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.article-action__link:hover {
  background: var(--site-accent-hover);
  text-decoration: underline;
}

.article-action-jump {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--site-size-touch);
  margin: 0 0 var(--site-space-4);
  gap: var(--site-space-2);
  font-size: var(--site-text-sm);
  font-weight: var(--site-weight-semibold);
}

@media print {
  .article-action, .article-action-jump { display: none; }
}

.course-hero-action {
  margin-block: var(--site-space-5) 0;
}
.course-hero-action a {
  gap: var(--site-space-2);
}
#course-enrollment {
  scroll-margin-block-start: var(--site-space-6);
}

/* The original public masthead and homepage controls at 02fea51. */
:root {
  font-size: 100%;
}

body[data-funnel-page="home"] {
  font-size: 14px;
  line-height: 1.5;
}

.intro .button,
.site-signin {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 6px;
  padding: 0 16px;
  white-space: nowrap;
}

.site-signin {
  min-height: 34px;
  height: 34px;
  background: var(--site-bg-muted);
  color: var(--site-text-ink);
}

.intro .button {
  min-height: 40px;
  height: 40px;
}

.intro__actions {
  gap: var(--site-space-3) var(--site-space-5);
}

@media (pointer: coarse), (max-width: 820px) {
  .intro .button,
  .site-signin,
  .wordmark,
  .crumbs a {
    min-height: var(--site-size-touch);
  }

  .crumbs a {
    display: inline-flex;
    align-items: center;
  }
}

.features h2 { line-height: 1.2; }

@media (max-width: 480px) {
  .intro__app-link { display: none; }
  .site-nav { column-gap: var(--site-space-3); font-size: var(--site-text-sm); }
}

@media print {
  .site-nav { display: none; }
}

/* Article illustrations and actual browser tool examples. */
.article-visuals {
  margin-block: 0 var(--site-space-6);
}

.article-art {
  max-width: 32rem;
  margin: 0;
}

.article-art img,
.tool-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.article-visuals--tool {
  display: grid;
  align-items: start;
  gap: var(--site-space-5);
}

.tool-preview {
  display: grid;
  justify-items: start;
  gap: var(--site-space-2);
  width: fit-content;
  max-width: 24rem;
  font-size: var(--site-text-sm);
  font-weight: var(--site-weight-semibold);
}

.tool-preview img {
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
}

.workflow-tool h2 {
  scroll-margin-block-start: var(--site-space-5);
}

@media (min-width: 640px) {
  .article-visuals--tool {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

/* Browse by business, then go directly to the guide or the tool. */
.niche-heading {
  padding-block-end: var(--site-space-6);
}

.niche-map {
  margin-block-end: var(--site-space-7);
}

.niche-map h2 {
  margin: 0 0 var(--site-space-2);
  color: var(--site-text-heading);
  font-size: var(--site-text-lg);
}

.niche-map ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--site-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.niche-map a {
  display: flex;
  align-items: center;
  min-height: var(--site-size-touch);
  font-weight: var(--site-weight-semibold);
  line-height: 1.25;
}

.niche-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(26%, 13rem);
  gap: var(--site-space-4);
  padding-block: var(--site-space-6);
  border-block-start: 1px solid var(--site-border-default);
  scroll-margin-block-start: var(--site-space-4);
}

.niche-entry h2 {
  margin: 0 0 var(--site-space-2);
  color: var(--site-text-heading);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}

.niche-entry p {
  max-width: 62ch;
  margin: 0 0 var(--site-space-2);
  color: var(--site-text-muted);
}

.niche-guide {
  font-size: var(--site-text-lg);
  font-weight: var(--site-weight-semibold);
}

.niche-related {
  display: grid;
  gap: var(--site-space-2);
  margin: var(--site-space-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--site-text-sm);
}

.niche-art {
  width: 100%;
  height: auto;
  align-self: start;
  justify-self: end;
}

.niche-entry--tool {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .niche-map ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .niche-entry--tool {
    grid-template-columns: minmax(0, 1fr) min(34%, 19rem);
  }
}

@media (max-width: 639px) {
  .niche-heading {
    padding-block: var(--site-space-7) var(--site-space-5);
  }

  .niche-heading h1 {
    font-size: clamp(1.9rem, 8vw, 2.1rem);
  }

  .niche-heading .dek {
    margin-block-start: var(--site-space-3);
  }

  .niche-map {
    margin-block-end: var(--site-space-5);
  }

  .niche-map a {
    padding-block: var(--site-space-1);
  }
}

/* Separate the next collection from the last ruled guide row. */
.doc-list + .doc-group {
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

/* Starter course offer and waitlist. */
.course-audience {
  margin: 0 0 var(--site-space-3);
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
  font-weight: var(--site-weight-semibold);
}

.course-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-space-3) var(--site-space-5);
  margin-block-start: var(--site-space-6);
}

.course-price p {
  display: grid;
  margin: 0;
  line-height: 1.3;
}

.course-price strong {
  color: var(--site-text-heading);
  font-size: 1.7rem;
}

.course-price span {
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
}

.course-project {
  border-block-start: 1px solid var(--site-border-default);
  padding-block-start: var(--site-space-5);
}

.course-project h2:first-child { margin-block-start: 0; }
.course-outline li + li { margin-block-start: var(--site-space-3); }

.course-waitlist {
  width: min(100% - 2rem, 31rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--site-border-default);
  border-radius: var(--site-radius-md);
  background: var(--site-surface);
  color: var(--site-text-ink);
}

.course-waitlist::backdrop { background: rgb(15 23 42 / .52); }

.course-waitlist h2 {
  margin: 0 var(--site-space-8) var(--site-space-2) 0;
  color: var(--site-text-heading);
  line-height: 1.2;
}

.course-waitlist-close {
  position: absolute;
  inset-block-start: var(--site-space-3);
  inset-inline-end: var(--site-space-3);
}

.course-waitlist-close .button {
  min-width: var(--site-size-touch);
  padding: 0;
  font-size: 1.4rem;
}

.course-waitlist-project {
  margin: 0;
  color: var(--site-text-muted);
  font-size: var(--site-text-sm);
}

.course-waitlist-privacy {
  margin-block: var(--site-space-4) 0;
  font-size: var(--site-text-sm);
}

.method-reference {
  margin-block: var(--site-space-5) var(--site-space-8);
}

.book-overview {
  display: grid;
  align-items: start;
  gap: var(--site-space-3) var(--site-space-6);
  margin-block-end: var(--site-space-7);
}

.book-overview h2 { margin-block-start: 0; }

.book-overview figure {
  width: min(100%, 12rem);
  margin: 0;
}

.book-overview img {
  display: block;
  width: 100%;
}

.systemology-stages th:first-child { width: 27%; }

@media (min-width: 580px) {
  .book-overview { grid-template-columns: minmax(0, 1fr) 12rem; }
}

@media (max-width: 579px) {
  .book-overview figure {
    order: -1;
    width: min(100%, 9rem);
  }
}
