html, body {
  background-color: #6d6d6d;
}

/* Brand palette — kept in sync with the landing page (docs/index.md) so the
   whole site reads as one orange theme instead of the inherited blue/red. */
:root {
  --tx-accent: #f97316;
  --tx-link: #ea580c;
  --tx-grad: linear-gradient(135deg, #ff8a00 0%, #ff5e62 100%);
  --tx-ink-grad: linear-gradient(8deg, #1a1d24 0%, #2a2f3a 100%);
}

a, a:link, a:visited {
  color: var(--tx-link);
}

article {
  padding-bottom: 1.5rem;
}

.article__content a:not(.button) {
  font-weight: inherit;
}

.article__content h2 {
  border-bottom: 1px solid #eaecef;
  font-size: 2.0rem;
  line-height: 100%;
  margin: 2.2rem 0 1.2rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 499px) {
  .article__content h2 {
    font-size: 1.7rem;
    margin: 1.9rem 0 1.0rem;
  }
}

article .js-article-content > h2:first-child {
  margin-top: 0;
}

.article__content h3 {
  font-size: 1.5rem;
  line-height: 100%;
  margin: 1.8rem 0 1.0rem;
}

@media (max-width: 499px) {
  .article__content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1.0rem;
  }
}

.article__content h4 {
  font-size: 1.3rem;
  line-height: 100%;
  margin: 2rem 0 1.0rem;
}

@media (max-width: 499px) {
  .article__content h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
  }
}

.article__content h1 > .anchor,
.article__content h2 > .anchor,
.article__content h3 > .anchor,
.article__content h4 > .anchor {
  position: absolute;
  margin-left: -1em;
}

.article__content h1 > .anchor > i,
.article__content h2 > .anchor > i,
.article__content h3 > .anchor > i,
.article__content h4 > .anchor > i {
  font-size: 80%;
}

.article__content p {
  line-height: 150%;
}

.button--primary, .button--primary:link, .button--primary:visited {
  background: var(--tx-grad);
  border: 1px solid transparent;
  color: white;
  filter: brightness(102%);
}
.root[data-is-touch="false"] .button--primary:hover {
  filter: brightness(108%);
}

.button--secondary, .button--secondary:link, .button--secondary:visited {
  background: white;
  border: 1px solid var(--tx-accent);
  color: var(--tx-link);
}
.root[data-is-touch="false"] .button--secondary:hover {
  background: white;
  border-color: var(--tx-accent);
  box-shadow: inset 0 0 8px 0px hsla(25, 100%, 90%, 1);
  color: var(--tx-link);
}

.button--outline-secondary, .button--outline-secondary:link, .button--outline-secondary:visited {
  border-color: var(--tx-accent);
  color: var(--tx-link);
}
.root[data-is-touch="false"] .button--outline-secondary:hover {
  background-color: var(--tx-accent);
  color: white;
}

.button--xxl {
  padding: 1rem 1.6rem;
  font-size: 1.3rem;
}

code.highlighter-rouge {
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
  font-size: 85%;
  padding: 0.2em 0.4em;
}

article hr {
  background: linear-gradient(to right, hsla(25, 95%, 50%, 0) 0%, hsla(25, 95%, 50%, 0.35) 30%, hsla(25, 95%, 50%, 0.35) 70%, hsla(25, 95%, 50%, 0) 100%);
  border: none;
  display: inline-block;
  height: 2px;
  margin-left: 50%;
  min-width: 70vw;
  transform: translateX(-50%);
}

pre.highlight {
  background: rgba(0, 0, 0, 0.9) !important;
  line-height: 150%;
  margin: 1rem 0;
  overflow: auto;
  padding: 0.7rem 1.1rem;
}

pre.highlight code {
  font-size: 0.8rem;
}

.page__content {
  overflow-x: hidden;
}

.header {
  background: var(--tx-ink-grad);
  color: #ffffff;
}

.footer {
  background: #6d6d6d;
  color: #ffffff;
}

.header a,
.header a:link,
.header a:visited,
.footer a,
.footer a:link,
.footer a:visited {
  color: inherit;
}

.header .navigation__item {
  color: #ffffff;
}

.header .navigation__item--active a,
.header .navigation__item--active a:link,
.header .navigation__item--active a:visited,
.root[data-is-touch="false"] .header .navigation__item--active a:hover {
  color: #ffffff;
}

.header .navigation__item--active::after {
  border-color: var(--tx-accent);
}

.header .button--secondary {
  background-color: #181818;
  color: inherit;
}

.root[data-is-touch="false"] .header .button--secondary:hover {
  background-color: #000000;
  color: var(--tx-accent);
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__brand a {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 100%;
  margin-top: -0.1rem;
}

.sidebar-button {
  background: var(--tx-ink-grad);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

@media (max-width: 500px) {
  .button--xxl {
    font-size: 1.1rem;
  }
}

.align-self-stretch {
  align-self: stretch;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
  max-width: 100%;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.text-center {
  text-align: center;
}
