/* ==========================================================================
   Tandmade Docs — Help Scout Docs theme

   Makes tandmade.helpscoutdocs.com read as the docs on tandmade.com: the same
   canvas, hairline frame, type scale, sidebar, article header, numbered
   screenshots and steps. Tokens are the site's own (design/tokens.json →
   system.css); component values are taken from its docs styles.

   Help Scout's markup (Bootstrap 2 underneath):
     header#mainNav.navbar > .navbar-inner > .container-fluid
     section#docsSearch                      homepage only
     section#contentArea.container-fluid
       .row-fluid > section#main-content.span9 > .contentWrapper
                  > aside#sidebar.span3       (after the content in the DOM)
       footer

   Two layers:
     1. Help Scout's own elements, restyled. Works with the script blocked.
     2. .tm-* elements the script adds (public/helpscout/tandmade.js).

   Help Scout ships its colours in an inline <style> and its layout with
   high-specificity selectors, hence the !important on its own elements.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* Colour */
  --tm-canvas: #f2f0f0;
  --tm-white: #ffffff;
  --tm-well: #f3f1f1;
  --tm-line: #e6e2e3;
  --tm-ink: #15121a;
  --tm-ink-84: rgba(21, 18, 26, .84);
  --tm-ink-70: rgba(21, 18, 26, .7);
  --tm-ink-50: rgba(21, 18, 26, .5);
  --tm-plum: #452053;
  --tm-plum-3: #a896ad;
  --tm-pink: #f67ee3;
  --tm-ok: #1f9d5a;
  --tm-night: #0d0b11;
  --tm-night-2: #17141d;

  /* Type */
  --tm-font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --tm-mono: "Geist Mono", ui-monospace, monospace;
  --tm-h1: 4.5rem;
  --tm-h2: 3.25rem;
  --tm-h3: 2.125rem;
  --tm-h4: 1.375rem;
  --tm-title: 2.75rem;
  --tm-large: 1.25rem;
  --tm-medium: 1.0625rem;
  --tm-normal: .9375rem;
  --tm-small: .8125rem;
  --tm-tiny: .6875rem;

  /* Shape and depth */
  --tm-r-xs: 5px;
  --tm-r-sm: 8px;
  --tm-r-md: 10px;
  --tm-r-lg: 12px;
  --tm-r-xl: 16px;
  --tm-raise: 0 0 0 1px rgba(24, 16, 32, .05), 0 1px 2px rgba(24, 16, 32, .06),
    0 5px 12px -5px rgba(24, 16, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  --tm-raise-2: 0 0 0 1px rgba(24, 16, 32, .06), 0 2px 4px rgba(24, 16, 32, .07),
    0 10px 22px -8px rgba(24, 16, 32, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
  --tm-volume: 0 0 0 1px rgba(24, 16, 32, .05), 0 2px 6px -1px rgba(24, 16, 32, .08),
    0 14px 32px -10px rgba(24, 16, 32, .16), 0 40px 80px -32px rgba(24, 16, 32, .22),
    inset 0 1px 0 rgba(255, 255, 255, .98);
  --tm-press: inset 0 1.5px 3px rgba(24, 16, 32, .08), inset 0 -1px 0 rgba(255, 255, 255, .7);
  --tm-shadow-ink: 0 0 0 1px rgba(24, 16, 32, .3), 0 1px 2px rgba(24, 16, 32, .2),
    0 6px 16px -6px rgba(69, 32, 83, .5), inset 0 1px 0 rgba(255, 255, 255, .16);

  /* Frame */
  --tm-shell: 80rem;
  --tm-outer: 3rem;
  --tm-pad: 2rem;
  --tm-nav-h: 4.5rem;
  --tm-side: 15.5rem;
  --tm-toc: 13rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  background: var(--tm-canvas);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--tm-canvas) !important;
  color: var(--tm-ink) !important;
  font-family: var(--tm-font) !important;
  font-size: var(--tm-normal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: rgba(246, 126, 227, .28);
  color: var(--tm-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--tm-pink) !important;
  outline-offset: 2px !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--tm-font) !important;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   The frame: one shell with a hairline rail on each side
   Help Scout uses .container-fluid for the navbar and the page body, so
   sizing it once puts the mark, the content and the footer on the same rails.
   -------------------------------------------------------------------------- */

.container-fluid,
#docsSearch {
  width: min(100% - 2 * var(--tm-outer), var(--tm-shell)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-right: 1px solid var(--tm-line);
  border-left: 1px solid var(--tm-line);
}

.row-fluid {
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 !important;
  background: rgba(242, 240, 240, .86) !important;
  border-bottom: 1px solid var(--tm-line) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.navbar .navbar-inner {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.navbar .navbar-inner .container-fluid {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--tm-nav-h);
  padding: 0 1rem !important;
}

.navbar .navbar-inner .container-fluid::before,
.navbar .navbar-inner .container-fluid::after {
  display: none !important;
}

.navbar .brand {
  display: inline-flex !important;
  flex: none;
  float: none !important;
  align-items: center;
  gap: .6rem;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tm-ink) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: -.02em;
  line-height: 1 !important;
  text-shadow: none !important;
}

.navbar .brand img {
  max-height: 1.5rem;
  width: auto;
}

.tm-mark-logo {
  width: 1.65rem;
  height: auto;
  color: var(--tm-plum);
}

/* "Tandmade | Docs": the second word says which Tandmade this is. */
.tm-brand-docs {
  margin-left: .2rem;
  padding-left: .8rem;
  border-left: 1px solid var(--tm-line);
  color: var(--tm-ink-50);
  font-weight: 500;
  line-height: 1.4;
}

/* Help Scout's own nav list (home link, contact) sits with the actions. */
.navbar .nav-collapse {
  flex: none;
  order: 3;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}

.navbar .nav {
  display: flex !important;
  float: none !important;
  align-items: center;
  gap: .15rem;
  margin: 0 !important;
}

.navbar .nav > li {
  float: none !important;
}

.navbar .nav > li > a,
.tm-nav-link {
  display: inline-flex !important;
  align-items: center;
  padding: .5rem .75rem !important;
  border-radius: var(--tm-r-sm);
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  transition: color 150ms ease, background-color 150ms ease;
}

.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus,
.tm-nav-link:hover {
  background: rgba(21, 18, 26, .05) !important;
  color: var(--tm-ink) !important;
}

.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.tm-nav-link.is-current {
  background: rgba(21, 18, 26, .08) !important;
  box-shadow: none !important;
  color: var(--tm-ink) !important;
  font-weight: 500 !important;
}

.navbar .nav .caret,
.navbar .btn-navbar {
  display: none !important;
}

.tm-nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  gap: .15rem;
  margin-left: .5rem;
}

