:root {
  --tech-ink: #101820;
  --tech-muted: #53616d;
  --tech-line: #d8dee5;
  --tech-soft: #edf4f1;
  --tech-accent: #007c74;
  --tech-accent-strong: #005a56;
  --tech-highlight: #d69b2d;
}

.technical-page {
  background: #fff;
}

.technical-page .topbar {
  position: sticky;
}

.tech-hero {
  padding: 54px 32px 50px;
  color: #fff;
  background: #12343a;
}

.tech-hero-inner,
.tech-content,
.tech-related-inner,
.tech-cta-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.breadcrumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs span[aria-hidden="true"] {
  color: rgba(255, 255, 255, .5);
}

.tech-kicker {
  margin: 0 0 10px;
  color: #f0c261;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tech-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.tech-lead {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
  line-height: 1.65;
}

.tech-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .18);
}

.tech-fact {
  min-height: 92px;
  padding: 18px;
  background: #12343a;
}

.tech-fact strong,
.tech-fact span {
  display: block;
}

.tech-fact strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 18px;
}

.tech-fact span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.45;
}

.tech-content {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 32px 76px;
}

.tech-toc {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 20px 0;
  border-top: 3px solid var(--tech-accent);
  border-bottom: 1px solid var(--tech-line);
}

.tech-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.tech-toc a {
  display: block;
  padding: 7px 0;
  color: var(--tech-muted);
  font-size: 14px;
  line-height: 1.35;
}

.tech-toc a:hover,
.tech-toc a:focus-visible {
  color: var(--tech-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tech-article {
  min-width: 0;
}

.tech-section {
  padding: 0 0 48px;
  scroll-margin-top: 106px;
}

.tech-section + .tech-section {
  padding-top: 48px;
  border-top: 1px solid var(--tech-line);
}

.tech-section h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 1.15;
}

.tech-section h3 {
  margin: 30px 0 10px;
  color: var(--tech-accent-strong);
  font-size: 23px;
  line-height: 1.25;
}

.tech-section p,
.tech-section li {
  color: #283640;
  font-size: 17px;
  line-height: 1.78;
}

.tech-section p {
  max-width: 850px;
  margin-bottom: 18px;
}

.tech-section ul,
.tech-section ol {
  max-width: 820px;
  padding-left: 24px;
}

.tech-section li {
  margin-bottom: 9px;
}

.tech-callout {
  max-width: 850px;
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--tech-highlight);
  background: #f5f7f8;
}

.tech-callout strong {
  display: block;
  margin-bottom: 7px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 30px 0;
}

.architecture-node {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--tech-line);
  background: #fff;
}

.architecture-node:not(:last-child)::after {
  content: ">";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -10px;
  width: 10px;
  color: var(--tech-accent);
  font-weight: 900;
  transform: translateY(-50%);
}

.architecture-node strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tech-accent-strong);
  font-size: 15px;
}

.architecture-node span {
  color: var(--tech-muted);
  font-size: 12px;
  line-height: 1.4;
}

.tech-screenshot {
  max-width: 980px;
  margin: 30px 0;
  border: 1px solid var(--tech-line);
  background: #fff;
}

.tech-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.tech-screenshot figcaption {
  padding: 14px 16px;
  color: var(--tech-muted);
  font-size: 14px;
  line-height: 1.5;
}

.tech-table-wrap {
  max-width: 900px;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--tech-line);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.tech-table th,
.tech-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tech-line);
  font-size: 14px;
  line-height: 1.5;
}

.tech-table th {
  color: #fff;
  background: var(--tech-accent-strong);
}

.tech-table tr:last-child td {
  border-bottom: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}

.faq-entry {
  padding: 20px;
  border: 1px solid var(--tech-line);
  background: #fff;
}

.faq-entry h3 {
  margin: 0 0 10px;
  color: var(--tech-ink);
  font-size: 18px;
}

.faq-entry p {
  margin: 0;
  color: var(--tech-muted);
  font-size: 15px;
  line-height: 1.65;
}

.tech-related {
  padding: 58px 32px 64px;
  background: var(--tech-soft);
}

.tech-related h2 {
  margin-bottom: 24px;
  font-size: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-link {
  min-height: 126px;
  padding: 20px;
  border: 1px solid #cbd8d3;
  background: #fff;
}

.related-link strong,
.related-link span {
  display: block;
}

.related-link strong {
  margin-bottom: 8px;
  color: var(--tech-accent-strong);
  font-size: 18px;
}

.related-link span {
  color: var(--tech-muted);
  font-size: 14px;
  line-height: 1.5;
}

.tech-cta {
  padding: 54px 32px;
  color: #fff;
  background: #1a3d42;
}

.tech-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.tech-cta h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.tech-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
}

.language-suggestion {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 410px;
  padding: 14px 16px;
  color: var(--tech-ink);
  border: 1px solid var(--tech-line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 32, .16);
}

.language-suggestion span {
  font-size: 14px;
  line-height: 1.4;
}

.language-suggestion button {
  min-height: 36px;
  padding: 7px 12px;
  color: #fff;
  font-weight: 750;
  border: 0;
  border-radius: 4px;
  background: var(--tech-accent);
  cursor: pointer;
}

.language-suggestion .dismiss-language {
  width: 34px;
  padding: 0;
  color: var(--tech-muted);
  border: 1px solid var(--tech-line);
  background: #fff;
}

@media (max-width: 980px) {
  .tech-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tech-toc {
    position: static;
    columns: 2;
  }

  .tech-toc strong {
    column-span: all;
  }

  .tech-facts,
  .architecture-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-node:not(:last-child)::after {
    content: none;
  }
}

@media (max-width: 720px) {
  .tech-hero {
    padding: 38px 20px 40px;
  }

  .tech-hero h1 {
    font-size: 38px;
  }

  .tech-lead {
    font-size: 18px;
  }

  .tech-content,
  .tech-related,
  .tech-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tech-content {
    padding-top: 42px;
  }

  .tech-facts,
  .architecture-flow,
  .faq-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .tech-toc {
    columns: 1;
  }

  .tech-section h2 {
    font-size: 30px;
  }

  .tech-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-suggestion {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
