:root {
  --th-bg: #101214;
  --th-surface: #191c20;
  --th-raised: #22262c;
  --th-border: #30353d;
  --th-text: #f3f5f7;
  --th-soft: #c6ccd4;
  --th-muted: #a1aab6;
  --th-search-icon: #858f9d;
  --th-blue: #8bb5ff;
  --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;
  background: var(--th-bg);
  color: var(--th-text);
  font-family: var(--th-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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; }

#mainNav .navbar-inner {
  padding: 0 var(--th-gutter) !important;
  background: var(--th-bg) !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; }

#searchBar #serp-dd,
#searchBar #serp-dd.sb {
  top: calc(100% + .5rem);
  left: 0;
  width: 100%;
  z-index: 20;
  overflow: hidden;
  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; }
#serp-dd .result a { padding: .875rem 1rem; color: var(--th-text); line-height: 1.5; }
#serp-dd .result a:hover,
#serp-dd .result > li.active { background: var(--th-raised); }
#serp-dd .noResults { padding: 1rem; color: var(--th-muted); }

/* Topics: compact horizontal cards. */
#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: 2.75rem 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;
}

#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: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  color: var(--th-blue);
  font-size: 1.75rem;
  line-height: 1;
}

#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::after {
    border-color: var(--th-blue);
    transform: translate(3px, -50%) rotate(45deg);
  }
}

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

/* 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;
}

#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;
}

#contentArea .articleList { margin: 0 0 2rem; list-style: none; }
#contentArea .articleList > li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--th-border);
}

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

#contentArea .articleList > li > a:hover { color: var(--th-text); background: var(--th-surface); }
#contentArea .articleList a:hover span { text-decoration: none; }
#contentArea .articleList .icon-article-doc { margin-right: .625rem; }
#contentArea .articleList .icon-article-doc::before { color: var(--th-muted); }
#serp .articleList > li { padding: .5rem 0; }
#serp .articleList > li > p { margin-top: .5rem; padding: 0 .75rem; font-size: .9375rem; }
#serp .articlesFound, #serp .nada { color: var(--th-muted); }

#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; }
#sidebar .nav-list li a {
  display: block;
  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: #1c293c;
  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 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: .625rem; }
#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;
}
#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;
}
#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) :is(p, li) { color: inherit; }
#fullArticle :is(.callout, .callout-blue, .callout-yellow, .callout-red, .callout-green, .private-note) > :last-child { margin-bottom: 0; }

#contentArea .articleFoot { margin-top: 2.5rem; padding-top: 1.5rem; border: 0; }
#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 .help { color: var(--th-muted); font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
#contentArea #sbContact, #contentArea #sbContactMobile {
  color: var(--th-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#contentArea #sbContact:hover, #contentArea #sbContactMobile:hover { color: var(--th-text); }
#contentArea .pagination ul { box-shadow: none; }
#contentArea .pagination ul > li > a,
#contentArea .pagination ul > li > span {
  min-width: 2.75rem;
  padding: .625rem;
  border: 1px solid var(--th-border);
  border-left-width: 0;
  background: var(--th-surface);
  color: var(--th-soft);
  text-align: center;
}
/* Override Help Scout's first-link reset; keep shared interior borders 1px. */
#contentArea .pagination ul > li:first-child > a,
#contentArea .pagination ul > li:first-child > span {
  border-left: 1px solid var(--th-border);
}
#contentArea .pagination ul > .active > a,
#contentArea .pagination ul > .active > span,
#contentArea .pagination ul > li > a:hover { background: #1c293c; 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); gap: .75rem; }
  #contentArea .category-list .category { padding: 1.25rem 2.5rem 1.25rem 1rem; }
  #contentArea .category-list .category::after { right: 1.25rem; }
  #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; }
  #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 { border: 1px solid CanvasText; }
}

@media print {
  :root { --th-bg: #fff; --th-text: #111; --th-soft: #222; --th-muted: #444; --th-border: #ccc; }
  html { color-scheme: light; }
  #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;
  }
}
