.ia-article {
  --ia-line: #d3cfc7;
  --ia-text: #253247;
  --ia-link: #305781;
  background: var(--milk);
  color: var(--ink);
  font-family: Rubik, system-ui, sans-serif;
}
.ia-article * {
  box-sizing: border-box;
}
.ia-article .ia-head {
  background: var(--night);
  color: #fcf7f0;
  border-bottom: 1px solid #28374b;
}
.ia-headwrap {
  padding-block: 34px 51px;
}
.ia-head .breadcrumbs,
.ia-by {
  font-size: 14px;
  line-height: 1.45;
}
.ia-head .breadcrumbs a,
.ia-by a {
  color: inherit;
  text-decoration: none;
}
.ia-head .breadcrumbs {
  color: #cad0da;
  margin: 0;
}
.ia-head .breadcrumbs span {
  color: #bec8d7;
}
.ia-head .breadcrumbs a:hover,
.ia-by a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ia-headgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 30%);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  margin-top: 29px;
}
.ia-head h1 {
  font:
    550 clamp(40px, 4.05vw, 65px) / 1.045 Rubik,
    system-ui,
    sans-serif;
  letter-spacing: -0.046em;
  max-width: 22ch;
  margin: 0;
  color: #fff9f0;
  text-wrap: balance;
}
.ia-lead {
  font:
    400 clamp(17px, 1.35vw, 21px) / 1.47 Rubik,
    system-ui,
    sans-serif;
  max-width: 64ch;
  color: #d3d8df;
  margin: 20px 0 23px;
}
.ia-by {
  color: #bec8d7;
  font-size: 14px;
}
.ia-by a {
  color: var(--amber);
  font-weight: 500;
}

.ia-diagram {
  margin: 20px 0 0;
  background: radial-gradient(
    ellipse at 66% 37%,
    #28354c 0%,
    #202d41 40%,
    #1d293c 76%
  );
  border: 1px solid #38465b;
  border-radius: 5px;
  padding: 36px 18px 32px;
  position: relative;
  overflow: hidden;
}
.ia-diagram:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image: radial-gradient(#7d8faa 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.ia-flow {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}
.ia-node {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 82px;
}
.ia-node strong {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 18px;
  color: #fff7ed;
}
.ia-node code {
  font:
    400 12px/1.6 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #ccd4e0;
  background: none;
  padding: 0;
}
.ia-icon {
  width: 60px;
  height: 58px;
  position: relative;
  border: 1.6px solid #bdcbe3;
  border-radius: 50%/12px;
  background: linear-gradient(90deg, #31415b, #26364e);
}
.ia-icon:before,
.ia-icon:after,
.ia-icon i {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  border-radius: 50%;
  height: 18px;
}
.ia-icon:before {
  top: -1px;
  border: 1.6px solid #bdcbe3;
  background: #30425e;
}
.ia-icon:after,
.ia-icon i {
  border-bottom: 1.5px solid #bdcbe3;
  top: 15px;
}
.ia-icon i {
  top: 28px;
}
.ia-node:last-child .ia-icon,
.ia-node:last-child .ia-icon:before,
.ia-node:last-child .ia-icon:after,
.ia-node:last-child .ia-icon i {
  border-color: #f4b678;
}
.ia-node:last-child .ia-icon:before {
  background: #775840;
}
.ia-node:last-child .ia-icon {
  background: linear-gradient(90deg, #534436, #394151);
}
.ia-wire {
  height: 1px;
  flex: 1;
  min-width: 10px;
  max-width: 62px;
  margin-top: 30px;
  background: #dda971;
  position: relative;
}
.ia-wire:after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #dda971;
  border-right: 1.5px solid #dda971;
  transform: rotate(45deg);
  position: absolute;
  right: 0;
  top: -3.4px;
}
.ia-rolejump {
  border-block: 1px solid #485264;
  padding: 16px 0 0;
}
.ia-rolejump h2 {
  font:
    500 19px/1.25 Rubik,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: #fff9f1;
}
.ia-rolejump a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #354154;
  color: #e8e9e9;
  text-decoration: none;
  font-size: 16px;
}
.ia-rolejump a span {
  color: var(--amber);
}
.ia-rolejump a:hover {
  color: var(--amber);
}
.ia-sheet {
  background: var(--paper);
  color: var(--ink);
}
.ia-reading {
  display: grid;
  grid-template-columns: minmax(190px, 244px) minmax(0, 750px);
  column-gap: clamp(48px, 6vw, 98px);
  align-items: start;
  padding-block: 49px 76px;
}
.ia-column {
  min-width: 0;
}
.ia-side {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 115px);
  max-height: calc(100dvh - 115px);
  overflow: auto;
  scrollbar-width: thin;
}
.ia-toc summary {
  font:
    560 17px/1.35 Rubik,
    system-ui,
    sans-serif;
  letter-spacing: -0.018em;
  margin: 0 0 13px;
  color: #273344;
}
.ia-toclist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ia-toclist li {
  margin: 0;
}
.ia-toclist a {
  display: block;
  border-top: 1px solid var(--ia-line);
  padding: 8px 3px 8px 0;
  color: #4f5d6a;
  text-decoration: none;
  font:
    400 14px/1.32 Rubik,
    system-ui,
    sans-serif;
}
.ia-toclist a:hover {
  color: #283e54;
  text-decoration: underline;
}
.ia-side a[aria-current="location"] {
  color: #172837;
  font-weight: 560;
}
.ia-side a[aria-current="location"]:before {
  content: "";
  display: inline-block;
  background: #a96626;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
}

