:root {
  --paper: #f2ecdf;
  --paper-light: #fffaf0;
  --paper-deep: #e8dfd0;
  --ink: #142a3f;
  --muted: #5f6a70;
  --line: #c8bdad;
  --terracotta: #bf5437;
  --terracotta-dark: #8f3927;
  --terracotta-soft: #f0d4c7;
  --sage: #6d8067;
  --sage-soft: #dce5d6;
  --amber: #e3b852;
  --display: var(--font-display), "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --body: var(--font-body), Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 42, 63, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 42, 63, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.006em;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
details summary:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid rgba(191, 84, 55, 0.35);
  outline-offset: 3px;
}

code {
  overflow-wrap: anywhere;
  font-family: var(--mono);
}

.shell {
  width: min(1320px, calc(100% - 56px));
  margin-inline: auto;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--terracotta);
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1.5px solid var(--ink);
}

.brand,
.topbar nav,
.brand > span:last-child {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand > span:last-child {
  gap: 7px;
}

.brand small {
  color: var(--muted);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 550;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff8ed;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.topbar nav {
  gap: 25px;
  font-size: 11px;
  font-weight: 750;
}

.topbar nav a:hover,
.text-link:hover,
.footer > a:hover {
  color: var(--terracotta-dark);
}

.source-link {
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--paper-light);
  box-shadow: 2px 2px 0 var(--ink);
}

.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-bottom: 1px solid rgba(20, 42, 63, 0.22);
  background: rgba(242, 236, 223, 0.94);
  backdrop-filter: blur(12px);
}

.chapter-nav-inner {
  display: flex;
  min-width: max-content;
}

.chapter-nav a {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.chapter-nav a:first-child {
  border-left: 1px solid var(--line);
}

.chapter-nav a b {
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 8px;
}

.chapter-nav a[aria-current="location"] {
  background: var(--ink);
  color: #fff9ef;
}

.chapter-nav a[aria-current="location"] b {
  color: #efab91;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 435px;
  align-items: center;
  gap: 90px;
  padding-block: 84px 88px;
}

.hero-copy,
.hero-dossier,
.document-grid > *,
.plugin-grid > *,
.catalog-panel,
.managed-list > *,
.connector-table > *,
.safety-grid > * {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--terracotta);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(68px, 8vw, 118px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--terracotta);
  font-style: normal;
}

.hero h2 {
  max-width: 740px;
  margin: 34px 0 16px;
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 37px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.author-credit {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-top: 22px;
  padding: 10px 13px;
  background: var(--paper-light);
  border: 1px solid rgba(20, 42, 63, 0.2);
  border-left: 5px solid var(--terracotta);
  border-radius: 9px;
  box-shadow: 3px 4px 0 rgba(20, 42, 63, 0.08);
}

.author-credit span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.author-credit a {
  color: var(--terracotta-dark);
  font: 800 11px/1.35 var(--display);
  text-decoration: underline;
  text-decoration-color: rgba(156, 62, 39, 0.35);
  text-underline-offset: 3px;
}

.author-credit a:hover {
  color: var(--terracotta);
  text-decoration-color: currentColor;
}

.button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-light);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button.primary {
  background: var(--terracotta);
  color: #fff9ef;
}