.tm-nav-actions {
  display: flex;
  flex: none;
  order: 4;
  align-items: center;
  gap: .5rem;
}

.tm-nav-site {
  gap: .3rem;
}

.tm-out {
  width: .85rem;
  height: .85rem;
  flex: none;
  opacity: .6;
  transition: transform 200ms ease, opacity 200ms ease;
}

.tm-nav-site:hover .tm-out {
  opacity: 1;
  transform: translate3d(1px, -1px, 0);
}

/* The one button: plum, with the ink shadow. */
.tm-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: var(--tm-r-md);
  background: var(--tm-plum);
  box-shadow: var(--tm-shadow-ink);
  color: var(--tm-white) !important;
  font-size: var(--tm-normal);
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 200ms ease, transform 200ms ease;
}

.tm-button:hover {
  background: #54286a;
  color: var(--tm-white) !important;
}

.tm-button.is-light {
  background: var(--tm-white);
  box-shadow: var(--tm-raise);
  color: var(--tm-ink) !important;
}

.tm-arrow {
  width: .95rem;
  height: .95rem;
  flex: none;
  transition: transform 200ms ease;
}

a:hover > .tm-arrow,
a:hover .tm-button .tm-arrow,
.tm-button:hover .tm-arrow {
  transform: translate3d(3px, 0, 0);
}

/* --------------------------------------------------------------------------
   Shared small parts
   -------------------------------------------------------------------------- */

.tm-dim {
  color: var(--tm-ink-50);
}

/* Section label with the slanted pink mark */
.tm-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--tm-ink);
  font-size: var(--tm-small);
  font-weight: 500;
}

.tm-label::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 1.5px;
  background: var(--tm-pink);
  transform: skewX(-18deg);
}

.tm-ok {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: var(--tm-ok);
}

.tm-keys {
  display: inline-flex;
  gap: .2rem;
  vertical-align: .05em;
}

.tm-keys kbd,
#fullArticle kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .3rem !important;
  border: 0 !important;
  border-radius: var(--tm-r-xs) !important;
  background: var(--tm-white) !important;
  box-shadow: var(--tm-raise), inset 0 -1px 0 var(--tm-line) !important;
  color: var(--tm-ink-70) !important;
  /* The system face draws ⌘ ⌥ ⇧ ⌫ ↵ at full size; a mono face shrinks them. */
  font-family: ui-sans-serif, system-ui, sans-serif !important;
  font-size: var(--tm-tiny) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Search (homepage hero and sidebar share one form: #searchBar)
   -------------------------------------------------------------------------- */

#searchBar {
  position: relative;
  display: flex !important;
  align-items: center;
  width: min(100%, 30rem) !important;
  margin: 0 !important;
  padding: 0 .8rem 0 0 !important;
  border-radius: var(--tm-r-md);
  background: var(--tm-white);
  box-shadow: var(--tm-raise-2);
  text-align: left !important;
  transition: box-shadow 200ms ease;
}

#searchBar:focus-within {
  box-shadow: var(--tm-raise-2), 0 0 0 3px rgba(246, 126, 227, .3);
}

#searchBar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.1rem;
  width: 1rem;
  height: 1rem;
  background: var(--tm-ink-50);
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask: var(--tm-search-icon) center / contain no-repeat;
  mask: var(--tm-search-icon) center / contain no-repeat;
}

:root {
  --tm-search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E");
}

#searchBar .search-query {
  flex: 1;
  width: auto !important;
  min-width: 0;
  height: 3.1rem !important;
  margin: 0 !important;
  padding: 0 .75rem 0 2.75rem !important;
  border: 0 !important;
  border-radius: var(--tm-r-md) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tm-ink) !important;
  font-family: inherit !important;
  font-size: var(--tm-normal) !important;
  line-height: 3.1rem !important;
  outline: none !important;
}

#searchBar .search-query::placeholder {
  color: var(--tm-ink-50) !important;
  opacity: 1;
}

/* Enter submits; Help Scout's blue button is noise next to the field. */
#searchBar button {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip-path: inset(50%);
  white-space: nowrap;
}

#searchBar:focus-within .tm-search-keys {
  opacity: 0;
}

#serp-dd {
  position: absolute !important;
  top: calc(100% + .5rem) !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 60 !important;
  width: auto !important;
  min-width: 18rem;
  padding: .35rem !important;
  border: 0 !important;
  border-radius: var(--tm-r-lg) !important;
  background: var(--tm-white) !important;
  box-shadow: var(--tm-volume) !important;
}

#serp-dd .result {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#serp-dd .result > li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--tm-r-sm);
  background: none !important;
}

#serp-dd .result > li > a {
  display: block !important;
  padding: .55rem .7rem !important;
  border-radius: var(--tm-r-sm) !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-normal) !important;
  line-height: 1.4 !important;
}

#serp-dd .result > li.active > a,
#serp-dd .result > li > a:hover {
  background: rgba(21, 18, 26, .05) !important;
  color: var(--tm-ink) !important;
}

/* --------------------------------------------------------------------------
   Homepage — hero
   -------------------------------------------------------------------------- */

#docsSearch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 4.5rem var(--tm-pad) 3.5rem !important;
  border-bottom: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

.tm-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.tm-hero-title,
#docsSearch h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-h1) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
  line-height: 1 !important;
  text-align: left !important;
  text-wrap: balance;
}

.tm-hero-lead {
  max-width: 34rem;
  margin: 0 !important;
  color: var(--tm-ink-70);
  font-size: var(--tm-large);
  letter-spacing: -.01em;
  line-height: 1.5;
  text-wrap: pretty;
}

