:root {
  --th-bg: #101214;
  --th-surface: #191c20;
  --th-raised: #22262c;
  --th-border: #30353d;
  --th-divider: #262a30;
  --th-text: #f3f5f7;
  --th-soft: #c6ccd4;
  --th-muted: #a1aab6;
  --th-search-icon: #858f9d;
  --th-blue: #8bb5ff;
  --th-tint: rgb(139 181 255 / 9%);
  --th-tint-edge: rgb(139 181 255 / 14%);
  --th-selected: #1c293c;
  --th-action: #245bd6;
  --th-action-hover: #3068e5;
  --th-focus: #a4c5ff;
  --th-width: 68rem;
  --th-gutter: clamp(1rem, 4vw, 3rem);
  --th-font: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Preserve the original variable names for any existing site customizations. */
  --background: var(--th-bg);
  --surface: var(--th-surface);
  --accent-background: var(--th-surface);
  --accent-background-hover: var(--th-raised);
  --border: var(--th-border);
  --border-hover: #648ac4;
  --text: var(--th-text);
  --text-soft: var(--th-soft);
  --text-muted: var(--th-muted);
  --subheadline: var(--th-soft);
  --link: var(--th-soft);
  --link-hover: var(--th-text);
  --accent: var(--th-action);
  --accent-hover: var(--th-action-hover);
  --accent-light: var(--th-blue);
  --icon-accent: var(--th-blue);
}

html {
  background: var(--th-bg);
  color-scheme: dark;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  /* A faint glow behind the header gives the dark page some depth. */
  background: radial-gradient(64rem 32rem at 50% -10rem, rgb(36 91 214 / 20%), transparent 70%) no-repeat,
    var(--th-bg);
  color: var(--th-text);
  font-family: var(--th-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgb(139 181 255 / 30%); color: var(--th-text); }

a { color: var(--link); font-weight: 400; }
a:hover { color: var(--link-hover); }

/* Preserve hidden update dates and hide the complete print link. */
time.lu, #fullArticle .printArticle, .icon-print { display: none; }

.collection a,
.contentWrapper a,
.most-pop-articles .popArticles a,
.most-pop-articles .popArticles a:hover span { color: var(--link); }

.nav-list .nav-header, .nav-list > li > a { text-shadow: none; }
.icon-arrow::before { color: var(--th-blue); }
.contentWrapper p.descrip { color: var(--th-soft); }
#serp p { color: var(--th-soft); }

.main-subheading {
  margin: 1rem 0 0;
  color: var(--th-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

#mainNav, #docsSearch, #contentArea,
#mainNav *, #docsSearch *, #contentArea * {
  box-sizing: border-box;
}

#mainNav a, #contentArea a {
  transition: color 160ms ease, background-color 160ms ease,
    border-color 160ms ease, transform 160ms ease;
}

#mainNav a:focus-visible,
#contentArea a:focus-visible,
#contentArea select:focus-visible,
#searchBar button:focus-visible {
  outline: 2px solid var(--th-focus) !important;
  outline-offset: 4px;
}

/* Header: keep both navigation links available at every screen size. */
#mainNav.navbar { margin: 0; }

/* Transparent so the page glow continues behind the header without a seam. */
#mainNav .navbar-inner {
  padding: 0 var(--th-gutter) !important;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

#mainNav .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  max-width: var(--th-width);
  min-height: 5.5rem;
  margin: 0 auto;
  padding: .75rem 0;
}

#mainNav .container-fluid::before,
#mainNav .container-fluid::after { content: none; }

#mainNav .brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  float: none;
  margin: 0;
  padding: .5rem 0 !important;
}

#mainNav .brand img { width: auto; height: 2rem; max-width: 100%; }
#mainNav .nav .active .caret { display: none; }
#mainNav .btn-navbar, #mainNav #contactMobile { display: none !important; }
#mainNav #contact { display: block; }

#mainNav .nav-collapse {
  display: block;
  height: auto !important;
  overflow: visible !important;
  clear: none;
  transform: none;
}

#mainNav .nav {
  position: static;
  display: flex;
  align-items: center;
  gap: .5rem;
  float: none;
  margin: 0;
}

#mainNav .nav > li { float: none; margin: 0; }

#mainNav .nav > li > a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0;
  padding: .5rem .875rem !important;
  border-radius: .5rem;
  color: var(--th-muted) !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  line-height: 1.4;
  text-shadow: none;
  box-shadow: none;
}