.ia-prose,
.ia-end {
  font:
    400 clamp(17px, 1.36vw, 20px) / 1.62 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ia-text);
}
.ia-prose h2,
.ia-end h2 {
  font:
    540 clamp(30px, 2.65vw, 41px) / 1.13 Rubik,
    system-ui,
    sans-serif;
  letter-spacing: -0.043em;
  color: #1d2b3c;
  scroll-margin-top: 108px;
  margin: 1.5em 0 0.54em;
  text-wrap: pretty;
}
.ia-prose > :first-child {
  margin-top: 0;
}
.ia-prose h3,
.ia-end h3 {
  font:
    540 clamp(21px, 1.85vw, 28px) / 1.24 Rubik,
    system-ui,
    sans-serif;
  letter-spacing: -0.033em;
  margin: 1.45em 0 0.6em;
}
.ia-prose p,
.ia-end p {
  margin: 0 0 1.05em;
}
.ia-prose li {
  margin: 0 0 0.57em;
}
.ia-prose ul,
.ia-prose ol {
  margin: 0.55em 0 1.4em;
  padding-left: 1.3em;
}
.ia-prose li::marker {
  color: #996436;
}
.ia-prose a,
.ia-end a {
  color: var(--ia-link);
  text-underline-offset: 0.14em;
  text-decoration: underline;
  text-decoration-color: #9ba9b8;
}
.ia-code {
  margin: 24px 0 27px;
  border-radius: 6px;
  background: #182236;
  overflow: hidden;
  color: #eef3fb;
}
.ia-code figcaption {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #445268;
  background: #233046;
  color: #f1f1f3;
  font:
    500 14px/1.3 Rubik,
    system-ui,
    sans-serif;
}
.ia-copy {
  border: 0;
  font:
    400 13px Rubik,
    system-ui,
    sans-serif;
  padding: 7px 4px;
  color: #ecc39a;
  background: transparent;
  cursor: pointer;
}
.ia-copy:hover {
  color: white;
}
.ia-code pre {
  font:
    400 clamp(13px, 1.05vw, 15px) / 1.65 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #e8f0f8;
  overflow: auto;
  background: none;
  border: 0;
  padding: 19px 20px 22px;
  margin: 0;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ia-code pre code {
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
}
.ia-prose p code {
  font-size: 0.88em;
  background: #e8e5df;
  padding: 0.1em 0.2em;
  border-radius: 3px;
}
.ia-project {
  border-top: 1px solid #c9c5bb;
  margin-block: 27px;
  padding: 20px 0 0;
}
.ia-project h3 {
  margin-top: 0;
}
.ia-project p:has(strong:only-child),
.ia-project p:first-of-type {
  margin-bottom: 0.4em;
}
.ia-related,
.ia-help {
  border-top: 1px solid #c5c0b7;
  padding-top: 18px;
  margin: 38px 0 18px;
}
.ia-help h3,
.ia-related h2 {
  margin-top: 0;
}
.ia-related ul {
  padding-left: 1.2em;
}
.ia-article :focus-visible {
  outline: 3px solid #b77536;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .ia-headgrid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
  }
  .ia-reading {
    grid-template-columns: 198px minmax(0, 1fr);
    gap: 32px;
  }
  .ia-node {
    min-width: 71px;
  }
  .ia-diagram {
    padding: 23px 13px;
  }
  .ia-node strong {
    font-size: 12px;
  }
  .ia-flow {
    gap: 2px;
  }
  .ia-head .breadcrumbs {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .ia-headwrap {
    padding-block: 24px 31px;
  }
  .ia-headgrid {
    display: block;
    margin-top: 23px;
  }
  .ia-head h1 {
    font-size: clamp(33px, 8.8vw, 47px);
    line-height: 1.055;
    letter-spacing: -0.047em;
    text-wrap: pretty;
  }
  .ia-lead {
    font-size: 16.5px;
    line-height: 1.47;
    margin: 16px 0 18px;
  }
  .ia-diagram,
  .ia-rolejump {
    display: none;
  }
  .ia-by {
    font-size: 12px;
  }
  .ia-reading {
    display: block;
    padding-block: 21px 54px;
  }
  .ia-side {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 25px;
  }
  .ia-toc {
    border-block: 1px solid #c5c1b7;
  }
  .ia-toc summary {
    min-height: 48px;
    margin: 0;
    font-size: 15px;
  }
  .ia-toc .ia-toclist a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }
  .ia-prose,
  .ia-end {
    font-size: 17px;
    line-height: 1.56;
  }
  .ia-prose h2,
  .ia-end h2 {
    font-size: 29px;
    scroll-margin-top: 83px;
  }
  .ia-prose ul,
  .ia-prose ol {
    padding-left: 1.2em;
  }
  .ia-code {
    margin-block: 18px;
  }
  .ia-code figcaption {
    padding: 5px 13px;
  }
  .ia-code pre {
    padding: 15px 13px;
    font-size: 12.8px;
  }
  .ia-copy {
    min-height: 37px;
  }
  .ia-head .breadcrumbs a {
    padding-block: 2px;
  }
}
@media (max-width: 370px) {
  .ia-head h1 {
    font-size: 31px;
  }
  .ia-by {
    font-size: 11.5px;
  }
}