.tm-hero-meta {
  margin: 0 !important;
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
}

.tm-hero-meta:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   Homepage — sections the script builds from the index
   -------------------------------------------------------------------------- */

body.tm-page-home #contentArea {
  padding: 0 !important;
}

.tm-home {
  border-top: 1px solid var(--tm-line);
}

/* Stage: the editor on a plane one tone deeper than the canvas */
.tm-stage {
  padding: 3.5rem var(--tm-pad) 2rem;
  background: #ebe9e9;
  border-bottom: 1px solid var(--tm-line);
}

.tm-stage-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.tm-stage-shot {
  display: block;
  width: min(100%, 62rem);
  overflow: hidden;
  border-radius: var(--tm-r-lg);
  background: var(--tm-well);
  box-shadow: var(--tm-volume);
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1);
}

.tm-stage-link:hover .tm-stage-shot {
  transform: translate3d(0, -3px, 0);
}

.tm-stage-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.tm-stage-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--tm-ink);
  font-size: var(--tm-normal);
  font-weight: 500;
}

.tm-stage-link:hover .tm-arrow {
  transform: translate3d(3px, 0, 0);
}

.tm-section {
  scroll-margin-top: var(--tm-nav-h);
}

.tm-sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 3.5rem;
  padding: 5rem var(--tm-pad) 3rem;
}

.tm-sec-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.tm-sec-title {
  margin: 0 !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-h2) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
  line-height: 1.05 !important;
}

.tm-sec-lead {
  max-width: 30rem;
  margin: 0 !important;
  color: var(--tm-ink-70);
  font-size: var(--tm-large);
  letter-spacing: -.01em;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Start here: steps as cells of the frame. The next step carries the ink
   line and a label; finished steps a green dot. */
.tm-steps-row {
  display: grid;
  grid-template-columns: repeat(var(--tm-steps, 5), minmax(0, 1fr));
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--tm-line);
  list-style: none !important;
}

.tm-steps-row > li + li {
  border-left: 1px solid var(--tm-line);
}

.tm-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  height: 100%;
  padding: 1.35rem var(--tm-pad) 1.6rem;
}

.tm-step::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tm-ink);
  transition: width 400ms cubic-bezier(.22, 1, .36, 1);
}

.tm-step:hover::after,
.tm-step:focus-visible::after,
.tm-step.is-next::after {
  width: 100%;
}

.tm-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
  font-variant-numeric: tabular-nums;
}

.tm-state.is-next {
  color: var(--tm-plum);
  font-weight: 500;
}

.tm-state.is-done {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--tm-ok);
}

.tm-step-title {
  color: var(--tm-ink);
  font-size: var(--tm-medium);
  font-weight: 500;
  letter-spacing: -.01em;
}

.tm-step-sub {
  color: var(--tm-ink-70);
  font-size: var(--tm-normal);
  line-height: 1.5;
}

.tm-start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem var(--tm-pad) 1.75rem;
  border-top: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
}

.tm-start-meta {
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
}

/* Chapters: an index — name on the left, articles in two columns */
.tm-chapter-list {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--tm-line);
  list-style: none !important;
}

.tm-chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
}

.tm-chapter + .tm-chapter {
  border-top: 1px solid var(--tm-line);
}

.tm-chapter-title {
  margin: 0 !important;
  padding: 1.6rem var(--tm-pad) !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-h4) !important;
  font-weight: 500 !important;
  letter-spacing: -.02em !important;
  line-height: 1.25 !important;
}

.tm-chapter-title a:hover {
  color: var(--tm-plum);
}

.tm-chapter-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0 !important;
  padding: 1.1rem var(--tm-pad) 1.3rem 2.5rem !important;
  border-left: 1px solid var(--tm-line);
  list-style: none !important;
}

.tm-chapter-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  color: var(--tm-ink-70);
  font-size: var(--tm-normal);
  line-height: 1.4;
  transition: color 150ms ease;
}

.tm-chapter-link:hover {
  color: var(--tm-ink);
}

.tm-chapter-meta {
  flex: none;
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Homepage — Help Scout's own listing
   Shown until the index arrives, and for good if it never does.
   -------------------------------------------------------------------------- */

body.tm-has-home #contentArea > .category-list,
body.tm-has-home #contentArea > .collection-category,
body.tm-has-home #contentArea > .most-pop-articles,
body.tm-has-home #contentArea > hr.sep {
  display: none !important;
}

#contentArea > hr.sep {
  display: none;
}

.most-pop-articles {
  margin: 0 !important;
  padding: 2rem var(--tm-pad) !important;
  border-top: 1px solid var(--tm-line);
}

.most-pop-articles h2,
.collection-category > h2 {
  margin: 0 0 1rem !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.most-pop-articles .popArticles {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.most-pop-articles .popArticles li {
  margin: 0 !important;
  padding: 0 !important;
}

.most-pop-articles .popArticles a {
  display: inline-flex;
  padding: .35rem 0;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
}

.most-pop-articles .popArticles a:hover,
.most-pop-articles .popArticles a:hover span {
  color: var(--tm-ink) !important;
  text-decoration: none !important;
}

.most-pop-articles [class^="icon-"] {
  display: none !important;
}

.collection-category {
  margin: 0 !important;
  padding: 2rem var(--tm-pad) 0 !important;
  border-top: 1px solid var(--tm-line);
}

.category-list,
.category-list.two-col,
.category-list.three-col {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--tm-line);
}

.category-list .category {
  display: flex !important;
  flex-direction: column;
  gap: .3rem;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 1.35rem var(--tm-pad) 1.6rem !important;
  border: 0 !important;
  border-right: 1px solid var(--tm-line) !important;
  border-bottom: 1px solid var(--tm-line) !important;
  background: none !important;
  text-align: left !important;
  transition: background-color 200ms ease;
}

.category-list .category:hover {
  background: rgba(255, 255, 255, .5) !important;
}

.category-list .category h3 {
  margin: 0 !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-medium) !important;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
  line-height: 1.35 !important;
}

.category-list .category p {
  margin: 0 !important;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
  line-height: 1.5 !important;
}

.category-list .category p:empty {
  display: none !important;
}

