.dev-head,
.dev-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.dev-head nav,
.dev-foot-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.35rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dev-head nav > a:not(.button),
.dev-foot nav a {
  color: var(--ink-soft);
  font-size: .87rem;
  font-weight: 750;
  text-decoration: none;
}

.dev-head nav > a:not(.button):hover,
.dev-foot nav a:hover { text-decoration: underline; text-underline-offset: .2em; }

.dev-hero {
  padding-block: clamp(2.4rem, 6vw, 4.4rem);
  background: linear-gradient(120deg, #f5f1ff, #fcfaff 66%, #eee8fc);
  border-bottom: 1px solid #e9e1f7;
}

.dev-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.5rem);
}

.dev-hero h1 {
  font-size: clamp(2.25rem, 5.3vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.066em;
}

.dev-hero h1 + p {
  max-width: 42rem;
  margin-top: .8rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
}

.dev-hero .eyebrow { margin-bottom: .7rem; }

.dev-transports {
  display: grid;
  padding: .32rem 1.15rem;
  border: 1px solid #362b65;
  border-radius: .88rem;
  color: #f9f5ff;
  background: #181438;
  box-shadow: 0 .75rem 2.15rem #2a165b27;
}

.dev-transports a {
  display: grid;
  min-height: 5.4rem;
  align-content: center;
  align-items: start;
  gap: .3rem;
  padding: .75rem 0;
  text-decoration: none;
}

.dev-transports a + a { border-top: 1px solid #3b3461; }
.dev-transports a span { font-size: .95rem; font-weight: 780; }
.dev-transports code { color: #d4c4ff; font-size: clamp(.7rem, 1.27vw, .85rem); overflow-wrap: anywhere; }
.dev-transports a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.dev-transports a:focus-visible { outline-color: #ccb5ff; }

.dev-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 5.5vw, 4.4rem);
  padding-block: clamp(2.25rem, 5.3vw, 4rem) 4.4rem;
}

.dev-aside { position: sticky; top: 1.15rem; }

.dev-toc {
  padding: .9rem .9rem .85rem;
  border: 1px solid #e7def4;
  border-radius: .72rem;
  background: #f9f7ff;
}

.dev-toc p {
  padding: .15rem .45rem .35rem;
  color: var(--ink-soft);
  font-size: .77rem;
  font-weight: 800;
}

.dev-toc ul { display: grid; gap: .12rem; list-style: none; padding: 0; margin: 0; }
.dev-toc a {
  display: block;
  min-height: 2.4rem;
  padding: .47rem .45rem;
  border-radius: .42rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
}
.dev-toc a:hover,
.dev-toc a[aria-current="location"] { color: var(--site-indigo-dark); background: #ede5fb; }

.dev-docs { min-width: 0; overflow-wrap: anywhere; }
.dev-section { scroll-margin-top: 1.35rem; color: var(--ink-soft); }
.dev-section + .dev-section { margin-top: 2.45rem; padding-top: 2.15rem; border-top: 1px solid #e8e2f0; }
.dev-section h2,
.dev-section h3 { color: var(--ink); line-height: 1.18; }
.dev-section h2 { margin-bottom: .62rem; font-size: clamp(1.75rem, 3.7vw, 2.55rem); letter-spacing: -.055em; }
.dev-section h3 { margin: 1.65rem 0 .42rem; font-size: clamp(1.12rem, 2.4vw, 1.34rem); letter-spacing: -.023em; }
.dev-section p + p { margin-top: .65rem; }
.dev-section p a { color: var(--site-indigo-dark); font-weight: 740; text-underline-offset: .18em; }
.dev-section :not(pre) > code {
  padding: .12em .32em;
  border-radius: .26em;
  color: #352273;
  background: #f0eafa;
  font-size: .87em;
}

.dev-pairs { margin: .95rem 0 1.15rem; border: 1px solid #e9e3f3; border-radius: .66rem; }
.dev-pairs > div { display: grid; grid-template-columns: minmax(7rem, .32fr) minmax(0, 1fr); gap: .75rem; padding: .62rem .85rem; }
.dev-pairs > div + div { border-top: 1px solid #e9e3f3; }
.dev-pairs dt { font-weight: 780; }
.dev-pairs dd { margin: 0; }
.dev-errors > div { grid-template-columns: 3.25rem minmax(0, 1fr); }
.dev-section .dev-errors dt code { background: #fbe6ed; color: #8b2646; }
.dev-callout { margin: 1rem 0; padding: .76rem .92rem; border-left: .24rem solid #6941d4; border-radius: .4rem; background: #f7f3ff; }

.dev-code {
  min-width: 0;
  margin: .9rem 0;
  overflow: hidden;
  border: 1px solid #342c53;
  border-radius: .74rem;
  color: #eee9fc;
  background: #18152f;
}

.dev-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .49rem .7rem .49rem .88rem;
  border-bottom: 1px solid #382f55;
  background: #25203f;
}

.dev-code-head span { color: #e8e0fa; font-size: .77rem; font-weight: 760; overflow-wrap: anywhere; }
.dev-code-head b { color: #d4baff; margin-right: .18rem; }
.dev-code-head button {
  flex: none;
  min-height: 2.05rem;
  padding: .28rem .57rem;
  border: 1px solid #73669d;
  border-radius: .4rem;
  background: transparent;
  color: #f4efff;
  font-size: .75rem;
  font-weight: 800;
}
.dev-code-head button:hover { background: #47386a; }
.dev-code-head button:focus-visible,
.dev-code pre:focus-visible { outline: 2px solid #d9c3ff; outline-offset: -2px; }

.dev-code pre {
  overflow: auto;
  overscroll-behavior-inline: contain;
  margin: 0;
  padding: .88rem;
  color: #eee9fc;
  font-size: .82rem;
  line-height: 1.58;
  tab-size: 2;
}

.dev-code code, .dev-transports code, .dev-section code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.dev-foot-inner { gap: 1.35rem; padding-block: 1.45rem; }
.dev-foot nav a { color: #dfd8f2; }
.dev-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 47rem) {
  .dev-hero-inner,
  .dev-layout { grid-template-columns: minmax(0, 1fr); }
  .dev-aside { position: static; }
  .dev-layout { gap: 1.4rem; padding-top: 1.25rem; }
  .dev-toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-hero .actions { margin-top: 1.2rem; }
  .dev-transports a { min-height: 4.38rem; }
  .dev-transports code { font-size: .79rem; }
}

@media (max-width: 32rem) {
  .dev-section h3 { margin-top: 1.25rem; }
  .dev-pairs:not(.dev-errors) > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .dev-code pre { padding: .7rem; }
  .dev-foot-inner { align-items: flex-start; flex-direction: column; }
}

@media (forced-colors: active) {
  .dev-code-head button { border-color: ButtonText; }
}