#mainNav .nav > .active > a,
#mainNav .nav > li > a:hover,
#mainNav .nav > li > a:focus-visible {
  color: var(--th-text) !important;
  background: var(--th-surface);
}

#mainNav #contact > a { border: 0; }

/* Home: a clear heading and a single, spacious search control. */
#docsSearch {
  width: calc(100% - var(--th-gutter) * 2);
  max-width: var(--th-width);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5rem) 0 2.75rem;
  border: 0;
  background: transparent;
}

#docsSearch h1 {
  margin: 0 0 2rem;
  padding: 0;
  color: var(--th-text);
  font-family: var(--th-font);
  font-size: clamp(2.25rem, 4.3vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.055em;
  text-align: left;
  text-wrap: balance;
}

#searchBar,
#sidebar #searchBar.sm {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin: 0;
  padding: .5rem;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: .875rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#searchBar:focus-within {
  border-color: var(--th-focus);
  box-shadow: 0 0 0 3px rgb(139 181 255 / 14%);
}

#searchBar input.search-query,
#sidebar #searchBar input.search-query {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 3rem;
  margin: 0;
  padding: .625rem .75rem !important;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  color: var(--th-text);
  font-family: var(--th-font);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: none;
}

/* The enclosing form supplies the visible focus indicator. */
#searchBar input.search-query:focus,
#sidebar #searchBar input.search-query:focus:invalid {
  outline: none !important;
  border: 0;
  box-shadow: none;
}

#searchBar input.search-query::placeholder { color: var(--th-muted); opacity: 1; }
#searchBar button .icon-search { color: var(--th-search-icon); }

#searchBar button,
#sidebar #searchBar.sm button {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: .5rem;
  background: var(--th-action);
  color: #fff;
  font-family: var(--th-font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  text-shadow: none;
  box-shadow: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

#searchBar button:hover { background: var(--th-action-hover); }
#searchBar button:active { transform: translateY(1px); }

/* Avoid overriding Help Scout's .sr-only accessible button labels. */
#docsSearch #searchBar button span:not(.sr-only) {
  width: auto;
  font-size: .9375rem;
  text-indent: 0;
}

#docsSearch #searchBar button .icon-search { display: none; }

/* A leading magnifier marks the home search field while the button keeps its label. */
#docsSearch #searchBar::before {
  content: "";
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: .75rem;
  background: var(--th-search-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

#docsSearch #searchBar input.search-query { padding-left: .25rem !important; font-size: 1.0625rem; }

#searchBar #serp-dd,
#searchBar #serp-dd.sb {
  top: calc(100% + .5rem);
  left: 0;
  width: 100%;
  z-index: 20;
  overflow: hidden;
  padding: .375rem;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: .75rem;
  box-shadow: 0 1rem 3rem rgb(5 8 12 / 35%);
}

#serp-dd .result {
  max-height: min(24rem, 55vh);
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--th-border) transparent;
}

#serp-dd .result > li { border-radius: .5rem; }
#serp-dd .result > li:first-child, #serp-dd .result > li:last-child { margin: 0; }
#serp-dd .result a { padding: .75rem .875rem; border-radius: .5rem; color: var(--th-text); line-height: 1.5; }

/* Override Help Scout's low-contrast blue hover text. */
#serp-dd .result a:hover,
#serp-dd .result > li.active { color: var(--th-text); background: var(--th-raised); }
#serp-dd .noResults { padding: .75rem .875rem; color: var(--th-muted); }

/* Topics: compact horizontal cards that become a balanced grid of tiles on wide screens. */
#contentArea.container-fluid {
  width: calc(100% - var(--th-gutter) * 2);
  max-width: var(--th-width);
  margin: 0 auto;
  padding: 0;
}

#contentArea .category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(7rem, 1fr);
  gap: 1rem;
  margin: 0;
  text-align: left !important;
}

#contentArea .category-list .category {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-content: center;
  width: auto;
  height: auto;
  min-height: 7rem;
  margin: 0 !important;
  padding: 1.25rem 2.75rem 1.25rem 1.5rem;
  background: var(--th-surface);
  border: 1px solid transparent;
  border-radius: 1rem;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

/* In the two-column layout, an odd last card spans the full row. */
@media (width <= 60rem) {
  #contentArea .category-list .category:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

#contentArea .category-list .category > i {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border-radius: .875rem;
  background: var(--th-tint);
  box-shadow: inset 0 0 0 1px var(--th-tint-edge);
  color: var(--th-blue);
  font-size: 1.375rem;
  line-height: 1;
  transition: background-color 160ms ease;
}