.category-list .category .article-count,
.category-list .category:hover .article-count {
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
}

/* --------------------------------------------------------------------------
   Inner pages — sidebar | content | on this page
   Help Scout floats .span9 and .span3 and puts the sidebar after the content.
   A grid with explicit placement moves it to the left without touching the
   markup; the line between menu and content is a background, so it runs the
   full height next to the sticky sidebar.
   -------------------------------------------------------------------------- */

#contentArea {
  padding: 0 !important;
}

#contentArea > .row-fluid {
  display: grid;
  grid-template-columns: var(--tm-side) minmax(0, 1fr) var(--tm-toc);
  align-items: start;
  background: linear-gradient(var(--tm-line), var(--tm-line)) var(--tm-side) 0 / 1px 100% no-repeat;
}

#contentArea > .row-fluid::before,
#contentArea > .row-fluid::after {
  display: none !important;
}

#main-content,
#sidebar {
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  background: none !important;
}

#main-content {
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
  padding: 3rem 3rem 4.5rem !important;
}

body.tm-has-head #main-content {
  grid-row: 2;
}

body.tm-has-toc #main-content {
  grid-column: 2;
}

#main-content .contentWrapper {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

#main-content .contentWrapper > * {
  max-width: 45rem;
}

#sidebar {
  position: sticky;
  top: var(--tm-nav-h);
  grid-column: 1;
  grid-row: 1 / span 2;
  max-height: calc(100vh - var(--tm-nav-h));
  overflow-y: auto;
  padding: 1.5rem .9rem 2.5rem 1.3rem !important;
  scrollbar-width: thin;
}

#sidebar #searchBar {
  width: 100% !important;
  margin: 0 0 1.25rem !important;
  padding-right: .5rem !important;
  box-shadow: var(--tm-raise);
}

#sidebar #searchBar:hover {
  box-shadow: var(--tm-raise-2);
}

#sidebar #searchBar::before {
  left: .7rem;
}

#sidebar #searchBar .search-query {
  height: 2.3rem !important;
  padding: 0 .5rem 0 2.25rem !important;
  font-size: var(--tm-small) !important;
  line-height: 2.3rem !important;
}

/* Help Scout's category list: the menu until the index arrives */
#sidebar h3 {
  margin: 1.5rem 0 .3rem !important;
  padding: 0 .7rem !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-small) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
}

#sidebar .nav-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#sidebar .nav-list > li {
  margin: 0 0 .1rem !important;
}

#sidebar .nav-list > li > a,
.tm-side-link {
  display: block !important;
  margin: 0 !important;
  padding: .36rem .7rem !important;
  border-radius: var(--tm-r-sm);
  background: none !important;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-small) !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-shadow: none !important;
  transition: color 150ms ease, background-color 150ms ease;
}

#sidebar .nav-list > li > a:hover,
.tm-side-link:hover {
  background: rgba(21, 18, 26, .04) !important;
  color: var(--tm-ink) !important;
}

#sidebar .nav-list > .active > a,
#sidebar .nav-list > .active > a:hover,
.tm-side-link.is-active,
.tm-side-link.is-active:hover {
  background: var(--tm-white) !important;
  box-shadow: var(--tm-raise);
  color: var(--tm-ink) !important;
  font-weight: 500 !important;
}

#sidebar .nav-list .icon-arrow {
  display: none !important;
}

body.tm-has-side-nav #sidebar > h3,
body.tm-has-side-nav #sidebar > .nav-list {
  display: none !important;
}

.tm-side-nav {
  display: flex;
  flex-direction: column;
}

.tm-side-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: 1.5rem;
}

.tm-side-label {
  padding: 0 .7rem;
  color: var(--tm-ink) !important;
  font-size: var(--tm-small);
  font-weight: 500;
}

.tm-side-label:hover,
.tm-side-label.is-active {
  color: var(--tm-plum) !important;
}

.tm-side-list {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tm-side-list > li {
  margin: 0 !important;
  line-height: inherit !important;
}

/* --------------------------------------------------------------------------
   Article header (script) — breadcrumb and title left, summary and facts right
   -------------------------------------------------------------------------- */

.tm-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  grid-column: 2 / -1;
  grid-row: 1;
  gap: 2rem 3.5rem;
  min-width: 0;
  padding: 3.5rem var(--tm-pad) 3rem 3rem;
  border-bottom: 1px solid var(--tm-line);
}

.tm-head-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.tm-head-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 31rem;
}

.tm-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 !important;
  color: var(--tm-ink-50);
  font-size: var(--tm-normal);
}

/* Help Scout colours every link inside .contentWrapper from its settings. */
.tm-crumb a,
.contentWrapper .tm-crumb a {
  color: inherit !important;
  transition: color 150ms ease;
}

.tm-crumb a:hover,
.contentWrapper .tm-crumb a:hover {
  color: var(--tm-ink) !important;
}

.tm-path-bar {
  display: flex;
  gap: .25rem;
}

.tm-path-seg {
  width: 1.8rem;
  height: .25rem;
  border-radius: 999px;
  background: var(--tm-line);
  transition: background-color 150ms ease;
}

.tm-path-seg:hover,
.tm-path-seg.is-done {
  background: var(--tm-plum-3);
}

.tm-path-seg.is-current {
  background: var(--tm-plum);
}

.tm-title,
#fullArticle .title,
#categoryHead h1,
#serp h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-title) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.tm-summary {
  margin: 0 !important;
  color: var(--tm-ink-70);
  font-size: var(--tm-large);
  letter-spacing: -.01em;
  line-height: 1.5;
  text-wrap: pretty;
}

.tm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.1rem;
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
}

.tm-copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .65rem .3rem .5rem;
  border: 0;
  border-radius: var(--tm-r-sm);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--tm-line);
  color: var(--tm-ink-70);
  font: inherit;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.tm-copy:hover {
  background: var(--tm-white);
  color: var(--tm-ink);
}

.tm-copy.is-copied {
  color: var(--tm-ok);
}

.tm-copy svg {
  width: .85rem;
  height: .85rem;
}

