/* Page shells and the two layout primitives: stack and cluster. */
.page {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
}

.page--wide {
  max-width: var(--measure-wide);
}

.stack > * + * {
  margin-block-start: var(--space-3);
}

.stack--sm > * + * {
  margin-block-start: var(--space-2);
}

.stack--lg > * + * {
  margin-block-start: var(--space-4);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.cluster--between {
  justify-content: space-between;
}

/* Creator app chrome (app.): brand left, plain words right. */
.topbar {
  border-block-end: var(--border) solid var(--color-line-strong);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.topbar__brand {
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
}

/* Logo color only (ADR 0015): "form" in the wordmark. The link's underline
   stays ink, so no text-decoration-color here. */
.wordmark__form {
  color: var(--color-logo);
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: center;
  font-size: var(--text-sm);
}

.topbar__nav a,
.topbar__nav button {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: var(--border);
  text-underline-offset: var(--underline-offset);
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
}

.topbar__nav a[aria-current="page"] {
  text-decoration: none;
}

/* Long unbreakable words (emails, links) wrap instead of pushing the
   page sideways at large text sizes. */
.topbar__nav > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