#contentArea .category-list .category h3 {
  grid-column: 2;
  margin: 0 0 .375rem;
  color: var(--th-text);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

#contentArea .category-list .category p {
  grid-column: 2;
  margin: 0;
  padding: 0;
  color: var(--th-muted) !important;
  font-size: .9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-count,
#contentArea .category-list .category .article-count { display: none; }

/* Decorative chevron; adds no text to the link's accessible name. */
#contentArea .category-list .category::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  width: .375rem;
  height: .375rem;
  border-top: 1.5px solid var(--th-muted);
  border-right: 1.5px solid var(--th-muted);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
  #contentArea .category-list .category:hover {
    background: var(--th-raised);
    border-color: #4d5e77;
    transform: translateY(-2px);
  }
  #contentArea .category-list .category:hover > i { background: rgb(139 181 255 / 15%); }
  #contentArea .category-list .category:hover::after {
    border-color: var(--th-blue);
    transform: translate(3px, -50%) rotate(45deg);
  }
}

#contentArea .category-list .category:active { transform: translateY(0); }

/* Wide screens: three tiles per row, with a short last row split evenly instead of one lone card. */
@media (width > 60rem) {
  #contentArea .category-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  #contentArea .category-list .category {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    padding: 1.5rem 1.5rem 1.75rem;
  }

  /* Two leftover cards share the last row; one leftover card pairs with the card before it. */
  #contentArea .category-list .category:first-child:nth-last-child(2),
  #contentArea .category-list .category:first-child:nth-last-child(3n + 2) ~ .category:nth-last-child(-n + 2),
  #contentArea .category-list .category:first-child:nth-last-child(4),
  #contentArea .category-list .category:first-child:nth-last-child(3n + 4) ~ .category:nth-last-child(-n + 4) {
    grid-column: span 3;
  }

  #contentArea .category-list .category:only-child { grid-column: 1 / -1; }
  #contentArea .category-list .category > i { grid-row: auto; margin-bottom: 1.5rem; }
  #contentArea .category-list .category :is(h3, p) { grid-column: 1; }

  /* Align the chevron with the center of the icon tile. */
  #contentArea .category-list .category::after { top: 3rem; }
}

/* Category, search, and article pages share one readable content grid. */
#contentArea > .row-fluid {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  grid-template-areas: "sidebar content";
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3.5rem;
}

#contentArea #main-content { grid-area: content; }
#contentArea #sidebar { grid-area: sidebar; }

#contentArea > .row-fluid::before,
#contentArea > .row-fluid::after { content: none; }

#contentArea #main-content,
#contentArea #sidebar {
  float: none;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Keep search and categories in view beside long articles. */
@media (width > 44rem) and (min-height: 36rem) {
  #contentArea #sidebar { position: sticky; top: 1.5rem; }
}

#contentArea .contentWrapper {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--th-text);
}

#categoryHead { margin-bottom: 1.75rem; }
#categoryHead h1, #fullArticle .title, #serp h1 {
  margin: 0 0 1rem;
  color: var(--th-text);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

#categoryHead .descrip { margin-bottom: 1.25rem; color: var(--th-muted); }
#categoryHead .sort { position: static; margin: 1.25rem 0 0; }
#categoryHead .sort form { margin: 0; }
#categoryHead .sort select {
  width: auto;
  max-width: 100%;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 1px solid var(--th-border);
  border-radius: .5rem;
  background: var(--th-surface);
  color: var(--th-soft);
  font: inherit;
  font-size: .8125rem;
}

/* Article lists share one card; dividers hide beside the hovered row. */
#contentArea .articleList {
  margin: 0 0 2rem;
  padding: .375rem;
  list-style: none;
  background: var(--th-surface);
  border-radius: 1rem;
}

#contentArea .articleList > li {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: .625rem;
}

/* Inset dividers drawn apart from the rounded rows, so their ends stay straight. */
#contentArea .articleList > li + li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  border-top: 1px solid var(--th-divider);
}

#contentArea .articleList > li:hover::before,
#contentArea .articleList > li:hover + li::before { border-top-color: transparent; }

#contentArea .articleList > li > a {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .875rem 1rem;
  color: var(--th-soft);
  font-size: 1rem;
  line-height: 1.6;
  border-radius: .625rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#contentArea .articleList > li > a:hover { color: var(--th-text); background: var(--th-raised); }