/* --------------------------------------------------------------------------
   Article text
   Scoped to #fullArticle: Help Scout reuses .contentWrapper on category and
   search pages.
   -------------------------------------------------------------------------- */

#fullArticle {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tm-ink-84) !important;
  font-family: inherit !important;
  font-size: var(--tm-medium) !important;
  line-height: 1.7 !important;
}

#fullArticle > * + * {
  margin-top: 1.15rem !important;
}

#fullArticle > :first-child {
  margin-top: 0 !important;
}

/* With the script blocked the title stays in the article. */
#fullArticle .title {
  margin-bottom: 1.75rem !important;
}

#fullArticle .printArticle,
#fullArticle .admin-edit {
  display: none !important;
}

#fullArticle p,
#fullArticle li,
#fullArticle ol,
#fullArticle ul,
#fullArticle dd,
#fullArticle div,
#fullArticle blockquote {
  color: var(--tm-ink-84) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Help Scout gives every block in an article its own bottom margin; spacing
   here comes from the gap between siblings instead. */
#fullArticle p,
#fullArticle div,
#fullArticle li,
#fullArticle ol,
#fullArticle ul,
#fullArticle dd,
#fullArticle table,
#fullArticle blockquote,
#fullArticle figure {
  margin-bottom: 0 !important;
}

#fullArticle p {
  text-wrap: pretty;
}

#fullArticle strong,
#fullArticle b {
  color: var(--tm-ink) !important;
  font-weight: 600 !important;
}

#fullArticle a,
#fullArticle a strong,
#fullArticle strong a {
  color: var(--tm-plum) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(69, 32, 83, .3) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

#fullArticle a:hover {
  text-decoration-color: var(--tm-plum) !important;
}

#fullArticle h2,
#fullArticle h3,
#fullArticle h4 {
  position: relative;
  margin-bottom: 0 !important;
  padding: 0;
  color: var(--tm-ink) !important;
  font-weight: 500 !important;
  scroll-margin-top: 6rem;
  text-wrap: balance;
}

/* h2 opens a small section: a hairline and its number in the margin */
#fullArticle h2 {
  margin-top: 3.75rem !important;
  padding-top: 1.6rem !important;
  border-top: 1px solid var(--tm-line);
  font-size: var(--tm-h3) !important;
  letter-spacing: -.03em !important;
  line-height: 1.12 !important;
}

#fullArticle h2[data-n]::before {
  content: attr(data-n);
  position: absolute;
  top: 2.15rem;
  right: calc(100% + 1.5rem);
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

#fullArticle h3 {
  margin-top: 2.4rem !important;
  font-size: var(--tm-h4) !important;
  letter-spacing: -.02em !important;
  line-height: 1.25 !important;
}

#fullArticle h4 {
  margin-top: 2rem !important;
  font-size: var(--tm-medium) !important;
  letter-spacing: -.01em !important;
  line-height: 1.35 !important;
}

/* Hovering a heading selects it the way the editor selects an element: a
   pink outline and a plum tag holding its anchor. */
.tm-h-text {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: var(--tm-r-xs);
  outline: 1.5px solid transparent;
  outline-offset: 5px;
  transition: outline-color 150ms ease;
}

#fullArticle h2:hover .tm-h-text,
#fullArticle h3:hover .tm-h-text,
.tm-h-text:focus-within {
  outline-color: var(--tm-pink);
}

#fullArticle a.tm-h-tag {
  position: absolute;
  bottom: calc(100% + 6.5px);
  left: -6.5px;
  padding: .12rem .55rem;
  border-radius: var(--tm-r-xs);
  background: var(--tm-plum);
  color: var(--tm-white) !important;
  font-size: var(--tm-tiny);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 3px, 0);
  transition: opacity 150ms ease, transform 150ms ease;
}

#fullArticle h2:hover .tm-h-tag,
#fullArticle h3:hover .tm-h-tag,
#fullArticle .tm-h-tag:focus-visible {
  opacity: 1;
  transform: none;
}

#fullArticle a.tm-h-tag.is-copied {
  background: var(--tm-ok);
}

#fullArticle code {
  padding: .12em .4em !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--tm-well) !important;
  box-shadow: var(--tm-press);
  color: var(--tm-plum) !important;
  font-family: var(--tm-mono) !important;
  font-size: .84em !important;
  white-space: normal;
}

#fullArticle hr {
  height: 1px !important;
  margin: 3rem 0 !important;
  border: 0 !important;
  background: var(--tm-line) !important;
}

#fullArticle blockquote {
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 0 0 0 1.1rem !important;
  border: 0 !important;
  border-left: 2px solid var(--tm-plum-3) !important;
  color: var(--tm-ink-70) !important;
  font-style: normal !important;
}

/* Bullets: the slanted mark */
#fullArticle ul {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#fullArticle ul > li {
  position: relative;
  margin: 0 !important;
  padding-left: 1.35rem !important;
}

#fullArticle ul > li + li {
  margin-top: .45rem !important;
}

#fullArticle ul > li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: .3rem;
  width: .4rem;
  height: .4rem;
  border-radius: 2px;
  background: var(--tm-plum-3);
  transform: skewX(-18deg);
}

/* Steps: numbers and hairlines, no circles */
#fullArticle ol {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--tm-line);
  list-style: none !important;
  counter-reset: tm-step;
}

#fullArticle ol > li {
  position: relative;
  margin: 0 !important;
  padding: .85rem 0 .85rem 3.25rem !important;
  border-top: 1px solid var(--tm-line);
  counter-increment: tm-step;
}

#fullArticle ol > li::before {
  content: counter(tm-step, decimal-leading-zero);
  position: absolute;
  top: 1.2rem;
  left: 0;
  color: var(--tm-plum);
  font-size: var(--tm-small);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#fullArticle ol > li > * + * {
  margin-top: .9rem !important;
}

#fullArticle ol > li.has-media {
  padding-bottom: 1.25rem !important;
}

/* Note and tip: label on the left, text on the right, hairlines */
#fullArticle .callout,
#fullArticle .callout-blue,
#fullArticle .callout-green,
#fullArticle .callout-yellow,
#fullArticle .callout-red {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  padding: 1.1rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--tm-line) !important;
  border-bottom: 1px solid var(--tm-line) !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
  line-height: 1.65 !important;
}