.button:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.source-note {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.source-note a {
  color: var(--terracotta-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.hero-dossier {
  position: relative;
  padding: 52px 32px 31px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 16px 16px 3px;
  background:
    linear-gradient(90deg, transparent 0 20px, rgba(191, 84, 55, 0.22) 20px 21px, transparent 21px),
    var(--paper-light);
  box-shadow: 10px 12px 0 rgba(20, 42, 63, 0.11);
  transform: rotate(1.3deg);
}

.hero-dossier::after {
  content: "";
  position: absolute;
  inset: 10px -13px -13px 13px;
  z-index: -1;
  border: 1.5px solid var(--ink);
  border-radius: 4px 15px 15px 4px;
  background: var(--sage-soft);
}

.dossier-tab {
  position: absolute;
  top: -35px;
  right: 28px;
  min-width: 142px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-align: center;
}

.dossier-label {
  margin: 0 0 20px 12px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 12px;
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}

.metric-grid > div {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.metric-grid strong {
  font-family: var(--display);
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.metric-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 20px 0 0 12px;
  padding: 12px 10px;
  border: 1px dashed var(--ink);
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
}

.flow-row i {
  color: var(--muted);
  font-style: normal;
}

.dossier-note {
  margin: 16px 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.rule {
  height: 6px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.document-grid {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 66px;
  padding-block: 60px 100px;
}

.toc {
  position: sticky;
  top: 69px;
  align-self: start;
}

.toc > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.toc li {
  border-bottom: 1px solid var(--line);
}

.toc a {
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  padding: 10px 4px 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.toc a span {
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 750;
}

.toc a[aria-current="location"] {
  color: var(--ink);
  font-weight: 800;
}

.toc a[aria-current="location"] span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
}

.toc-warning {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
}

.toc-warning b,
.toc-warning span {
  display: block;
}

.toc-warning b {
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.35;
}

.toc-warning span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.section {
  padding-bottom: 84px;
  scroll-margin-top: 112px;
}

.chapter-title {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 23px;
}

.chapter-title > span {
  width: 47px;
  height: 47px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
}

.chapter-title p {
  margin: 0 0 3px;
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(29px, 3.2vw, 43px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intro {
  max-width: 890px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 17px;
}

.intro b {
  color: var(--ink);
}

.subheading {
  margin: 41px 0 17px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.feature-grid,
.plugin-grid,
.quality-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.feature-grid article,
.quality-grid article,
.safety-grid article {
  padding: 21px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--paper-light);
  box-shadow: 4px 5px 0 rgba(20, 42, 63, 0.09);
}

.feature-grid article > span,
.quality-grid article > span,
.safety-grid article > span,
.connector-rules article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 8px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
}

.feature-grid h3,
.quality-grid h3,
.safety-grid h3,
.connector-rules h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
}

.feature-grid p,
.quality-grid p,
.safety-grid p,
.connector-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-left: 7px solid var(--sage);
  border-radius: 12px;
  background: var(--paper-light);
  box-shadow: 4px 5px 0 rgba(20, 42, 63, 0.08);
}

.notice.blue {
  border-left-color: var(--ink);
  background: linear-gradient(90deg, rgba(220, 229, 214, 0.85), var(--paper-light) 46%);
}

.notice.amber {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(227, 184, 82, 0.17), var(--paper-light) 46%);
}

.notice strong {
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.35;
}

.notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.use-case-list {
  margin-top: 28px;
  border-top: 1.5px solid var(--ink);
}

.use-case-list > h3 {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 13px;
}

.use-case-list > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.use-case-list span {
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 750;
}

.use-case-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.use-case-list p b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.filter-bar button,
.load-more {
  min-height: 42px;
  padding: 8px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.filter-bar button.active {
  background: var(--ink);
  color: #fff;
}

.plugin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plugin-grid article {
  padding: 21px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--paper-light);
}

.plugin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plugin-head span {
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plugin-head code {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
}

.plugin-grid h3 {
  margin: 18px 0 6px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.3;
}

.plugin-grid article > p {
  min-height: 60px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.plugin-grid dl {
  margin: 16px 0;
  padding-block: 9px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.plugin-grid dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 4px 0;
}

.plugin-grid dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.plugin-grid dd {
  margin: 0;
  font-size: 10px;
}

.plugin-grid article > a,
.partner-card > a,
.install-grid article > a,
.text-link {
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 800;
}

.partner-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
  padding: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--sage-soft);
  box-shadow: 5px 6px 0 rgba(20, 42, 63, 0.09);
}

.partner-card span {
  color: var(--sage);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.partner-card h3 {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 19px;
}

.partner-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.catalog-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.8);
  box-shadow: 6px 7px 0 rgba(20, 42, 63, 0.09);
}

.command-panel {
  margin-top: 34px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.panel-title span {
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.panel-title h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
}

.panel-title > b {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-size: 9px;
  white-space: nowrap;
}

.search-field {
  display: block;
  min-width: 0;
}

.search-field input,
.catalog-controls select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
}

.agent-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.agent-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  align-items: center;
  gap: 20px;
  padding: 15px 3px;
  border-bottom: 1px solid var(--line);
}

.agent-list article span {
  color: var(--terracotta-dark);
  font-size: 9px;
  font-weight: 750;
}

.agent-list h4 {
  margin: 2px 0 3px;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.35;
}

.english-name {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.agent-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.agent-list article > code {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
}

.load-more {
  width: 100%;
  margin-top: 16px;
  background: var(--paper);
}

.load-more:hover {
  background: var(--terracotta-soft);
}

.table-wrap {
  max-width: 100%;
  margin-top: 15px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-light);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.5;
}

th,
td {
  padding: 12px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(191, 84, 55, 0.045);
}

th {
  background: var(--paper-deep);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

td:nth-child(1) {
  font-weight: 650;
}

td:nth-child(2) code {
  color: var(--terracotta-dark);
  font-size: 10px;
}

.skill-cell code,
.skill-cell small {
  display: block;
}

.skill-cell code {
  font-size: 9px;
}

.skill-cell small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.install-grid,
.example-grid,
.split-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.install-grid article {
  padding: 23px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--paper-light);
}

.install-grid article > span {
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.install-grid h3 {
  margin: 10px 0 11px;
  font-family: var(--display);
  font-size: 20px;
}

.install-grid ol {
  margin: 0 0 17px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}

.install-grid li + li {
  margin-top: 5px;
}

.steps,
.workflow {
  margin-top: 27px;
  border-top: 1.5px solid var(--ink);
}

.steps > article,
.workflow > article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps > article > span,
.workflow > article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
}

.steps h3,
.workflow h3 {
  margin: 3px 0 5px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
}

.steps p,
.workflow p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.code-block {
  max-width: 100%;
  margin: 13px 0;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #132538;
  color: #f9f3e9;
  box-shadow: 4px 5px 0 rgba(20, 42, 63, 0.11);
}

.code-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: #0d1d2d;
  color: #b8c6d3;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.code-head button {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: transparent;
  color: #e6edf2;
  font-size: 9px;
  cursor: pointer;
}

.code-head button:hover {
  background: rgba(255, 255, 255, 0.08);
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 17px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.72;
  white-space: pre;
}

.example-grid {
  grid-template-columns: 1fr;
}

.example-grid .code-block {
  margin: 0;
}

.quality-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.managed-list {
  border-top: 1.5px solid var(--ink);
}

.managed-list article {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.managed-list span {
  color: var(--terracotta-dark);
  font-size: 9px;
  font-weight: 750;
}

.managed-list h3 {
  margin: 3px 0;
  font-family: var(--display);
  font-size: 15px;
}

.managed-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.managed-list code {
  align-self: center;
  padding: 9px 11px;
  border-radius: 6px;
  background: var(--paper-light);
  font-size: 9px;
}

.architecture {
  max-width: 100%;
  margin-top: 28px;
  padding: 9px 20px;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #132538;
  color: #f9f3e9;
  box-shadow: 5px 6px 0 rgba(20, 42, 63, 0.11);
}

.arch-row {
  min-width: 700px;
  display: grid;
  grid-template-columns: 42px 130px 1fr 245px;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 10px;
}

.arch-row:last-child {
  border-bottom: 0;
}

.arch-row > span {
  color: #efab91;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
}

.arch-row b {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.arch-row i {
  color: #b8c6d3;
  font-style: normal;
}

.split-notes .notice {
  margin-top: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
}

.connector-table {
  border-top: 1.5px solid var(--ink);
}

.connector-table > div {
  display: grid;
  grid-template-columns: 155px 1fr 220px;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.connector-table span {
  color: var(--terracotta-dark);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 750;
}

.connector-table b {
  font-size: 12px;
}

.connector-table p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.connector-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.connector-rules article {
  padding: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-light);
}

.safety-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-banner {
  margin-top: 28px;
  padding: 27px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--amber);
  box-shadow: 6px 7px 0 rgba(20, 42, 63, 0.13);
}

.legal-banner > span {
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-banner h3 {
  max-width: 940px;
  margin: 11px 0 7px;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.27;
  letter-spacing: -0.03em;
}

.legal-banner p {
  margin: 0;
  font-size: 12px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.source-grid a {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 250, 240, 0.76);
}

.source-grid span,
.source-grid b,
.source-grid small {
  display: block;
}

.source-grid span {
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
}

.source-grid b {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 12px;
}

.source-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.source-grid a:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
}

.faq {
  margin-top: 30px;
  border-top: 1.5px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 55px;
  display: flex;
  align-items: center;
  padding: 10px 3px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  max-width: 780px;
  margin: -3px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 30px;
  padding-block: 31px;
  border-top: 1.5px solid var(--ink);
}

.footer > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand > div {
  display: grid;
  gap: 7px;
}

.footer b {
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.42;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.footer > a {
  font-size: 10px;
  font-weight: 800;
}

.footer .footer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 0;
  color: var(--ink);
  font-size: 10px;
}

.footer-credit a {
  color: var(--terracotta-dark);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit span {
  color: var(--terracotta);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 54px;
  }

  .feature-grid,
  .connector-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 38px, 1320px);
  }

  .topbar nav a:not(.source-link) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding-bottom: 100px;
  }

  .hero-dossier {
    width: min(540px, 95%);
    justify-self: end;
  }

  .document-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toc li {
    border-right: 1px solid var(--line);
  }

  .toc a {
    padding: 10px 8px;
  }

  .toc-warning {
    display: none;
  }

  .agent-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .managed-list article {
    grid-template-columns: 190px 1fr;
  }

  .connector-table > div {
    grid-template-columns: 130px 1fr;
  }

  .connector-table p {
    grid-column: 2;
    text-align: left;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.64;
  }

  .shell {
    width: min(100% - 28px, 1320px);
  }

  .topbar {
    min-height: 64px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 55px 84px;
    gap: 72px;
  }

  .hero h1 {
    font-size: clamp(57px, 17vw, 82px);
    line-height: 0.9;
    letter-spacing: -0.068em;
  }

  .hero h2 {
    margin-top: 28px;
    font-size: 27px;
    letter-spacing: -0.032em;
  }

  .hero-lede,
  .intro {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .author-credit {
    width: 100%;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .hero-dossier {
    width: calc(100% - 8px);
    padding: 47px 20px 24px;
  }

  .metric-grid {
    margin-left: 8px;
  }

  .metric-grid > div {
    min-height: 87px;
    padding: 12px;
  }

  .metric-grid strong {
    font-size: 30px;
  }

  .flow-row,
  .dossier-note,
  .dossier-label {
    margin-left: 8px;
  }

  .document-grid {
    gap: 45px;
    padding-bottom: 72px;
  }

  .toc ol {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-bottom: 64px;
  }

  .chapter-title {
    align-items: flex-start;
    gap: 12px;
  }

  .chapter-title > span {
    width: 40px;
    height: 40px;
  }

  .chapter-title h2 {
    font-size: 26px;
    letter-spacing: -0.028em;
  }

  .feature-grid,
  .plugin-grid,
  .quality-grid,
  .safety-grid,
  .install-grid,
  .split-notes,
  .connector-rules {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .quality-grid article,
  .safety-grid article,
  .plugin-grid article {
    padding: 18px;
  }

  .plugin-grid article > p {
    min-height: auto;
  }

  .partner-card {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 19px;
  }

  .catalog-panel {
    padding: 17px;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 760px;
    font-size: 11px;
  }

  .steps > article,
  .workflow > article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .managed-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .connector-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .connector-table p {
    grid-column: auto;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .legal-banner {
    padding: 21px;
  }

  .legal-banner h3 {
    font-size: 21px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .footer p {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