#contentArea .articleList a:hover span { text-decoration: none; }
#contentArea .articleList .icon-article-doc { flex: 0 0 auto; margin: 0; }
#contentArea .articleList .icon-article-doc::before { margin: 0; color: var(--th-muted); }
#contentArea .articleList > li > a:hover .icon-article-doc::before { color: var(--th-blue); }

/* Category lists end each row with the same chevron as the topic cards. */
#contentArea .contentWrapper > .articleList > li > a { padding-right: 2.75rem; }
#contentArea .contentWrapper > .articleList > li > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: .375rem;
  height: .375rem;
  border-top: 1.5px solid var(--th-muted);
  border-right: 1.5px solid var(--th-muted);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
  #contentArea .contentWrapper > .articleList > li > a:hover::after {
    border-color: var(--th-blue);
    transform: translate(3px, -50%) rotate(45deg);
  }
}

/* Search results: a bold title over a muted excerpt, with the whole result clickable. */
#serp h1 strong { color: var(--th-blue); font-weight: inherit; }
#serp .articlesFound { margin: 0 0 1.5rem; font-size: .875rem; }
#serp .articlesFound, #serp .nada { color: var(--th-muted); }
#serp .articleList > li:hover { background: var(--th-raised); }

#serp .articleList > li > a {
  padding: 1rem 1rem .25rem;
  color: var(--th-text);
  font-size: 1.0625rem;
  font-weight: 600;
}

#serp .articleList > li > a:hover { background: transparent; }

#serp .articleList > li > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Draw the keyboard focus ring around the whole result rather than the title. */
#serp .articleList > li > a:focus-visible { outline: none !important; }
#serp .articleList > li > a:focus-visible::after { outline: 2px solid var(--th-focus); outline-offset: 2px; }

#serp .articleList > li > p {
  margin: 0;
  padding: 0 1rem 1rem 2.625rem;
  color: var(--th-muted);
  font-size: .9375rem;
  line-height: 1.6;
}

#sidebar #searchBar.sm { gap: .25rem; margin-bottom: 2rem; padding: .25rem; }
#sidebar #searchBar.sm button { min-width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; }
#sidebar #searchBar.sm button:hover { background: var(--th-raised); }
#sidebar #searchBar.sm button .icon-search { margin: 0; color: var(--th-search-icon); }
#sidebar #searchBar input.search-query { height: 2.75rem; }

#sidebar h3 {
  margin: 0 0 .75rem;
  color: var(--th-muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
}

#sidebar .nav-list { margin: 0; padding: 0; }
#sidebar .nav-list li { margin: .25rem 0; }

/* The active category's arrow sits at the row's end rather than after its label. */
#sidebar .nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0;
  padding: .75rem;
  border-radius: .5rem;
  color: var(--th-muted);
  font-size: .875rem;
  line-height: 1.5;
}

#sidebar .nav-list li:not(.active) a:hover { background: var(--th-surface); }
#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  color: var(--th-blue) !important;
  background: var(--th-selected);
  font-weight: 600;
}

/* Apply hover and focus colors only to inactive categories. */
#sidebar .nav-list li:not(.active) a:hover,
#sidebar .nav-list li:not(.active) a:focus-visible {
  color: #fff !important;
}

#sidebar .nav-list li:not(.active) a:is(:hover, :focus-visible) .icon-arrow::before {
  color: #fff;
}

#fullArticle {
  max-width: 68ch;
  color: var(--th-soft);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li,
#fullArticle div, #fullArticle blockquote, #fullArticle dd, #fullArticle table {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#fullArticle p { margin: 0 0 1.25rem; }
#fullArticle .title { margin-bottom: 1.75rem; }
#fullArticle h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; line-height: 1.35; letter-spacing: -.025em; }
#fullArticle h3 { margin: 2rem 0 .75rem; font-size: 1.1875rem; line-height: 1.4; }
#fullArticle h4, #fullArticle h5 { margin: 1.5rem 0 .75rem; }
#fullArticle :is(h1, h2, h3, h4, h5) { color: var(--th-text); font-weight: 600; scroll-margin-top: 1.5rem; }
#fullArticle ul, #fullArticle ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
#fullArticle li { margin-bottom: .5rem; }
#fullArticle li > ul, #fullArticle li > ol { margin: .5rem 0; }
#fullArticle ul > li::marker { color: var(--th-blue); }

