/* Legal pages — tokens from theme.css only. */
.legal-body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

/* Same centered bar as the shell (#206). Signed-out stays navy in both themes. */
.menubar,
.menubar *,
.header-login {
  box-sizing: border-box;
}

.menubar {
  --menubar: 54px;
  --chrome-inset: 14px;
  --chrome-rose-size: 30px;
  --chrome-title-size: 20px;
  height: calc(var(--menubar) + env(safe-area-inset-top, 0px));
  min-height: calc(var(--menubar) + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: var(--chrome-inset);
  padding-bottom: 0;
  padding-left: var(--chrome-inset);
  min-width: 0;
  width: 100%;
  background: #0A3D62;
  color: #f4f7fb;
  border-bottom: 0;
}

.menu-brand {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  line-height: 1;
  min-width: 0;
  /* Leave room for the trail controls without collapsing the wordmark. */
  max-width: max(7.5rem, calc(100% - 8.5rem));
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.menu-lockup {
  width: 136px;
  height: 32px;
  flex: 0 0 136px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.menu-rose {
  width: var(--chrome-rose-size);
  height: var(--chrome-rose-size);
  flex: 0 0 var(--chrome-rose-size);
  display: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.menu-app {
  margin: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  font-family: var(--font);
  font-size: var(--chrome-title-size);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  color: #f4f7fb;
  display: block;
}

@media (max-width: 359px) {
  .menu-lockup {
    display: none;
  }

  .menu-rose {
    display: block;
  }
}

.menubar-end {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  min-width: 0;
  max-height: 100%;
  padding: 0 0 0 8px;
  line-height: 1;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #ffffff;
  color: #0A3D62;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-login:hover,
.header-login:focus-visible {
  background: #F4F7F8;
  color: #0A3D62;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.docs-workspace[hidden],
.docs-profile[hidden],
.header-login[hidden],
.docs-workspace-menu[hidden] {
  display: none !important;
}

.docs-workspace-wrap {
  position: relative;
  flex: 0 0 auto;
}

.docs-workspace,
.docs-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}

.docs-workspace {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, #fff 14%, transparent);
}

.docs-workspace:hover,
.docs-workspace:focus-visible,
.docs-profile:hover,
.docs-profile:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.docs-ws-face {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, #fff 18%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.docs-ws-house {
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(50% 6%, 100% 50%, 84% 50%, 84% 96%, 58% 96%, 58% 68%, 42% 68%, 42% 96%, 16% 96%, 16% 50%, 0 50%);
}

.docs-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}

.docs-profile-initial {
  line-height: 1;
}

.docs-workspace-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 12rem;
  max-width: min(20rem, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.docs-workspace-menu a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.docs-workspace-menu a:hover,
.docs-workspace-menu a:focus-visible {
  background: var(--ocean-wash);
  color: var(--ink);
  outline: 2px solid var(--focus);
  outline-offset: 0;
}

.is-signed-in .menubar {
  background: var(--chrome);
  color: var(--chrome-ink);
}

.is-signed-in .menu-app {
  color: var(--chrome-ink);
}

/* Phone. The wordmark stays in the bar. */
@media (max-width: 767px) {
  .menu-app {
    display: block;
    font-size: 18px;
  }

  .docs-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* iPad. */
@media (min-width: 768px) and (max-width: 1024px) {
  .menu-app {
    display: block;
  }
}

@media (min-width: 1025px) {
  .menubar {
    --menubar: 50px;
    --chrome-rose-size: 32px;
    --chrome-title-size: 18px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .menu-brand {
    grid-column: 2;
    max-width: none;
    overflow: visible;
    z-index: 1;
  }

  .menu-app {
    display: block;
  }

  .menubar-end {
    grid-column: 3;
    justify-self: end;
  }
}

.docs-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 42rem;
  margin: 0 auto;
  padding: 8px 20px 0;
  font-family: var(--font);
  font-size: 14px;
}

.docs-root {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.docs-root:hover,
.docs-root:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-root:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.docs-crumb-sep {
  color: var(--ink-3);
}

.docs-crumb-current {
  color: var(--ink);
  font-weight: 600;
}

.legal-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    16px
    max(20px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  color: var(--chrome-ink);
}

.legal-home,
.legal-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--chrome-ink) 35%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--chrome-ink) 12%, transparent);
  color: var(--chrome-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.legal-home:hover,
.legal-home:focus-visible,
.legal-signout:hover,
.legal-signout:focus-visible {
  background: color-mix(in srgb, var(--chrome-ink) 22%, transparent);
  color: var(--chrome-ink);
}

.legal-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--chrome-ink);
  text-decoration: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 42rem;
  margin: 0 auto;
  padding: 14px 20px 0;
}

.legal-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  color: var(--ink);
}

.legal-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.legal-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.legal-main h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-copy {
  color: var(--ink-2);
}

.legal-copy h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  color: var(--ink);
}

.legal-copy p,
.legal-copy ul {
  margin: 0 0 14px;
}

.legal-copy a,
.legal-foot a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-banner {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: var(--ocean-wash);
  color: var(--ink);
}

.legal-placeholder {
  padding: 12px 14px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: var(--ocean-wash);
  color: var(--ink);
}

.legal-foot {
  border-top: 1px solid var(--line);
  padding: 16px 20px max(32px, env(safe-area-inset-bottom, 0px));
  color: var(--ink-2);
  font-size: 13px;
}

.legal-foot p {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-copy code,
.legal-foot code,
.legal-banner code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.docs-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.docs-list li {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.docs-list a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-list a:hover,
.docs-list a:focus-visible {
  text-decoration: underline;
}

.docs-desc {
  margin: 6px 0 0;
  color: var(--ink-2);
}

.docs-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.docs-preview {
  width: 120px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-preview[data-tone="dark"] {
  background: #0B1C28;
}

.docs-preview[data-tone="light"] {
  /* Fixed light pad so navy and black ink stay readable in dark theme. */
  background: #F4F7FB;
  border-color: #C5D0DA;
}

.docs-preview[data-aspect="square"] {
  width: 72px;
  height: 72px;
}

@media (max-width: 640px) {
  .legal-bar {
    flex-wrap: wrap;
  }

  .legal-main {
    padding: 24px 16px 48px;
  }

  .docs-brand-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-preview {
    width: min(160px, 100%);
    height: auto;
    max-height: 72px;
  }

  .docs-preview[data-aspect="square"] {
    width: 72px;
    height: 72px;
    max-height: none;
  }
}

/* Docs nav: 44px targets and a marked current item on every docs page. */
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/*
  Fleuralink Enterprise (ORG-10): /docs/enterprise, its onboarding
  checklist, and the docs template. Tokens from theme.css only.
  --selection-border is navy in light and the lighter ocean in dark, so it
  fills the primary button and marks current items in both schemes.
*/
.ent-body {
  --ent-accent: var(--selection-border);
  --ent-on-accent: #FFFFFF;
  --ent-gutter: 80px;
  --ent-max: 1280px;
  --ent-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (prefers-color-scheme: dark) {
  .ent-body {
    --ent-on-accent: var(--canvas);
  }
}

.ent-body *,
.ent-body *::before,
.ent-body *::after {
  box-sizing: border-box;
}

/* The docs nav lines up with the wider Enterprise layout. */
.ent-body .legal-nav {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 var(--ent-gutter);
  gap: 4px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

/* Sign in keeps its 36px pill and gets a 44px hit area. */
.ent-body .header-login {
  position: relative;
}

.ent-body .header-login::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.ent-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ent-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.ent-ico-sm {
  width: 16px;
  height: 16px;
}

.ent-body a:focus-visible,
.ent-body button:focus-visible,
.ent-body summary:focus-visible,
.ent-body pre:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.ent-body code {
  font-family: var(--ent-mono);
  font-size: 0.92em;
}

.ent-draft {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 6px;
  border: 1px dashed var(--ink-3);
  border-radius: 4px;
  color: var(--ink-2);
  font-family: var(--ent-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.ent-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--ent-max) + 2 * var(--ent-gutter));
  margin: 0 auto;
  padding: 0 var(--ent-gutter);
}

.ent-lede {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

/* Landing (frame f1). */
.ent-landing {
  flex: 0 0 auto;
  padding-bottom: 64px;
}

.ent-hero {
  padding: 64px 0 56px;
}

.ent-kicker {
  margin-bottom: 12px;
  font-family: var(--ent-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.ent-hero h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ent-hero .ent-lede {
  max-width: 34rem;
  font-size: 20px;
}

.ent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}

.ent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink-3);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.ent-btn:hover {
  background: var(--ocean-wash);
}

.ent-btn-primary {
  border-color: var(--ent-accent);
  background: var(--ent-accent);
  color: var(--ent-on-accent);
}

.ent-btn-primary:hover {
  border-color: var(--ent-accent);
  background: color-mix(in srgb, var(--ent-accent) 88%, var(--ink));
  color: var(--ent-on-accent);
}

.ent-note {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.ent-admin-link,
.ent-more,
.ent-card-link,
.ent-step-doc,
.ent-guide-link,
.ent-article a:not([class]) {
  color: var(--link);
  font-weight: 600;
}

.ent-admin-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ent-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.ent-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ent-more,
.ent-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}

.ent-more:hover,
.ent-card-link:hover .ent-card-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ent-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 20px 20px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ent-card:hover {
  border-color: var(--ink-3);
}

.ent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--ocean-wash);
  color: var(--link);
}

.ent-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.ent-card h3 .ent-draft {
  margin-left: 8px;
}

.ent-card-draft {
  margin: -4px 0 12px;
  line-height: 1;
}

.ent-card-draft .ent-draft {
  margin-left: 0;
}

.ent-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.ent-card-text {
  flex: 1 0 auto;
  margin-bottom: 12px;
}

/* The whole card opens its guide. */
.ent-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.ent-band {
  flex: 1 0 auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.ent-band-inner {
  max-width: calc(var(--ent-max) + 2 * var(--ent-gutter));
  margin: 0 auto;
  padding: 48px var(--ent-gutter) 56px;
}

.ent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-flow-step {
  position: relative;
  padding-right: 8px;
}

.ent-num,
.ent-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ent-accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* The line from each step to the next. */
.ent-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 44px;
  right: 0;
  border-top: 1px solid var(--line);
}

.ent-flow-step h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.ent-flow-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

/* Footer: a full-width row after the page body. */
.ent-foot {
  flex: 0 0 auto;
  padding: 0 var(--ent-gutter) env(safe-area-inset-bottom, 0px);
  background: var(--canvas);
}

.ent-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: var(--ent-max);
  min-height: 64px;
  margin: 0 auto;
}

.ent-foot .ent-copyright {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.ent-copyright img {
  width: 20px;
  height: 20px;
}

.ent-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.ent-foot .ent-foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.ent-foot .ent-foot-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumbs. */
.ent-crumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ent-crumb,
.ent-crumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
}

.ent-crumb-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}

.ent-crumb-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ent-crumb-current {
  color: var(--ink-2);
}

/* Onboarding (frame f2). */
.ent-onboarding {
  max-width: calc(880px + 2 * 20px);
  padding: 16px 20px 64px;
}

.ent-onboarding h1,
.ent-article h1 {
  margin: 4px 0 12px;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.ent-article h1 .ent-draft {
  font-size: 11px;
}

.ent-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 16px;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ent-step-num {
  margin-top: 6px;
  border-color: var(--ink-3);
  color: var(--ink-2);
}

.ent-step-text h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ent-step-text p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-2);
  font-size: 14px;
}

.ent-step-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: -8px;
  font-size: 14px;
  text-align: right;
  text-decoration: none;
}

