:root {
  color-scheme: light;
  --ink: #202320;
  --ink-muted: #474f47;
  --paper: #f1f3f0;
  --surface: #fbfcfa;
  --line: #d5dbd4;
  --line-strong: #a7b1a7;
  --charcoal: #171918;
  --charcoal-raised: #202321;
  --orange: #f2a23a;
  --orange-ink: #633700;
  --green: #365647;
  --focus: #824900;
  --measure: 72ch;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--orange-ink); }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: #f4bd72; color: #1b1d1a; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topbar :focus-visible, .footer :focus-visible { outline-color: #ffc06f; }
svg { display: block; }
.arrow-icon { display: inline-block; width: .9rem; height: .9rem; vertical-align: -.13em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; z-index: 20; left: 1rem; top: 1rem; transform: translateY(-180%); padding: .7rem 1rem; background: var(--surface); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.topbar { min-height: 76px; padding: 0 clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--charcoal); color: #f7f7f2; border-bottom: 1px solid #3a3f3a; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: inherit; font-weight: 730; letter-spacing: -.025em; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand-light { color: #c3c9c0; font-weight: 440; }
.top-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: .9rem; }
.top-links a { color: #eff1ec; text-decoration: none; }
.top-links a:hover, .footer a:hover { color: var(--orange); }
.top-links span { color: #b7c0b5; font-size: .8em; }

main { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 5rem) 5.5rem; }
.intro { min-height: 330px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.intro-copy { max-width: 830px; padding: 3.7rem 0 3.3rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.15rem; font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: .99; letter-spacing: -.047em; font-weight: 730; }
h1 span { color: #a25600; }
.intro-lede { max-width: 62ch; margin-bottom: 0; color: var(--ink-muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.intro-mark { flex: 0 0 min(23%, 210px); color: #b56b1c; }
.intro-mark svg { width: 100%; height: auto; }

.featured { padding: 2.5rem 0 3.3rem; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { margin: 0; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.025em; }
.carousel-controls { display: flex; gap: .55rem; }
.round-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color 140ms ease-out, border-color 140ms ease-out, transform 140ms ease-out; }
.round-button:hover { transform: translateY(-1px); background: #e4e9e3; border-color: #747c71; }
.round-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel { padding: 0; }
.slide-stage { min-height: 214px; overflow: hidden; border: 1px solid #343a34; background: var(--charcoal-raised); color: #f5f4ef; }
.slide { min-height: 212px; display: grid; grid-template-columns: minmax(150px, 25%) 1fr minmax(130px, 18%); align-items: center; gap: clamp(1.2rem, 4vw, 4rem); padding: clamp(1.4rem, 4vw, 2.7rem); animation: settle-in 220ms cubic-bezier(.2,.8,.2,1) both; }
.slide-symbol { display: grid; place-items: center; width: 100%; min-height: 150px; border: 1px solid #51594f; color: var(--orange); background: #282c29; }
.slide-symbol svg { width: min(82px, 40%); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.slide-copy { max-width: 57ch; }
.slide-copy .slide-kind { margin-bottom: .5rem; color: #e9a64c; font-size: .75rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; }
.slide-copy h3 { margin: 0 0 .55rem; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -.028em; line-height: 1.16; }
.slide-copy p { max-width: 54ch; margin: 0; color: #d0d5ce; }
.slide-link { display: inline-flex; justify-self: end; align-items: center; gap: .7rem; min-height: 46px; padding: .7rem .95rem; border: 1px solid #dca358; color: #ffe3bd; font-weight: 670; text-decoration: none; white-space: nowrap; }
.slide-link:hover { color: white; background: #754719; }
.carousel-footer { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.slide-dots { display: flex; gap: .65rem; align-items: center; }
.slide-dot { width: 11px; height: 11px; padding: 0; border: 1px solid #737a70; border-radius: 50%; background: transparent; cursor: pointer; }
.slide-dot[aria-current="true"] { width: 27px; border-radius: 20px; border-color: #965300; background: #965300; }
.slide-count { color: #434b42; font-size: .82rem; font-variant-numeric: tabular-nums; }
@keyframes settle-in { from { opacity: .58; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }

.docs-layout { display: grid; grid-template-columns: minmax(235px, 285px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.3rem); align-items: start; padding: 3.2rem 0 1rem; }
.sidebar { position: sticky; top: 1rem; min-width: 0; max-height: calc(100vh - 2rem); overflow: auto; padding-right: .35rem; scrollbar-color: #a2a89e transparent; scrollbar-width: thin; }
.sidebar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0 0 1rem; }
.sidebar-heading h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.page-total { color: var(--ink-muted); font-size: .78rem; white-space: nowrap; }
.search-box { display: flex; align-items: center; gap: .55rem; min-height: 44px; margin-bottom: 1.35rem; padding: .4rem .65rem; border: 1px solid var(--line-strong); background: var(--surface); }
.search-box:focus-within { border-color: #7a4b15; box-shadow: 0 0 0 2px #d9a45e; }
.search-box svg { width: 17px; flex: 0 0 17px; fill: none; stroke: #525a51; stroke-width: 1.7; stroke-linecap: round; }
.search-box input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.search-box input::placeholder { color: #4b524b; opacity: 1; }
.search-box kbd { padding: .08rem .33rem; border: 1px solid #c7cbc2; color: #4b524b; font-size: .72rem; }
.nav-section { margin-bottom: 1.3rem; }
.nav-section h3 { margin: 0 0 .4rem; padding: 0 .35rem; color: #3f4a3d; font-size: .73rem; font-weight: 740; letter-spacing: .095em; text-transform: uppercase; }
.nav-section ul { display: grid; gap: .12rem; margin: 0; padding: 0; list-style: none; }
.nav-section a { display: block; padding: .38rem .48rem; border-radius: 2px; color: #343a34; font-size: .88rem; line-height: 1.4; text-decoration: none; }
.nav-section a:hover { background: #e5eae4; color: #633700; }
.nav-section a[aria-current="page"] { background: #e2e9e1; color: #542e00; font-weight: 700; }
.empty-search { margin: .5rem 0; color: #4b524b; font-size: .9rem; }

.article { min-width: 0; min-height: 520px; }
.article-meta { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
.meta-rule { width: 24px; height: 1px; background: #9aa298; }
.article-meta #article-source { color: #414941; font-weight: 550; letter-spacing: .015em; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; text-transform: none; }
.article > h2 { max-width: 22ch; margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -.04em; }
.article-lede { max-width: var(--measure); margin-bottom: 2rem; color: #484f48; font-size: 1.13rem; }
.prose { max-width: var(--measure); font-size: 1rem; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 2.25em 0 .6em; line-height: 1.22; letter-spacing: -.025em; }
.prose h1 { font-size: 2.1rem; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.28rem; }
.prose h4 { font-size: 1.08rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { padding-left: .2em; margin: .28em 0; }
.prose li::marker { color: #784500; }
.prose a { color: #653700; text-decoration-thickness: .08em; }
.prose a:hover { color: #9b5000; }
.prose blockquote { margin-left: 0; padding: .2rem 0 .2rem 1rem; border-left: 2px solid #899387; color: #454d46; }
.prose code { padding: .1em .28em; border: 1px solid #d9dfd8; background: #e9ede8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .89em; overflow-wrap: anywhere; }
.prose pre { max-width: 100%; overflow: auto; padding: 1rem 1.15rem; background: #202421; color: #f3f3ed; scrollbar-color: #626b61 #282d29; }
.prose pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.prose table { display: block; width: 100%; overflow: auto; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { padding: .58rem .7rem; border: 1px solid #bfc4bb; text-align: left; vertical-align: top; }
.prose th { background: #e8ece7; }
.prose hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line-strong); }
.prose img { max-width: 100%; height: auto; }
.article-loading, .article-error { max-width: var(--measure); padding: 1rem; border: 1px solid var(--line-strong); background: var(--surface); }
.article-error { color: #702300; border-color: #ad785f; }
.welcome-content h3 { margin-top: 0; }
.welcome-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.5rem 0 2rem; }
.welcome-links a { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem; border: 1px solid var(--line-strong); color: #263229; background: #e8ede8; font-weight: 650; text-decoration: none; }
.welcome-links a:hover { background: #dce6dc; }
.welcome-links span { color: #794500; }
.source-note { padding-top: 1rem; border-top: 1px solid var(--line); color: #4b524b; font-size: .91rem; }

.footer { padding: 2.8rem clamp(1.25rem, 5vw, 5rem) 1rem; background: var(--charcoal); color: #f1f2ed; }
.footer-main, .footer-bottom { width: min(1340px, 100%); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: minmax(230px, 1.7fr) repeat(3, minmax(140px, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .brand { font-size: 1.15rem; }
.footer-brand p { max-width: 27ch; margin: .75rem 0 0; color: #c6cbc4; font-size: .91rem; }
.footer-column { display: flex; flex-direction: column; align-items: start; gap: .52rem; }
.footer-column h2 { margin: .2rem 0 .35rem; color: #e9aa5c; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.footer-column a, .footer-bottom a { color: #eff1ec; font-size: .9rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 .35rem; border-top: 1px solid #464b45; color: #c6cbc4; font-size: .82rem; }
.footer-bottom a { color: #f5c17e; }

@media (max-width: 900px) {
  .intro { min-height: 290px; }
  .intro-mark { flex-basis: 22%; }
  .slide { grid-template-columns: 130px 1fr; gap: 1.3rem; }
  .slide-symbol { min-height: 125px; }
  .slide-link { grid-column: 2; justify-self: start; }
  .docs-layout { grid-template-columns: minmax(205px, 250px) minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 680px) {
  .topbar { min-height: 66px; padding: 0 1rem; gap: 1rem; }
  .brand { gap: .5rem; font-size: .91rem; }
  .brand img { width: 25px; height: 25px; }
  .top-links { gap: .8rem; font-size: .78rem; }
  .top-links a:first-child { display: none; }
  main { padding: 0 1rem 3.5rem; }
  .intro { min-height: 0; }
  .intro-copy { padding: 3rem 0; }
  .intro-mark { display: none; }
  h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .featured { padding: 2rem 0 2.4rem; }
  .section-heading h2 { font-size: 1.35rem; }
  .slide { min-height: 0; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .slide-symbol { display: none; }
  .slide-link { grid-column: 1; }
  .docs-layout { display: flex; flex-direction: column; gap: 1.8rem; padding-top: 2rem; }
  .sidebar { position: static; width: 100%; max-height: 390px; padding: 0 0 .5rem; border-bottom: 1px solid var(--line); }
  .nav-section ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { min-height: 360px; }
  .article > h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .welcome-links { grid-template-columns: 1fr; }
  .footer { padding: 2.2rem 1rem 1rem; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