/* Numbered steps: circled counters replace numerals; the zero-width marker keeps list semantics in Safari. */
#fullArticle ol { padding-left: 0; list-style: "\200B"; counter-reset: th-step; }
#fullArticle ol > li { position: relative; padding-left: 2.375rem; counter-increment: th-step; }

/* The offset centers the circle on the first line of 16px text at a 1.8 line height. */
#fullArticle ol > li::before {
  content: counter(th-step);
  content: counter(th-step) / "";
  position: absolute;
  top: .15rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgb(139 181 255 / 13%);
  color: var(--th-blue);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Nested ordered lists keep lettered markers. */
#fullArticle li > ol { padding-left: 1.5rem; list-style: lower-alpha; }
#fullArticle li > ol > li { padding-left: 0; }
#fullArticle li > ol > li::before { content: none; }

#fullArticle strong, #fullArticle b { margin: 0; color: var(--th-text); font-weight: 600; }

#fullArticle a, #fullArticle a strong, #fullArticle strong a {
  color: var(--th-blue) !important;
  font-weight: 600;
  border-bottom: 0 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

#fullArticle a:hover { color: var(--th-text) !important; border-bottom: 0 !important; }
#fullArticle blockquote { margin: 1.75rem 0; padding: .5rem 1.25rem; border-left: 3px solid var(--th-blue); }
#fullArticle img, #fullArticle video { max-width: 100%; height: auto; border-radius: .75rem; }

/* Replace Help Scout's light image frame and italic captions with dark-theme equivalents. */
#fullArticle img { padding: 0; border: 1px solid var(--th-border); }
#fullArticle figure { max-width: 100%; margin: 1.75rem 0; }
#fullArticle figure img { margin: 0; }

#fullArticle figcaption {
  margin-top: .625rem;
  color: var(--th-muted);
  font-size: .8125rem;
  font-style: normal;
  line-height: 1.5;
}

#fullArticle iframe { max-width: 100%; }
#fullArticle code, #fullArticle pre { border: 1px solid var(--th-border); background: var(--th-surface); color: #d9e7ff; font-size: .875em; }
#fullArticle code { padding: .125rem .375rem; border-radius: .25rem; }
#fullArticle pre { padding: 1rem 1.25rem; overflow-x: auto; border-radius: .75rem; white-space: pre; overflow-wrap: normal; }
#fullArticle pre code { padding: 0; border: 0; background: transparent; font-size: inherit; white-space: inherit; }
#fullArticle table { display: block; max-width: 100%; overflow-x: auto; }
#fullArticle th, #fullArticle td { padding: .75rem; border-color: var(--th-border); }
#fullArticle th { color: var(--th-text); background: var(--th-surface); }
#fullArticle hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--th-border); }

/* Complete dark callout styles, including their semantic text colors. */
#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) {
  margin: 1.5rem 0;
  padding: 1.25rem !important;
  border: 1px solid var(--th-border);
  border-radius: .75rem;
  font-size: .9375rem;
  line-height: 1.7;
}
#fullArticle .callout, #fullArticle .private-note {
  background: #25292f;
  border-color: #525b68;
  color: var(--th-text);
}
#fullArticle .callout-yellow {
  background: #2a2415;
  border-color: #83652f;
  color: #f3dfb8;
}
#fullArticle .callout-blue {
  background: #121f33;
  border-color: #2f5ea8;
  color: #d0e2ff;
}
#fullArticle .callout-red {
  background: #421b25;
  border-color: #ba4a60;
  color: #ffc7d0;
}
#fullArticle .callout-green {
  background: #13261b;
  border-color: #327a55;
  color: #cbf5df;
}
/* Help Scout shrinks callout text to 14px; keep it close to the body size. */
#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) :is(p, li) {
  color: inherit;
  font-size: inherit;
}

#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) > :last-child { margin-bottom: 0; }

/* List markers inside callouts follow the callout's own color. */
#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) ul > li::marker { color: inherit; }
#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) ol > li::before {
  top: .05rem;
  background: color-mix(in srgb, currentColor 16%, transparent);
  color: inherit;
}

/* The contact prompt becomes a card, so its icon and text stay on one row at every width. */
#contentArea .articleFoot {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 68ch;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background: var(--th-surface);
}
#contentArea .articleFoot p, #contentArea .articleFoot time {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
}
#contentArea .articleFoot i, #contentArea .articleFoot time { color: var(--th-muted); }