.ent-step-doc:hover .ent-step-doc-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ent-step-chevron {
  display: none;
}

/* Docs template (frame f3). */
.ent-docs {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 236px;
  align-items: stretch;
  width: 100%;
}

.ent-side {
  grid-column: 1;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

/* Sticks inside its own column: it ends where the grid ends, above the footer. */
.ent-side-inner {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 28px 16px 32px;
}

.ent-side-label,
.ent-rail-label {
  margin: 0 0 12px;
  padding: 0 12px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ent-side-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-side-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.ent-side-list a .ent-draft {
  margin-left: auto;
}

.ent-side-list a:hover {
  background: color-mix(in srgb, var(--ocean-wash) 55%, transparent);
}

.ent-side-list a[aria-current="page"] {
  background: var(--ocean-wash);
  color: var(--link);
  font-weight: 600;
}

.ent-contents {
  display: none;
}

.ent-article {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: calc(760px + 2 * 64px);
  padding: 16px 64px 64px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.ent-article .ent-lede {
  font-size: 18px;
}

.ent-doc-section h2 {
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: 16px;
}

.ent-doc-section p {
  margin: 0 0 14px;
}

.ent-article a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ent-numbered {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: ent-step;
}

.ent-numbered li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 40px;
  counter-increment: ent-step;
}

.ent-numbered li::before {
  content: counter(ent-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--ocean-wash);
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
}

.ent-values {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.ent-values-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
}

.ent-values-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.ent-values-narrow {
  display: none;
}

.ent-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ent-copy:hover {
  background: var(--ocean-wash);
}

.ent-values-body {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: var(--ink);
  font-family: var(--ent-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.ent-values-body code {
  font-size: inherit;
}

.ent-c {
  color: var(--ink-3);
}

.ent-callout {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin: 8px 0 24px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--ent-accent) 35%, var(--line));
  border-radius: 8px;
  background: var(--ocean-wash);
}

.ent-callout-ico {
  margin-top: 3px;
  color: var(--link);
}

.ent-callout p {
  margin: 0;
}

.ent-callout .ent-callout-title {
  margin-bottom: 2px;
  font-weight: 600;
}

.ent-draft-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.ent-draft-note .ent-draft {
  margin: 0 6px 0 0;
}

.ent-switcher {
  max-width: 300px;
  margin: 8px 0 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}

.ent-switcher-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-switcher-list li {
  padding: 8px 10px;
  border-radius: 6px;
}

.ent-switcher-home {
  font-weight: 600;
}

.ent-switcher-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 8px 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ent-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--ocean-wash);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.ent-switcher figcaption {
  padding: 8px 10px 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.ent-guides {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ent-guides li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ent-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ent-guides p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.ent-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.ent-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.ent-pager-link:hover {
  border-color: var(--ink-3);
}

.ent-pager-next {
  align-items: flex-end;
  text-align: right;
}

.ent-pager-dir {
  color: var(--ink-2);
  font-size: 13px;
}

.ent-pager-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-size: 17px;
  font-weight: 600;
}

.ent-rail {
  grid-column: 3;
}

.ent-rail-inner {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 28px 24px 32px 0;
}

.ent-rail-label {
  padding: 0;
}

.ent-rail ul {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.ent-rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-left: -1px;
  padding: 4px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.ent-rail a:hover {
  color: var(--ink);
}

.ent-rail a[aria-current="location"] {
  border-left-color: var(--ent-accent);
  color: var(--link);
  font-weight: 600;
}

/* Laptop and iPad: no rail. */
@media (max-width: 1199px) {
  .ent-body {
    --ent-gutter: 40px;
  }

  .ent-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ent-docs {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .ent-rail {
    display: none;
  }

  .ent-article {
    padding: 16px 40px 56px;
  }
}

/* Phone (frames c and d). */
@media (max-width: 767px) {
  .ent-body {
    --ent-gutter: 20px;
  }

  .ent-hero {
    padding: 28px 0 32px;
  }

  .ent-hero .ent-lede {
    font-size: 17px;
  }

  .ent-actions {
    flex-direction: column;
    margin: 24px 0 16px;
  }

  .ent-btn {
    width: 100%;
  }

  /* "Contact your admin": a 44px hit area on touch. */
  .ent-admin-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    vertical-align: middle;
  }

  .ent-section-head h2 {
    font-size: 22px;
  }

  .ent-section-head {
    margin-bottom: 12px;
  }

  .ent-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ent-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .ent-icon {
    flex: 0 0 40px;
    margin: 2px 0 0;
  }

  .ent-card h3 {
    margin-bottom: 4px;
  }

  .ent-card-draft {
    margin: 2px 0 8px;
  }

  .ent-card-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }

  /* The row is the link on a phone; the label stays for screen readers. */
  .ent-card-link {
    position: static;
    min-height: 0;
  }

  .ent-card-link .ent-card-more,
  .ent-card-link .ent-ico {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ent-band-inner {
    padding: 32px var(--ent-gutter) 40px;
  }

  .ent-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ent-flow-step {
    padding-left: 48px;
  }

  .ent-flow-step .ent-num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .ent-flow-step h3 {
    margin-top: 4px;
  }

  .ent-flow-step:not(:last-child)::after {
    top: 40px;
    bottom: -16px;
    left: 16px;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .ent-foot-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 20px;
  }

  .ent-foot-nav {
    gap: 0 20px;
  }

  .ent-onboarding {
    padding: 8px 16px 48px;
  }

  .ent-step {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px 10px 14px;
  }

  .ent-step-num {
    margin-top: 0;
  }

  .ent-step-text h2 {
    margin: 0;
    font-size: 15px;
  }

  .ent-step-text p {
    display: none;
  }

  /* The row is the link on a phone. */
  .ent-step-doc {
    position: static;
    min-height: 0;
    margin: 0;
    color: var(--ink-2);
  }

  .ent-step-doc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
  }

  .ent-step-doc-label,
  .ent-step-arrow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ent-step-chevron {
    display: block;
  }

  .ent-docs {
    display: block;
  }

  .ent-side {
    display: none;
  }

  .ent-contents {
    display: block;
    margin: 12px 16px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .ent-contents summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }

  .ent-contents summary::-webkit-details-marker {
    display: none;
  }

  .ent-contents-current {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ent-contents[open] .ent-contents-chevron {
    transform: rotate(180deg);
  }

  .ent-contents nav {
    padding: 4px 6px 8px;
    border-top: 1px solid var(--line);
  }

  .ent-article {
    padding: 4px 20px 48px;
  }

  .ent-article .ent-lede {
    font-size: 16px;
  }

  .ent-crumb-wide {
    display: none;
  }

  /* "Docs" and "Enterprise" are at least 44px wide and tall on touch. */
  .ent-crumb-link {
    min-width: 44px;
    justify-content: center;
  }

  .ent-values-wide {
    display: none;
  }

  .ent-values-narrow {
    display: inline;
  }

  .ent-pager {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ent-pager-gap {
    display: none;
  }
}