#fullArticle .tm-callout {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.25rem;
}

#fullArticle .tm-callout-label {
  align-self: start;
  margin-top: .2rem;
  color: var(--tm-ink);
  font-size: var(--tm-small);
  font-weight: 500;
}

#fullArticle .tm-callout-body,
#fullArticle .tm-callout-body p,
#fullArticle [class^="callout"] p {
  margin: 0 !important;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
  line-height: 1.65 !important;
}

#fullArticle .callout-yellow .tm-callout-body,
#fullArticle .callout-yellow .tm-callout-body p,
#fullArticle .callout-red .tm-callout-body,
#fullArticle .callout-red .tm-callout-body p {
  color: var(--tm-ink) !important;
}

/* Table: hairlines only */
.tm-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
  -webkit-overflow-scrolling: touch;
}

#fullArticle table {
  width: 100% !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: none !important;
  font-size: var(--tm-small) !important;
  line-height: 1.5 !important;
}

#fullArticle th {
  padding: .7rem 1rem .7rem 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-tiny) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 400 !important;
  text-align: left !important;
  white-space: nowrap;
}

#fullArticle td {
  padding: .7rem 1rem .7rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--tm-line) !important;
  background: none !important;
  color: var(--tm-ink-84) !important;
  font-size: var(--tm-small) !important;
  line-height: 1.5 !important;
  vertical-align: top !important;
}

#fullArticle td strong {
  font-weight: 500 !important;
}

/* Code block: the night plane, no glow */
#fullArticle pre {
  margin-bottom: 0 !important;
  padding: 1rem 1.25rem 1.3rem !important;
  overflow-x: auto;
  border: 0 !important;
  border-radius: var(--tm-r-lg) !important;
  background: var(--tm-night) !important;
  color: rgba(255, 255, 255, .88) !important;
  font-family: var(--tm-mono) !important;
  font-size: var(--tm-small) !important;
  line-height: 1.7 !important;
  tab-size: 2;
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
}

#fullArticle pre code {
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  white-space: inherit;
}

/* Help Scout sizes figures to their content, which lets a long line of code
   push the block past the column. */
#fullArticle .tm-code {
  width: auto !important;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  overflow: hidden;
  border-radius: var(--tm-r-lg);
  background: var(--tm-night);
}

#fullArticle .tm-code pre {
  margin: 0 !important;
  border-radius: 0 !important;
}

.tm-code-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.4rem;
  padding: .6rem .6rem 0 1rem;
}

.tm-code-title {
  overflow: hidden;
  padding: .15rem .6rem;
  border-radius: var(--tm-r-xs);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .72);
  font-family: var(--tm-mono);
  font-size: var(--tm-tiny);
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-code-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  padding: .3rem .65rem .3rem .55rem;
  border: 0;
  border-radius: var(--tm-r-sm);
  background: transparent;
  color: rgba(255, 255, 255, .55);
  font: inherit;
  font-size: var(--tm-tiny);
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.tm-code-copy:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--tm-white);
}

.tm-code-copy.is-copied {
  color: #5fd597;
}

.tm-code-copy svg {
  width: .85rem;
  height: .85rem;
}

/* --------------------------------------------------------------------------
   Screenshots and loops
   Without the script an image is a framed picture. With it, the picture sits
   on a plane one tone deeper than the canvas and the numbers are HTML over
   it; hovering a number or its legend row dims everything else.
   -------------------------------------------------------------------------- */

#fullArticle img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: .6rem solid var(--tm-white) !important;
  border-radius: var(--tm-r-xl) !important;
  box-shadow: var(--tm-raise);
}

#fullArticle .tm-shot {
  display: block !important;
  width: 100%;
  max-width: min(100%, calc(var(--shot-w, 100%) + 2rem));
  margin-right: 0;
  margin-left: 0;
  text-align: left !important;
}

.tm-shot-frame {
  padding: 1rem;
  border-radius: var(--tm-r-lg);
  background: #ebe9e9;
  box-shadow: inset 0 0 0 1px rgba(21, 18, 26, .04);
}

.tm-shot-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--tm-r-md);
  background: var(--tm-well);
  box-shadow: var(--tm-raise);
}

.tm-shot-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

#fullArticle img.tm-shot-media,
.tm-shot-media {
  display: block;
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tm-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tm-box {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--h);
  border-radius: 3px;
  background: rgba(246, 126, 227, .07);
  box-shadow: inset 0 0 0 1.5px var(--tm-pink), 0 0 0 4px rgba(246, 126, 227, .14);
  opacity: 0;
  transition: opacity .2s ease, box-shadow .25s ease;
}

.tm-shot.is-outlined .tm-box {
  opacity: 1;
}

.tm-mark.is-active .tm-box {
  box-shadow: inset 0 0 0 1.5px var(--tm-pink), 0 0 0 4px rgba(246, 126, 227, .14),
    0 0 0 200vmax rgba(13, 11, 17, .3);
  opacity: 1;
}

.tm-pin,
.tm-legend-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tm-plum);
  color: var(--tm-white);
  font-size: var(--tm-tiny);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}

.tm-pin {
  position: absolute;
  top: clamp(.85rem, var(--py), calc(100% - .85rem));
  left: clamp(.85rem, var(--px), calc(100% - .85rem));
  width: 1.375rem;
  height: 1.375rem;
  box-shadow: 0 0 0 2px var(--tm-white), var(--tm-shadow-ink);
  transform: translate(-50%, -50%);
  cursor: default;
  pointer-events: auto;
  transition: transform .2s ease, background-color .2s ease;
}

.tm-mark.is-active .tm-pin {
  background: var(--tm-ink);
  transform: translate(-50%, -50%) scale(1.12);
}

#fullArticle .tm-shot-foot {
  display: block;
  margin-top: .75rem !important;
  color: inherit;
  font-size: inherit;
  font-style: normal !important;
  text-align: left !important;
}

.tm-caption {
  display: block;
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
  line-height: 1.5;
}

#fullArticle ol.tm-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .15rem 1rem;
  margin: .5rem 0 0 !important;
  padding: 0 !important;
  border: 0;
  counter-reset: none;
}