#contentArea .articleFoot .icon-contact {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background: var(--th-tint);
  box-shadow: inset 0 0 0 1px var(--th-tint-edge);
  color: var(--th-blue);
}

#contentArea .articleFoot .icon-contact::before { margin: 0; }
#contentArea .articleFoot .help { margin: 0; color: var(--th-soft); font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; }

/* Remove Help Scout's dotted border, which doubled the underline. */
#contentArea #sbContact, #contentArea #sbContactMobile {
  border-bottom: 0;
  color: var(--th-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#contentArea #sbContact:hover, #contentArea #sbContactMobile:hover { color: var(--th-text); }

/* Pagination: separate rounded buttons sized for touch. */
#contentArea .pagination ul { display: flex; flex-wrap: wrap; gap: .375rem; box-shadow: none; }
#contentArea .pagination ul > li > a,
#contentArea .pagination ul > li > span {
  display: grid;
  place-items: center;
  float: none;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 .75rem;
  border: 1px solid var(--th-border);
  border-radius: .625rem;
  background: var(--th-surface);
  color: var(--th-soft);
  line-height: 1;
  text-align: center;
}
#contentArea .pagination ul > .active > a,
#contentArea .pagination ul > .active > span,
#contentArea .pagination ul > li > a:hover { background: var(--th-selected); border-color: #2f5ea8; color: var(--th-blue); }

#contentArea footer {
  margin: 3rem 0 0;
  padding: 1.5rem 0 5rem;
  border: 0;
}
#contentArea footer p { margin: 0; color: var(--th-muted); font-size: .75rem; line-height: 1.7; text-align: center; }

/* Responsive layout: no fixed card heights or clipped translated headings. */
@media (max-width: 56rem) {
  #contentArea > .row-fluid { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
  #contentArea .category-list .category { padding-left: 1.25rem; column-gap: .75rem; }
}

@media (max-width: 44rem) {
  #mainNav .container-fluid { min-height: 4.5rem; gap: .5rem; }
  #mainNav .brand img { height: 1.625rem; }
  #mainNav .nav { gap: .125rem; }
  #mainNav .nav > li > a { padding: .5rem .625rem !important; font-size: .75rem !important; }
  #docsSearch { padding: 2.5rem 0 1.75rem; }
  #docsSearch h1 { max-width: 19ch; margin-bottom: 1.5rem; }
  #searchBar { padding: .375rem; gap: .25rem; }
  #searchBar button { padding: 0 1rem; }
  #contentArea .category-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(5.5rem, 1fr); gap: .75rem; }
  #contentArea .category-list .category { min-height: 5.5rem; padding: 1rem 2.5rem 1rem 1rem; }
  #contentArea .category-list .category::after { right: 1.25rem; }
  #contentArea .articleFoot { padding: 1rem; }
  #contentArea > .row-fluid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "sidebar"; margin-top: 2rem; }
  #contentArea #sidebar { padding-top: 2rem; border-top: 1px solid var(--th-border); }
  #sidebar .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
  #contentArea footer { margin-top: 2rem; }
}

@media (max-width: 24rem) {
  #docsSearch #searchBar button { width: 2.75rem; min-width: 2.75rem; padding: 0; background: transparent; }
  #docsSearch #searchBar button:hover { background: var(--th-raised); }
  #docsSearch #searchBar button span:not(.sr-only) { display: none; }
  #docsSearch #searchBar button .icon-search { display: block; margin: 0; }
  #docsSearch #searchBar::before { display: none; }
  #docsSearch #searchBar input.search-query { padding-left: .75rem !important; }
  #sidebar .nav-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #mainNav *, #docsSearch *, #contentArea *,
  #contentArea *::before, #contentArea *::after { transition: none !important; animation: none !important; }
  #contentArea .category-list .category:hover,
  #searchBar button:active { transform: none; }
}

@media (forced-colors: active) {
  #searchBar:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
  #contentArea .category-list .category,
  #contentArea .articleList,
  #contentArea .articleFoot { border: 1px solid CanvasText; }
  #fullArticle ol > li::before { border: 1px solid CanvasText; }
}

