:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172838;
  background: #f7f3eb;
  font-synthesis: none;
  scroll-behavior: smooth;
  --ink: #172838;
  --muted: #5b6b79;
  --paper: #f7f3eb;
  --ivory: #f8f1e7;
  --copper: #a15f49;
  --blue: #2867df;
  --line: #ded8cd;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 112px; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #6ea5ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 18px; top: -64px; z-index: 90; padding: 11px 16px; border-radius: 0 0 8px 8px; background: white; box-shadow: 0 8px 20px #17283833; }
.skip-link:focus { top: 0; }

.site-header { position: sticky; top: 0; z-index: 60; background: #f8f1e7ed; border-bottom: 1px solid #dfd1c0; box-shadow: 0 5px 18px #49362110; backdrop-filter: blur(14px); }
.header-inner { width: min(1450px, calc(100% - 48px)); height: 88px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex: none; min-width: 0; gap: 13px; }
.brand img { width: 163px; height: auto; filter: drop-shadow(0 2px 2px #2e221c26); }
.brand-divider { width: 1px; height: 27px; background: #cdbda9; }
.brand-docs { font-size: 17px; font-weight: 750; letter-spacing: -.04em; color: #33485a; }
.header-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; color: #34485a; font-size: 13px; font-weight: 650; }
.header-nav a { padding: 12px 0; transition: color .15s; }
.header-nav a:hover, .header-nav a:focus-visible, .header-nav a.current-section { color: var(--copper); }
.header-tools { display: flex; align-items: center; gap: 13px; }
.search-wrap { position: relative; }
.search-wrap input { width: 230px; height: 38px; padding: 0 38px 0 13px; border: 1px solid #d8cbbb; border-radius: 8px; color: var(--ink); background: #fffaf4; font-size: 12px; }
.search-wrap input::placeholder { color: #788391; }
.search-wrap kbd { position: absolute; right: 11px; top: 9px; min-width: 18px; height: 19px; border: 1px solid #d8cbbb; border-radius: 4px; color: #75818c; background: #f8f3eb; text-align: center; font: 11px/17px ui-monospace, monospace; pointer-events: none; }
#search-results { position: absolute; top: 45px; right: 0; width: min(420px, calc(100vw - 40px)); max-height: min(65vh, 480px); overflow-y: auto; padding: 8px; border: 1px solid #d7c9b8; border-radius: 11px; background: #fffdf9; box-shadow: 0 24px 60px #1728382e; }
#search-results a { display: block; padding: 11px 12px; border-radius: 7px; }
#search-results a:hover, #search-results a:focus-visible, #search-results a.is-selected { background: #edf3fc; }
#search-results strong { display: block; color: #1f3447; font-size: 13px; }
#search-results span, #search-results p { display: block; margin: 3px 0 0; color: #657584; font-size: 11px; line-height: 1.5; }
.header-cta { display: inline-flex; gap: 7px; align-items: center; justify-content: center; padding: 11px 14px; border-radius: 7px; color: white; background: var(--blue); white-space: nowrap; font-size: 12px; font-weight: 750; box-shadow: 0 9px 20px #1d56b52e; transition: background .15s, transform .15s; }
.header-cta:hover { background: #1857cd; transform: translateY(-1px); }
.sidebar-toggle { display: none; padding: 9px 12px; border: 1px solid #d8cbbb; border-radius: 7px; color: var(--ink); background: #fffaf4; font-size: 12px; font-weight: 700; }

.eyebrow { display: inline-flex; align-items: center; gap: 11px; color: #96583f; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow i { display: inline-block; width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.05em; }
h1 em, h2 em { color: var(--copper); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.button-primary, .button-secondary { display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 15px 19px; border-radius: 8px; font-size: 13px; font-weight: 750; transition: transform .16s, box-shadow .16s; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 12px 25px #1d56b52e; }
.button-secondary { color: #213a50; background: #fffaf3; border: 1px solid #d9d1c5; }
.button-primary:hover, .button-secondary:hover { transform: translateY(-2px); }

.home-hero { padding: 34px 24px 0; }
.home-hero-inner { position: relative; display: grid; grid-template-columns: 51% 49%; align-items: stretch; width: min(1400px, 100%); min-height: 508px; margin: auto; overflow: hidden; border: 1px solid #d4c6b7; border-radius: 18px; background: #efe4d5; box-shadow: 0 28px 65px #573b2624; }
.home-hero-copy { position: relative; z-index: 1; padding: clamp(42px, 6vw, 86px) 32px clamp(42px, 6vw, 80px) clamp(36px, 6vw, 86px); background: linear-gradient(90deg, #f1e6d7 80%, #f1e6d7cf); }
.home-hero h1 { margin: 24px 0 24px; font-size: clamp(48px, 5.2vw, 82px); line-height: 1.04; font-weight: 700; }
.home-hero p { max-width: 43ch; margin-bottom: 32px; color: #4b5d69; font-size: 17px; line-height: 1.65; }
.home-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.home-topics { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 94px 0 110px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 31px; }
.home-section-heading h2 { max-width: 18ch; margin: 15px 0 0; font-size: clamp(35px, 4vw, 58px); line-height: 1.07; font-weight: 650; }
.home-section-heading p { max-width: 33ch; margin: 0 0 4px; color: #586d7c; line-height: 1.65; font-size: 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic-card { position: relative; min-height: 193px; padding: 25px 26px 28px; border: 1px solid #d9d1c5; border-radius: 11px; background: #fffdf9; box-shadow: 0 6px 19px #5748320b; transition: transform .16s, border-color .16s, box-shadow .16s; }
.topic-card:hover { transform: translateY(-3px); border-color: #b8a894; box-shadow: 0 16px 32px #5748321a; }
.card-kicker { color: #a05d45; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topic-card h2 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -.035em; }
.topic-card p { max-width: 31ch; margin: 0; color: #657584; font-size: 13px; line-height: 1.6; }
.card-arrow { position: absolute; right: 24px; top: 24px; color: #a05d45; font-size: 19px; }
.home-next { display: flex; align-items: center; gap: 38px; padding: 57px max(24px, calc((100% - 1240px)/2)); color: #f7f3eb; background: #162737; }
.home-next > div { flex: 1.2; }
.home-next h2 { margin: 14px 0 0; font-size: clamp(34px, 3.5vw, 52px); line-height: 1.1; }
.home-next h2 em { color: #e7b79d; }
.home-next p { flex: 1; max-width: 35ch; margin: 0; color: #c4d0d9; font-size: 14px; line-height: 1.65; }
.home-next .eyebrow { color: #e5b9a3; }
.home-next .button-primary { flex: none; }

.docs-layout { width: min(1450px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 234px minmax(0, 740px) minmax(160px, 1fr); gap: clamp(28px, 3vw, 55px); align-items: start; }
.docs-sidebar { position: sticky; top: 110px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 32px 23px 42px 0; border-right: 1px solid #ddd5c8; }
.sidebar-home { display: block; margin: 0 0 24px; padding: 7px 9px; color: #294c84; font-size: 13px; font-weight: 750; }
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 21px; }
.nav-label { padding: 7px 9px; color: #9a5c45; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-group a { display: block; padding: 8px 10px; border-radius: 7px; color: #536675; font-size: 13px; line-height: 1.45; }
.nav-group a:hover, .nav-group a:focus-visible { color: #1d4f9a; background: #edf2f6; }
.nav-group a[aria-current="page"] { color: #1b478e; background: #e5eefb; font-weight: 750; }
.article-main { min-width: 0; padding: 32px 0 112px; }
.breadcrumbs { display: flex; gap: 9px; color: #73808a; font-size: 12px; }
.breadcrumbs a:hover { color: #1d56b5; text-decoration: underline; }
.article-header { padding: 30px 0 36px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 14px 0 13px; font-size: clamp(40px, 4vw, 58px); line-height: 1.05; }
.article-header p { max-width: 59ch; margin: 0; color: #5e6e7d; font-size: 16px; line-height: 1.65; }
.article-content { padding: 27px 0 55px; color: #33495a; font-size: 15px; line-height: 1.78; }
.article-content > p:first-child { font-size: 17px; color: #405668; line-height: 1.7; }
.article-content h2 { margin: 49px 0 15px; padding-top: 6px; color: #1d3144; font-size: 29px; line-height: 1.2; font-weight: 690; scroll-margin-top: 105px; }
.article-content h3 { margin: 29px 0 12px; color: #22384b; font-size: 20px; }
.article-content p { margin-bottom: 19px; }
.article-content a { color: #235bb8; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #a15f49; }
.article-content strong { color: #20374b; }
.article-content ul, .article-content ol { padding-left: 25px; margin: 0 0 22px; }
.article-content li { margin: 7px 0; padding-left: 3px; }
.article-content blockquote { margin: 27px 0; padding: 20px 22px; border-left: 3px solid #b86a4e; border-radius: 0 8px 8px 0; color: #435667; background: #eee4d7; }
.article-content blockquote p { margin: 0; }
.article-content img { width: 100%; height: auto; margin: 25px 0 33px; border: 1px solid #cbd4dc; border-radius: 9px; box-shadow: 0 16px 35px #1f34472b; background: #e7edf3; }
.article-content table { width: 100%; margin: 25px 0 28px; border-collapse: collapse; background: #fffdfa; font-size: 13px; }
.article-content th, .article-content td { padding: 12px 13px; border: 1px solid #dad4c9; text-align: left; vertical-align: top; }
.article-content th { color: #203d58; background: #e8edf1; font-weight: 750; }
.article-content tr:nth-child(even) td { background: #fbf8f1; }
.article-content :not(pre) > code { padding: 2px 5px; border: 1px solid #dadfe3; border-radius: 4px; color: #2b4760; background: #edf1f3; font: .88em ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.article-content pre { position: relative; overflow-x: auto; margin: 22px 0 28px; padding: 22px 20px; border-radius: 9px; color: #e6edf5; background: #172838; font: 12px/1.7 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.article-content pre code { font: inherit; white-space: pre; }
.copy-code { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border: 1px solid #6e8294; border-radius: 5px; color: #eef5fc; background: #31495d; font-size: 11px; }
.copy-code:hover { background: #42637d; }
.article-pagination { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-pagination a { flex: 1; display: flex; flex-direction: column; gap: 5px; max-width: 50%; padding: 17px; border: 1px solid #d8d0c4; border-radius: 8px; background: #fffdf8; }
.article-pagination a:last-child { margin-left: auto; text-align: right; }
.article-pagination a:hover { border-color: #b6a48e; }
.article-pagination small { color: #7d8b94; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.article-pagination strong { color: #1d456f; font-size: 13px; line-height: 1.4; }
.page-toc { position: sticky; top: 126px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 150px); overflow-y: auto; padding: 14px 0 0 0; color: #6a7884; }
.page-toc strong { color: #996047; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.page-toc a { font-size: 12px; line-height: 1.4; }
.page-toc a:hover { color: #245baa; }

.site-footer { padding: 0 24px; border-top: 1px solid #d8c8b6; color: #24384a; background: #eee3d4; }
.footer-inner { width: min(1240px, 100%); margin: auto; display: flex; justify-content: space-between; gap: 35px; padding: 45px 0 35px; }
.footer-inner img { width: 178px; height: auto; }
.footer-inner p { margin: 13px 0 0; color: #745e50; font: italic 16px/1.5 Georgia, serif; }
.footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; color: #435565; font-size: 13px; }
.footer-inner a:hover { color: #8b5743; text-decoration: underline; }
.footer-bottom { width: min(1240px, 100%); margin: auto; padding: 19px 0 25px; border-top: 1px solid #d3c3b2; color: #65717a; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .language-selector-trigger { min-height: 34px; padding: 6px 9px; color: #34485a; background: rgba(255,255,255,.42); border-color: #d5c5b4; font-size: 11px; }
.site-footer .language-selector-trigger:hover, .site-footer .language-selector-trigger[aria-expanded="true"] { background: #fffaf4; border-color: #baa48e; }
.site-footer .language-selector-trigger img { box-shadow: 0 0 0 1px #d4c5b7; }
.site-footer .language-selector-menu { top: auto; bottom: calc(100% + 8px); }

@media (max-width: 1210px) {
  .header-nav { gap: 14px; }
  .header-inner { gap: 16px; }
  .search-wrap input { width: 205px; }
  .docs-layout { grid-template-columns: 220px minmax(0, 760px); }
  .page-toc { display: none; }
}
@media (max-width: 1180px) { .header-nav { display: none; } .header-tools { margin-left: auto; } }
@media (max-width: 980px) {
  .header-nav { display: none; }
  .header-tools { margin-left: auto; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-next { flex-wrap: wrap; }
  .home-next > div { flex-basis: 100%; }
  .home-next p { flex: 1; }
}
@media (max-width: 760px) {
  .header-inner { width: min(100% - 26px, 1450px); height: 73px; }
  .brand img { width: 132px; }
  .brand-docs { font-size: 14px; }
  .search-wrap input { width: min(34vw, 220px); }
  .search-wrap input::placeholder { color: transparent; }
  .search-wrap kbd { display: none; }
  .header-cta { display: none; }
  .sidebar-toggle { display: inline-flex; }
  .docs-layout { width: min(100% - 34px, 740px); display: block; }
  .docs-sidebar { display: none; position: fixed; top: 73px; left: 0; z-index: 50; width: min(310px, 88vw); max-height: calc(100vh - 73px); overflow-y: auto; padding: 23px 23px 40px; border: 1px solid #ded1c1; border-top: 0; border-radius: 0 0 12px 0; background: #fffaf3; box-shadow: 20px 20px 50px #17283833; }
  .docs-sidebar.is-open { display: block; }
  .article-main { padding-top: 24px; }
  .home-hero { padding: 18px 17px 0; }
  .home-hero-inner { display: flex; flex-direction: column-reverse; }
  .home-hero img { height: 255px; object-position: 65% 35%; }
  .home-hero-copy { padding: 35px 31px 38px; }
  .home-hero h1 { font-size: clamp(40px, 10vw, 60px); }
  .home-hero p { font-size: 15px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .home-topics { width: min(100% - 34px, 1240px); padding: 65px 0 77px; }
  .home-next { padding: 45px 24px; }
}
@media (max-width: 520px) {
  .brand-divider, .brand-docs { display: none; }
  .brand img { width: 122px; }
  .header-tools { gap: 7px; }
  .search-wrap input { width: 40px; padding: 0 9px; }
  .search-wrap::before { content: ""; position: absolute; left: 11px; top: 9px; width: 12px; height: 12px; border: 2px solid #657584; border-radius: 50%; pointer-events: none; }
  .search-wrap::after { content: ""; position: absolute; left: 24px; top: 23px; width: 8px; height: 2px; background: #657584; transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
  .search-wrap:focus-within::before, .search-wrap:focus-within::after { display: none; }
  .search-wrap input:focus { position: absolute; top: -19px; right: 0; z-index: 2; width: min(67vw, 260px); padding-left: 13px; background: #fffdf9; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 160px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .home-next { flex-direction: column; align-items: flex-start; gap: 19px; }
  .home-next > div, .home-next p { flex: none; max-width: 40ch; }
  .home-next .button-primary { align-self: flex-start; }
  .article-header h1 { font-size: 39px; }
  .article-content { font-size: 14px; }
  .article-content table { display: block; overflow-x: auto; }
  .article-pagination { flex-direction: column; }
  .article-pagination a { max-width: none; }
  .article-pagination a:last-child { margin-left: 0; text-align: left; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .footer-inner nav { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