#fullArticle .tm-caption + ol.tm-legend {
  margin-top: .75rem !important;
}

#fullArticle ol.tm-legend > li.tm-legend-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 0 -.5rem !important;
  padding: .45rem .5rem !important;
  border: 0;
  border-radius: var(--tm-r-sm);
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-small) !important;
  line-height: 1.45 !important;
  transition: background-color .2s ease;
}

#fullArticle ol.tm-legend > li.tm-legend-item::before {
  content: none;
}

#fullArticle ol.tm-legend > li.tm-legend-item.is-active {
  background: rgba(246, 126, 227, .14);
}

#fullArticle ol.tm-legend > li > * + * {
  margin-top: 0 !important;
}

#fullArticle .tm-legend-item strong {
  font-weight: 500 !important;
}

.tm-legend-n {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: .05rem;
}

.tm-legend-text {
  font-size: inherit;
}

/* Loop: plays muted while on screen; the button stops it */
.tm-clip-toggle {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--tm-r-md);
  background: var(--tm-white);
  box-shadow: var(--tm-raise);
  color: var(--tm-ink);
  cursor: pointer;
}

.tm-clip-toggle svg {
  width: 1rem;
  height: 1rem;
}

.tm-clip-pause,
.tm-shot.is-playing .tm-clip-play {
  display: none;
}

.tm-shot.is-playing .tm-clip-pause {
  display: block;
}

/* Enlarged screenshot: the same layer of numbers across the window */
.tm-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 3rem;
  border: 0;
  background: rgba(13, 11, 17, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tm-lightbox[open] {
  display: grid;
  place-items: center;
}

.tm-lightbox::backdrop {
  background: none;
}

.tm-lightbox-body {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tm-lightbox .tm-shot-stage {
  width: min(100%, calc((100vh - 6rem) * var(--tm-ratio, 1.6)));
  box-shadow: var(--tm-volume);
  pointer-events: auto;
}

.tm-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--tm-r-md);
  background: var(--tm-white);
  box-shadow: var(--tm-raise);
  color: var(--tm-ink);
  cursor: pointer;
}

.tm-lightbox-close svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Under the article: next step, pager, feedback
   -------------------------------------------------------------------------- */

.tm-next {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 3.5rem;
  padding: 2.25rem;
  border-radius: var(--tm-r-lg);
  background: var(--tm-night);
  color: var(--tm-white) !important;
  transition: background-color 200ms ease;
}

.tm-next:hover {
  background: var(--tm-night-2);
}

.tm-next-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255, 255, 255, .55);
  font-size: var(--tm-small);
  font-weight: 500;
}

.tm-next-title {
  color: var(--tm-white);
  font-size: var(--tm-h3);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.tm-next-sub {
  color: rgba(255, 255, 255, .62);
  font-size: var(--tm-normal);
}

.tm-next .tm-button {
  margin-top: .9rem;
}

.tm-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tm-line);
}

.tm-pager-link {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.tm-pager-link.is-next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

.tm-pager-dir {
  color: var(--tm-ink-50);
  font-size: var(--tm-tiny);
}

.tm-pager-title {
  color: var(--tm-ink);
  font-size: var(--tm-h4);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
  transition: color 150ms ease;
}

.tm-pager-link:hover .tm-pager-title {
  color: var(--tm-plum);
}

/* Help Scout's rating, as the quiet row the site has */
.articleRatings {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .75rem;
  min-height: 0 !important;
  margin: 2.5rem 0 0 !important;
  padding: 1.25rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--tm-line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
}

.articleRatings-question {
  margin: 0 !important;
}

.articleRatings-actions {
  display: flex;
  gap: .4rem;
}

.articleRatings .rateAction {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--tm-r-sm) !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px var(--tm-line) !important;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.articleRatings .rateAction:hover {
  background: var(--tm-white) !important;
}

/* Help Scout's faces have no viewBox, so they keep their drawn size. */
.articleRatings .rateAction svg {
  display: block;
  width: 24px;
  height: 24px;
}

.articleRatings .rateAction path {
  fill: var(--tm-ink-70) !important;
}

.articleRatings .rating-face {
  display: inline-grid;
  place-items: center;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.articleFoot {
  margin: 1.25rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
}

.articleFoot p,
.articleFoot time {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* The date already sits in the header. */
body.tm-has-head .articleFoot .lu {
  display: none !important;
}

.related {
  margin: 2.5rem 0 0 !important;
  padding: 1.25rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--tm-line) !important;
  background: none !important;
}

.related h3 {
  margin: 0 0 .5rem !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
  font-weight: 400 !important;
}

.related ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.related li a {
  display: inline-flex;
  padding: .3rem 0;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
}

.related li a:hover {
  color: var(--tm-ink) !important;
}

.related [class^="icon-"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   On this page (script)
   -------------------------------------------------------------------------- */

.tm-aside {
  display: none;
}

body.tm-has-toc .tm-aside {
  position: sticky;
  top: calc(var(--tm-nav-h) + 1.5rem);
  display: block;
  grid-column: 3;
  grid-row: 2;
  padding: 3rem var(--tm-pad) 2rem 0;
}

.tm-toc {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.tm-toc-label {
  color: var(--tm-ink-50);
  font-size: var(--tm-tiny);
}

.tm-toc-list {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: .9rem;
  border-left: 1px solid var(--tm-line);
}

.tm-toc-marker {
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 1.6rem;
  background: var(--tm-plum);
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), height 300ms ease;
}

.tm-toc-link {
  padding: .28rem 0;
  color: var(--tm-ink-50);
  font-size: var(--tm-small);
  line-height: 1.35;
  transition: color 150ms ease;
}

.tm-toc-link:hover {
  color: var(--tm-ink-70);
}

.tm-toc-link.is-active {
  color: var(--tm-ink);
}

.tm-toc-link.is-sub {
  padding-left: 1.75rem;
  font-size: var(--tm-tiny);
}

.tm-toc-n {
  display: inline-block;
  width: 1.75rem;
  color: var(--tm-ink-50);
  font-size: var(--tm-tiny);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Category and search pages
   -------------------------------------------------------------------------- */

#categoryHead,
#serp > h1 {
  margin: 0 0 2rem !important;
  padding: 0 !important;
  border: 0 !important;
}

#categoryHead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

#categoryHead .descrip {
  margin: 0 !important;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-large) !important;
  letter-spacing: -.01em;
  line-height: 1.5 !important;
}

#categoryHead .descrip:empty,
#categoryHead .sort {
  display: none !important;
}