@media print {
  :root { --th-bg: #fff; --th-surface: #fff; --th-text: #111; --th-soft: #222; --th-muted: #444; --th-border: #ccc; --th-blue: #111; }
  html { color-scheme: light; }
  body { background: var(--th-bg); }
  #mainNav, #docsSearch, #sidebar, #contentArea footer { display: none !important; }
  #contentArea.container-fluid { width: 100%; max-width: none; }
  #contentArea > .row-fluid { display: block; margin: 0; }
  #fullArticle { max-width: none; font-size: 11pt; }
  #fullArticle a, #fullArticle a strong, #fullArticle strong a { color: #111 !important; }
  #fullArticle :is(h1, h2, h3) { break-after: avoid; }
  #fullArticle pre, #fullArticle code, #fullArticle th,
  #fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) { background: #fff; color: #222; }
  #fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) p { color: #222; }
  #fullArticle strong, #fullArticle b { color: #111; }
}

/* Header language dropdown for help.tessie.com. */
.th-language-ready .weglot-container.wg-default {
  display: none !important;
}

.th-language-ready #mainNav {
  position: relative;
  z-index: 30;
}

.th-language-ready #mainNav .nav-collapse {
  margin-left: auto;
}

.th-language-ready #mainNav .nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

#mainNav #th-language-switcher {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

#th-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 3.5rem;
  min-height: 2.75rem;
  margin: 0;
  padding: .5rem .875rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--th-muted);
  font-family: var(--th-font);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#th-language-toggle:hover,
#th-language-toggle:focus-visible,
#th-language-toggle[aria-expanded="true"] {
  background: var(--th-surface);
  color: var(--th-text);
}

#th-language-toggle .th-language-chevron {
  width: .3125rem;
  height: .3125rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

#th-language-toggle[aria-expanded="true"] .th-language-chevron {
  transform: translateY(1px) rotate(225deg);
}

#th-language-panel {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  transform: translateX(var(--th-language-offset, 0px));
  z-index: 1;
  width: 16rem;
  max-width: calc(100vw - 2rem);
  max-height: min(26rem, var(--th-language-space, 65vh));
  margin: 0;
  padding: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--th-border) transparent;
  border: 1px solid var(--th-border);
  border-radius: .625rem;
  background: var(--th-surface);
  color: var(--th-text);
  box-shadow: 0 .75rem 2.5rem rgb(5 8 12 / 35%);
  text-align: left;
}

#th-language-panel[hidden] {
  display: none !important;
}

#th-language-title {
  margin: 0;
  padding: .25rem .5rem .5rem;
  color: var(--th-muted);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#th-language-panel .th-language-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

#th-language-panel .th-language-list > li {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
}

#th-language-panel .th-language-option {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) .75rem;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  margin: 0;
  padding: .5rem;
  border: 0;
  border-radius: .4375rem;
  background: transparent;
  color: var(--th-soft);
  font-family: var(--th-font);
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
}

#th-language-panel .th-language-option:not([aria-current="true"]):is(:hover, :focus-visible),
#th-language-panel .th-language-option[aria-current="true"] {
  background: var(--th-raised);
  color: var(--th-text);
}

#th-language-panel .th-language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25rem;
  border: 1px solid var(--th-border);
  border-radius: .25rem;
  color: var(--th-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .625rem;
  font-weight: 600;
  line-height: 1;
}

#th-language-panel .th-language-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .125rem;
}

#th-language-panel .th-language-name {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#th-language-panel .th-language-region {
  color: var(--th-muted);
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#th-language-panel .th-language-region:empty {
  display: none;
}

#th-language-panel .th-language-check {
  visibility: hidden;
  width: .3125rem;
  height: .5625rem;
  margin-left: .125rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

#th-language-panel [aria-current="true"] .th-language-check {
  visibility: visible;
}

#th-language-toggle:focus-visible {
  outline: 2px solid var(--th-focus) !important;
  outline-offset: 4px;
}

#mainNav #th-language-panel a:focus-visible {
  outline: 2px solid var(--th-focus) !important;
  outline-offset: 2px;
}

@media (max-width: 44rem) {
  #th-language-toggle {
    min-width: 3.25rem;
    padding: .5rem .625rem;
    font-size: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #th-language-toggle,
  #th-language-panel a {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  #th-language-toggle,
  #th-language-panel,
  #th-language-panel .th-language-code {
    border-color: ButtonText;
  }

  #th-language-panel .th-language-option[aria-current="true"] {
    outline: 1px solid Highlight;
    outline-offset: -1px;
  }
}

@media print {
  #th-language-switcher,
  .weglot-container.wg-default {
    display: none !important;
  }
}