.ia-headgrid.ia-headplain {
  display: block;
}
.ia-headplain h1 {
  max-width: 29ch;
}
.ia-headplain .ia-lead {
  max-width: 65ch;
}
.ia-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
}
.ia-toc summary::-webkit-details-marker {
  display: none;
}
.ia-toc summary::after {
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: rotate(45deg);
}
.ia-toc[open] summary::after {
  transform: rotate(225deg);
}
.ia-readnote {
  margin: 0 0 24px;
  color: #384a5b;
  line-height: 1.55;
}
.ia-readnote a {
  color: var(--ia-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ia-sheet .muted,
.ia-morenote {
  color: #54616d;
}
.ia-end .btn {
  color: var(--ia-link);
  padding-inline: 0;
  font-size: 1rem;
  text-decoration: underline;
}
.ia-prose {
  overflow-wrap: break-word;
}
.ia-prose :is(p, li, td, th) code {
  overflow-wrap: anywhere;
}
.ia-prose h4 {
  font:
    550 20px/1.4 Rubik,
    system-ui,
    sans-serif;
  margin: 1.4em 0 0.5em;
}
.ia-prose blockquote {
  margin: 1.4em 0;
  padding: 0 0 0 1em;
  border-left: 2px solid #aa7644;
  color: #425062;
}
.ia-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1.2em 1.7em;
}
.ia-table-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.89em;
  line-height: 1.4;
}
.ia-table-scroll :is(th, td) {
  border: 1px solid var(--ia-line);
  padding: 0.65em 0.8em;
  text-align: left;
  vertical-align: top;
}
.ia-table-scroll th {
  color: var(--ink);
  background: #e6e3dc;
  font-weight: 650;
}
.ia-table-scroll tr:nth-child(even) td {
  background: #f2efe8;
}
.ia-prose .pitfall {
  border-left: 2px solid #aa7644;
  padding-left: 1em;
}
.ia-related .muted {
  color: #54616d;
}
@media (max-width: 760px) {
  .ia-toc summary {
    min-height: 48px;
  }
  .ia-table-scroll table {
    min-width: 26rem;
  }
  .ia-copy {
    min-height: 44px;
  }
}