#serp h1 strong {
  color: var(--tm-ink-50) !important;
  font-weight: 500 !important;
}

#serp .articlesFound {
  margin: 0 0 1rem !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
}

.articleList {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--tm-line);
  font-size: var(--tm-normal) !important;
  list-style: none !important;
}

.articleList > li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--tm-line);
}

.articleList > li > a {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 !important;
  padding: 1rem 0 !important;
  color: var(--tm-ink) !important;
  font-size: var(--tm-medium) !important;
  font-weight: 500 !important;
  letter-spacing: -.01em;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: color 150ms ease;
}

.articleList > li > a:hover,
.articleList > li > a:hover span {
  color: var(--tm-plum) !important;
  text-decoration: none !important;
}

.articleList [class^="icon-"] {
  display: none !important;
}

.tm-row-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.tm-row-lead {
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.articleList > li > a:hover .tm-row-lead {
  color: var(--tm-ink-70) !important;
}

.tm-row-meta {
  flex: none;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
}

/* Search results carry an excerpt under the link. */
#serp .articleList > li > a {
  padding-bottom: .25rem !important;
}

#serp .articleList > li > p {
  margin: 0 !important;
  padding: 0 0 1rem !important;
  color: var(--tm-ink-70) !important;
  font-size: var(--tm-normal) !important;
  line-height: 1.5 !important;
}

#noResults {
  padding: 3rem var(--tm-pad);
  color: var(--tm-ink-50);
  font-size: var(--tm-normal);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

#contentArea > footer,
footer.center {
  margin: 0 !important;
  padding: 1.5rem var(--tm-pad) !important;
  border-top: 1px solid var(--tm-line) !important;
  color: var(--tm-ink-50) !important;
  font-size: var(--tm-small) !important;
  text-align: left !important;
}

footer p {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

footer a {
  color: var(--tm-ink-70) !important;
  transition: color 150ms ease;
}

footer a:hover {
  color: var(--tm-ink) !important;
}

.tm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.tm-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  :root {
    --tm-h1: 3.6rem;
    --tm-h2: 2.8rem;
    --tm-outer: 1.5rem;
  }

  /* No room for the third column: the ToC goes, the content takes its place. */
  #contentArea > .row-fluid {
    grid-template-columns: var(--tm-side) minmax(0, 1fr);
  }

  body.tm-has-toc .tm-aside {
    display: none;
  }

  #main-content,
  body.tm-has-toc #main-content {
    grid-column: 2;
  }

  .tm-head {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 991px) {
  :root {
    --tm-pad: 1.5rem;
    --tm-nav-h: 4rem;
  }

  .tm-nav-links {
    display: none;
  }

  .navbar .brand {
    margin-right: auto !important;
  }

  /* One column: header, article, then the menu. */
  #contentArea > .row-fluid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: none;
  }

  .tm-head {
    order: 1;
    padding: 2.5rem var(--tm-pad) 2rem;
  }

  #main-content {
    order: 2;
    padding: 2rem var(--tm-pad) 3rem !important;
  }

  #sidebar {
    position: static;
    order: 3;
    max-height: none;
    padding: 1.5rem calc(var(--tm-pad) - .7rem) 2rem !important;
    border-top: 1px solid var(--tm-line);
  }

  #fullArticle h2[data-n]::before {
    display: none;
  }

  .tm-sec-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 3.5rem var(--tm-pad) 2.25rem;
  }

  .tm-steps-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-steps-row > li {
    border-bottom: 1px solid var(--tm-line);
  }

  .tm-steps-row > li + li {
    border-left: 0;
  }

  .tm-steps-row > li:nth-child(even) {
    border-left: 1px solid var(--tm-line);
  }

  .tm-start-actions {
    border-top: 0;
  }

  .tm-chapter {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-chapter-title {
    padding-bottom: 0 !important;
  }

  .tm-chapter-links {
    padding-left: var(--tm-pad) !important;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --tm-h1: 2.5rem;
    --tm-h2: 2.1rem;
    --tm-h3: 1.7rem;
    --tm-title: 2.1rem;
    --tm-large: 1.1rem;
    --tm-outer: 0rem;
    --tm-pad: 1.25rem;
  }

  /* Help Scout pads the body and pulls its sections back out with negative
     margins at this width; both are undone above and here. */
  .navbar,
  #docsSearch,
  #main-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .container-fluid,
  #docsSearch {
    width: 100% !important;
    border-right: 0;
    border-left: 0;
  }

  .navbar .navbar-inner .container-fluid {
    padding: 0 var(--tm-pad) !important;
  }

  .tm-nav-actions .tm-nav-link {
    display: none !important;
  }

  #docsSearch {
    padding-top: 3rem !important;
    padding-bottom: 2.5rem !important;
  }

  .tm-stage {
    padding: 2rem var(--tm-pad) 1.5rem;
  }

  .tm-steps-row,
  .tm-chapter-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-steps-row > li:nth-child(even) {
    border-left: 0;
  }

  #fullArticle .tm-callout {
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
  }

  #fullArticle ol > li {
    padding-left: 2.25rem !important;
  }

  .tm-shot-frame {
    padding: .5rem;
  }

  .tm-next {
    padding: 1.5rem;
  }

  .tm-pager {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .tm-pager-link.is-next {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
  }

  .tm-lightbox {
    padding: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Motion, print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body *,
  body *::before,
  body *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .navbar,
  #sidebar,
  .tm-aside,
  .tm-next,
  .tm-pager,
  .articleRatings,
  .tm-copy,
  .tm-clip-toggle,
  footer {
    display: none !important;
  }

  #contentArea > .row-fluid {
    display: block;
    background: none;
  }

  .container-fluid {
    width: 100% !important;
    border: 0;
  }
}
