@font-face {
    font-family: "MT Noto Sans";
    src: url("../fonts/noto-sans-variable.woff2") format("woff2");
    font-style: normal; font-weight: 100 900; font-display: swap;
}
@font-face {
    font-family: "MT Noto Sans";
    src: url("../fonts/noto-sans-italic-variable.woff2") format("woff2");
    font-style: italic; font-weight: 100 900; font-display: swap;
}
@font-face {
    font-family: "MT Roboto Slab";
    src: url("../fonts/roboto-slab-variable.woff2") format("woff2");
    font-style: normal; font-weight: 100 900; font-display: swap;
}
:root {
    --sidebar-width: 288px;
    --sidebar-bg: #f3f2ec;
    --sidebar-border: #dcded9;
    --paper: #fbfaf6;
    --text-main: #1e2d3c;
    --text-muted: #616e79;
    --hover-bg: #e9edf0;
    --active-bg: #e1e9ef;
    --content-width: 52rem;
    --brand-blue: #285a7c;
    --brand-blue-dark: #1c405b;
    --brand-gold: #c79b3a;
    --font-body: "MT Noto Sans", "Segoe UI", Arial, sans-serif;
    --font-heading: "MT Roboto Slab", Georgia, "Times New Roman", serif;
    color-scheme: light;
}
html, body { min-height: 100%; background: var(--paper); color: var(--text-main); }
html { scroll-padding-top: 24px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; }
button, input, select, textarea { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: rgb(40 90 124 / 12%); }
::selection { background: #dce8ee; color: #163d59; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 18px; border-radius: 5px; background: var(--text-main); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
.site-shell { min-height: 100vh; }

/* A quiet, fixed working index. The complete tree stays usable without JS. */
.site-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); }
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 27px 16px 20px; }
.sidebar-top { display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; margin-bottom: 22px; padding-bottom: 23px; border-bottom: 1px solid var(--sidebar-border); }
.sidebar-identity { min-width: 0; }
.sidebar-brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 3px 8px; color: var(--text-main); font-family: var(--font-heading); font-size: 23px; font-weight: 650; letter-spacing: -.045em; text-decoration: none; }
.sidebar-brand:hover { color: var(--brand-blue); }
.brand-mark { position: relative; display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 36px; border: 1px solid #b0bfca; border-radius: 3px; background: #fffdf7; color: var(--brand-blue-dark); font-family: Georgia, serif; font-size: 26px; font-style: italic; font-weight: 400; line-height: 1; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-gold); }
.sidebar-tagline { max-width: 26ch; margin: 11px 8px 0; color: #586875; font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-style: italic; line-height: 1.55; }
.sidebar-close { display: none; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 5px; background: transparent; color: var(--text-main); font-size: 30px; line-height: 1; cursor: pointer; }
.sidebar-nav { min-height: 0; overflow-y: auto; padding: 2px 3px 22px; scrollbar-width: thin; scrollbar-color: #bac4c9 transparent; }
.sidebar-caption { margin: 0 12px 13px; color: #61717a; font-size: 11px; font-weight: 650; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-main-link, .doc-section-line > a, .doc-page-link { display: block; border-radius: 4px; color: #3f4c57; text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
.sidebar-main-link { min-height: 44px; padding: 11px 12px; margin: 2px 0; font-size: 14px; font-weight: 550; }
.sidebar-main-link:hover, .doc-section-line:hover, .doc-page-link:hover { background: var(--hover-bg); color: var(--brand-blue-dark); }
.sidebar-main-link.is-active, .doc-section-line.is-active, .doc-page-link.is-active { background: var(--active-bg); color: var(--brand-blue-dark); font-weight: 650; box-shadow: inset 3px 0 0 var(--brand-blue); }
.doc-section-line.is-branch, .sidebar-main-link.is-branch, .doc-page-link.is-branch { color: var(--brand-blue-dark); font-weight: 650; }
.doc-section-line.is-branch > a, .doc-section-line.is-active > a { color: inherit; }
.doc-tree, .doc-submenu { margin: 0; padding: 0; list-style: none; }
.doc-section-line { display: flex; align-items: center; margin: 2px 0; border-radius: 4px; }
.doc-section-line > a { min-width: 0; min-height: 44px; flex: 1; padding: 11px 3px 11px 12px; font-size: 13px; font-weight: 550; }
.section-toggle { display: none; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; margin-right: 0; border: 0; border-radius: 4px; background: transparent; color: #607487; cursor: pointer; }
.navigation-enhanced .section-toggle { display: grid; }
.section-toggle:hover { background: #dce5eb; }
.section-toggle span { display: block; transform: rotate(0deg); transition: transform .16s ease; font-size: 25px; }
.section-toggle span.is-open { transform: rotate(90deg); }
.doc-submenu { margin: 5px 0 9px 13px; padding-left: 8px; border-left: 1px solid #cbd5da; }
.doc-page-link { min-height: 44px; padding: 11px 10px; margin: 1px 0; font-size: 12px; }
.sidebar-bottom-links { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--sidebar-border); }

/* The reading column keeps its original maximum width, including the footer. */
.site-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.content-wrap { width: calc(100% - 88px); max-width: var(--content-width); margin: 0 auto; padding: 37px 0 30px; }
.page-heading { margin-bottom: 35px; padding: 9px 0 27px; border-bottom: 1px solid var(--sidebar-border); }
.page-heading-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-heading-top > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.page-eyebrow { margin: 0 0 21px; color: var(--brand-blue); font-size: 11px; font-weight: 650; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.page-eyebrow::before { content: ""; display: inline-block; width: 24px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--brand-gold); }
.page-eyebrow span { padding: 0 5px; color: #9a8146; }
.page-title.title { margin: 0; color: var(--text-main); font-family: var(--font-heading); font-size: clamp(30px, 3.15vw, 43px); font-weight: 550; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.page-subtitle.subtitle { max-width: 44rem; margin: 18px 0 0 !important; color: var(--text-muted) !important; font-size: 16px; font-weight: 400; line-height: 1.8; }
.language-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0 11px; border: 1px solid #cdd4d7; border-radius: 4px; background: transparent; color: var(--brand-blue-dark); font-size: 11px; font-weight: 650; letter-spacing: .05em; text-decoration: none; }
.language-link:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; }
.language-link.is-unavailable, .mobile-language.is-unavailable { color: #66747d; background: transparent; cursor: default; }
.site-breadcrumbs { margin: 0 0 25px; color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.site-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 0; margin: 0; padding: 0; list-style: none; }
.site-breadcrumbs li { display: inline; min-width: 0; overflow-wrap: anywhere; }
.site-breadcrumbs li + li::before { content: "/"; display: inline-block; margin: 0 9px; color: #9aa5ab; }
.site-breadcrumbs a { color: var(--brand-blue); text-decoration: none; }
.site-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* One server-rendered search form; search behavior is unchanged. */
.site-search { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 18px; margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--sidebar-border); }
.search-label { display: block; color: #596a78; font-size: 12px; font-weight: 500; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-input { display: block; min-width: 0; width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #c3cdd1; border-radius: 5px; background: #fffefb; color: var(--text-main); font-size: 15px; line-height: 1.4; }
.search-input::placeholder { color: #697680; opacity: 1; }
.search-input:hover { border-color: #8ba2b2; }
.search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 17px; border: 1px solid #c3cdd1; border-radius: 5px; background: #eef1f1; color: var(--brand-blue-dark); font-size: 12px; font-weight: 650; line-height: 1.4; cursor: pointer; }
.search-submit:hover { border-color: var(--brand-blue); background: #e0e9ee; }
.search-submit svg { flex: 0 0 19px; }
.search-query { margin: 1.5rem 0; padding: 22px 24px; border: 1px solid #d4dde1; border-radius: 6px; background: #f0f4f5; color: var(--text-main); white-space: pre-wrap; overflow-wrap: anywhere; }

/* A typesetting-themed home page, using real product links and a local demo. */
.home-hero { padding: 7px 0 43px; border-bottom: 1px solid var(--sidebar-border); }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hero-topline .page-eyebrow { margin: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); align-items: center; gap: 34px; }
.hero-copy { min-width: 0; }
.home-title { margin: 0 0 23px; color: var(--text-main); font-family: var(--font-heading); font-size: clamp(38px, 3.75vw, 54px); font-weight: 550; line-height: 1.16; letter-spacing: -.045em; }
.home-title > span, .home-title > em { display: block; }
.home-title > em { margin-top: 7px; color: var(--brand-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.03em; font-style: italic; font-weight: 400; letter-spacing: -.04em; }
.hero-description { max-width: 42ch; margin: 0; color: #596776; font-size: 15px; line-height: 1.85; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.action-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 16px; border: 1px solid #b7c3cb; border-radius: 5px; color: var(--brand-blue-dark); background: transparent; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s; }
.action-link > span { font-size: 17px; font-weight: 400; line-height: 1; }
.action-link.is-primary { border-color: var(--brand-blue-dark); background: var(--brand-blue-dark); color: #fff; }
.action-link.is-primary:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.action-link.is-secondary:hover { border-color: var(--brand-blue); background: #eaf0f3; color: var(--brand-blue-dark); }
.hero-note { margin: 18px 0 0; color: #6a757b; font-size: 11px; line-height: 1.7; }
.typeset-demo { min-width: 0; padding-top: 4px; }
.demo-caption { display: flex; justify-content: space-between; gap: 12px; margin: 0 5px 12px; color: var(--brand-blue); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-style: italic; line-height: 1.3; }
.demo-caption > span:last-child { padding-right: 12px; font-size: 23px; }
.demo-sheet { position: relative; padding: 21px 19px 22px; border: 1px solid #c9d3d8; border-radius: 3px; background: #fff; box-shadow: 7px 7px 0 #eeece4; transform: rotate(-1deg); }
.demo-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e0e5e8; color: #607584; font-size: 9px; font-weight: 550; line-height: 1.7; letter-spacing: .075em; }
.demo-paragraph { display: grid; gap: 9px; margin: 22px 0 18px; }
.demo-paragraph > span { display: block; height: 4px; border-radius: 1px; background: #dce3e7; }
.demo-paragraph > span:last-child { width: 69%; }
.demo-equation-line { position: relative; display: flex; align-items: baseline; gap: 8px; min-height: 39px; padding: 7px 0 8px; border-bottom: 1px dashed #b99a53; color: #354958; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.demo-formula { display: inline-block; color: var(--brand-blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-style: italic; line-height: 1; transform: translateY(-10px); transition: transform .45s ease; }
.demo-formula sup { font-size: .58em; }
.demo-sheet.is-aligned .demo-formula { transform: translateY(0); }
.demo-baseline-label { margin-top: 5px; color: #8a7037; font-size: 9px; line-height: 1.5; text-align: right; }
.demo-paragraph.is-bottom { margin: 20px 0 5px; }
.demo-paragraph.is-bottom > span:nth-child(2) { width: 91%; }
.demo-paragraph.is-bottom > span:last-child { width: 48%; }
.demo-proofmark { position: absolute; right: 19px; bottom: 15px; color: #4b7966; font-family: Georgia, serif; font-size: 26px; opacity: 0; transition: opacity .25s ease; }
.demo-sheet.is-aligned .demo-proofmark { opacity: 1; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; }
.demo-status { min-width: 0; max-width: 24ch; margin: 0; color: #5f707b; font-size: 11px; line-height: 1.6; }
.demo-button { flex-shrink: 0; min-height: 44px; padding: 9px 13px; border: 1px solid #becbd3; border-radius: 4px; background: transparent; color: var(--brand-blue-dark); font-size: 11px; font-weight: 600; cursor: pointer; }
.demo-button[hidden] { display: none; }
.demo-button:hover { border-color: var(--brand-blue); background: #e9eff2; }
.demo-footnote { margin: 11px 0 0; color: #61717a; font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-style: italic; text-align: center; }
.home-scenarios { margin: 31px 0 0; }
.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading-row h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; font-style: italic; line-height: 1.4; letter-spacing: -.025em; }
.section-heading-row > span { color: #61717a; font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.scenario-card { display: block; min-width: 0; padding: 20px 18px 23px; border: 1px solid #d8dedf; border-top: 2px solid #b8c6ce; border-radius: 3px; color: var(--text-main); text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.scenario-card:hover { border-color: #8ca7b8; background: #fffefa; color: var(--brand-blue-dark); transform: translateY(-3px); }
.scenario-index { display: flex; justify-content: space-between; color: #63717a; font-size: 11px; line-height: 1.5; }
.scenario-index > span { color: var(--brand-blue); font-size: 18px; line-height: 1; }
.scenario-card h3 { margin: 22px 0 10px; font-family: var(--font-heading); font-size: 17px; font-weight: 550; line-height: 1.5; letter-spacing: -.025em; }
.scenario-card p { margin: 0; color: #64717a; font-size: 12px; line-height: 1.85; }
.home-reading-heading { margin: 55px 0 0; padding-top: 34px; border-top: 1px solid var(--sidebar-border); }
.section-eyebrow { margin: 0 0 13px; color: var(--brand-blue); font-size: 11px; font-weight: 650; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
.home-reading-heading h2 { margin: 0; color: var(--text-main); font-family: var(--font-heading); font-size: 27px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.is-home-page .content-wrap > .site-search { margin-bottom: 29px; }

/* Long-form documentation, original callouts and a native table of contents. */
.documentation-content.content { max-width: 100%; color: #3b4956; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.documentation-content.content p { margin: 0 0 1.25em; }
.documentation-content.content p:last-child { margin-bottom: 0; }
.documentation-content.content strong { color: inherit; font-weight: 650; }
.documentation-content.content h1, .documentation-content.content h2, .documentation-content.content h3, .documentation-content.content h4, .download-group > h2 { color: var(--text-main); font-family: var(--font-heading); font-weight: 550; line-height: 1.35; letter-spacing: -.025em; scroll-margin-top: 28px; }
.documentation-content.content h1 { margin: 1.6em 0 .7em; font-size: 33px; }
.documentation-content.content h2, .download-group > h2 { margin: 1.8em 0 .8em; font-size: 28px; }
.documentation-content.content h3 { margin: 1.9em 0 .8em; font-size: 23px; }
.documentation-content.content h4 { margin: 1.8em 0 .8em; font-size: 19px; }
.documentation-content.content ul, .documentation-content.content ol { margin: 1.15em 0 1.65em 1.4em; }
.documentation-content.content li { padding-left: .3em; margin: .65em 0; }
.documentation-content.content li::marker { color: var(--brand-blue); font-weight: 650; }
.documentation-content.content li > ul, .documentation-content.content li > ol { margin-top: .7em; margin-bottom: .7em; }
.documentation-content a { color: var(--brand-blue); text-decoration: underline; text-decoration-color: #b2c3ce; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.documentation-content a:hover { color: var(--brand-blue-dark); text-decoration-color: currentColor; }
.documentation-content img { display: block; max-width: 100%; height: auto !important; margin: 26px auto 32px; border-radius: 5px; }
.documentation-content pre { padding: 20px; overflow-x: auto; border: 1px solid #dce1e1; border-radius: 5px; background: #f1f3f2; }
.documentation-content code { color: #294e68; background: #eaf0f2; font-size: .9em; }
.documentation-content pre code { background: none; }
.documentation-content table { display: block; max-width: 100%; overflow-x: auto; font-size: .9em; }
.documentation-content.content .is_red, .documentation-content [style*="color:#ff0000"] { color: #a22e2c !important; }
.documentation-content p[align="center"] { text-align: center; }
.documentation-content hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--sidebar-border); }
.documentation-content .notification, .empty-translation-note { padding: 22px 25px; margin: 1.75rem 0; border: 1px solid #dce2e3; border-left: 3px solid #91acbc; border-radius: 5px; background: #f0f4f5; color: #38546a; font-size: 15px; line-height: 1.85; }
.documentation-content .notification.is-warning { border-color: #e4dac0; border-left-color: #b5964d; background: #f8f3e7; color: #6c5834; }
.documentation-content .notification.is-info, .documentation-content .notification.is-link { border-left-color: #7d9daf; background: #edf2f4; color: #38546a; }
.documentation-content .notification strong { color: inherit; }
.home-documentation > .notification.is-light:not(.is-warning):not(.is-info):last-of-type { padding: 11px 0 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
.doc-video { width: min(100%, 760px); margin: 2rem 0 2.5rem; aspect-ratio: 16 / 9; }
.doc-video iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.contact-list { margin: 1.5rem 0 2.5rem; border-top: 1px solid var(--sidebar-border); }
.contact-row { display: grid; grid-template-columns: minmax(100px, 140px) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--sidebar-border); }
.contact-row > strong { color: var(--text-muted) !important; font-size: 14px; font-weight: 500 !important; }
.contact-row > span { min-width: 0; overflow-wrap: anywhere; }
.article-toc { margin: 0 0 31px; border: 1px solid #d6dfe2; border-radius: 5px; background: #f3f5f3; }
.article-toc-title { min-height: 50px; padding: 14px 20px; color: var(--brand-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.article-toc-title::marker { color: #7897a8; }
.article-toc[open] .article-toc-title { border-bottom: 1px solid #dce3e4; }
.article-toc-links { margin: 5px 22px 13px 42px; padding: 0; color: #87969e; font-size: 13px; }
.article-toc-links li { padding-left: 4px; }
.article-toc-links a { display: inline-block; min-height: 44px; padding: 10px 0; color: var(--brand-blue); line-height: 1.8; text-decoration: none; }
.article-toc-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.article-toc-subitem { margin-left: 16px; }

.section-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.doc-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 150px; padding: 25px 26px 28px; border: 1px solid #d9dfdf; border-radius: 5px; background: #fffefa; color: var(--text-main); text-decoration: none; overflow-wrap: anywhere; transition: border-color .15s ease, background .15s ease; }
.doc-card::before { content: ""; width: 28px; height: 2px; margin-bottom: 5px; background: var(--brand-gold); }
.doc-card strong { font-family: var(--font-heading); font-size: 18px; font-weight: 550; line-height: 1.5; letter-spacing: -.02em; }
.doc-card span { color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.doc-card:hover { background: #f0f4f4; border-color: #98afbb; color: var(--brand-blue-dark); }
.download-group { margin-top: 44px; }
.download-card { margin: 16px 0; padding: 25px; border: 1px solid #d7dfe1; border-radius: 5px; background: #fffefa; }
.download-card-main { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.download-card-main > div { min-width: 0; overflow-wrap: anywhere; }
.download-card h3 { color: var(--text-main); font-family: var(--font-heading); font-size: 20px; font-weight: 550; line-height: 1.4; }
.download-description { margin-bottom: 12px !important; color: #5b6a77; font-size: 14px; line-height: 1.8; }
.download-version, .download-count { display: inline-block; margin-right: 12px; color: var(--text-muted); font-size: 12px; }
.download-count::before { content: "↓ "; }
.download-card .button.is-dark { min-height: 46px; padding-inline: 23px; border: 1px solid var(--brand-blue-dark); border-radius: 5px; background: var(--brand-blue-dark); font-family: var(--font-body); font-size: 14px; font-weight: 550; }
.download-card .button.is-dark:hover { background: var(--brand-blue); border-color: var(--brand-blue); }

/* Footer retains the established reading-column geometry. */
.site-footer { margin-top: 72px; padding: 32px; border-top: 3px solid var(--brand-gold); border-radius: 12px; background: #1d2f3e; color: #c6d1d9; font-size: 13px; line-height: 1.7; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
.footer-brand { margin: 0 0 10px; color: #fff; font-family: var(--font-heading); font-size: 27px; font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.footer-brand > span { color: #e0bc68; }
.footer-tagline { max-width: 26ch; margin: 0 0 15px; color: #e4ce9d; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-style: italic; line-height: 1.55; }
.footer-description { max-width: 26ch; color: #b6c4ce; font-size: 11px; line-height: 1.9; }
.footer-heading { margin: 4px 0 10px; color: #fff; font-size: 11px; font-weight: 650; line-height: 1.7; letter-spacing: .07em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: #d6e0e8; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #f0cd82; text-decoration: underline; text-underline-offset: .2em; }
.site-footer a:focus-visible { outline-color: #f0cd82; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #42525f; color: #b6c4cf; font-size: 11px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 15; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #496f89; border-radius: 6px; background: var(--brand-blue-dark); color: #fff; box-shadow: 0 3px 14px rgb(24 42 56 / 14%); text-decoration: none; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--brand-blue); color: #fff; }
.back-to-top:focus-visible { outline-offset: 4px; }
.has-mobile-sidebar .back-to-top { visibility: hidden; }
.mobile-header, .sidebar-backdrop { display: none; }

@media screen and (min-width: 769px) and (max-width: 1100px) {
    :root { --sidebar-width: 254px; }
    .content-wrap { width: calc(100% - 48px); padding-top: 28px; }
    .page-heading-top { gap: 14px; }
    .page-title.title { font-size: 33px; }
    .hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .home-title { font-size: 51px; }
    .hero-description { max-width: 55ch; }
    .typeset-demo { width: 100%; max-width: 380px; margin: 0 auto; }
    .section-cards { grid-template-columns: 1fr; }
}
@media screen and (min-width: 769px) and (max-width: 950px) {
    .scenario-grid { grid-template-columns: 1fr; gap: 12px; }
    .scenario-card { padding: 17px 21px 20px; }
    .scenario-card h3 { margin-top: 12px; }
    .site-search { grid-template-columns: 1fr; gap: 8px; }
}
@media screen and (max-width: 768px) {
    html { scroll-padding-top: 96px; }
    .site-shell { padding-top: 76px; }
    .has-mobile-sidebar { overflow: hidden; }
    .mobile-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex !important; align-items: center; justify-content: space-between; gap: 8px; height: 76px; padding: 0 16px; border-bottom: 1px solid var(--sidebar-border); background: #fbfaf6; }
    .mobile-menu-button { display: none; flex-direction: column; justify-content: center; flex-shrink: 0; gap: 4px; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 5px; background: transparent; }
    .navigation-enhanced .mobile-menu-button { display: flex; }
    .navigation-enhanced .sidebar-close { display: block; }
    .mobile-menu-button span { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--text-main); }
    .mobile-identity { min-width: 0; flex: 1; padding-left: 2px; }
    .mobile-brand { color: var(--text-main); font-family: var(--font-heading); font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -.04em; text-decoration: none; }
    .mobile-tagline { display: block; margin-top: 3px; color: #65727a; font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-style: italic; line-height: 1.45; }
    .mobile-language { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; border: 1px solid #d3d9da; border-radius: 4px; color: var(--brand-blue-dark); font-size: 11px; font-weight: 650; text-decoration: none; }
    .site-sidebar { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--sidebar-border); }
    .sidebar-inner { padding: 20px 16px; }
    .navigation-enhanced .site-sidebar { position: fixed; z-index: 50; width: min(90vw, 328px); transform: translateX(-102%); border-right: 1px solid var(--sidebar-border); box-shadow: 8px 0 32px rgb(24 33 47 / 12%); transition: transform .18s ease; }
    .navigation-enhanced .site-sidebar:not(.is-open) { visibility: hidden; }
    .navigation-enhanced .site-sidebar.is-open { transform: translateX(0); }
    .navigation-enhanced .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; display: block; background: rgb(19 35 48 / 40%); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
    .navigation-enhanced .sidebar-backdrop.is-visible { opacity: 1; pointer-events: auto; }
    .site-main { margin-left: 0; }
    .content-wrap { width: calc(100% - 36px); padding-top: 25px; }
    .page-heading { margin-bottom: 28px; padding: 4px 0 24px; }
    .page-eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: .075em; }
    .page-eyebrow::before { width: 18px; margin-right: 8px; }
    .page-eyebrow span { padding-inline: 3px; }
    .page-title.title { font-size: clamp(27px, 6.9vw, 36px); line-height: 1.29; letter-spacing: -.03em; }
    .page-subtitle.subtitle { margin-top: 16px !important; font-size: 14px; line-height: 1.85; }
    .site-breadcrumbs { margin-bottom: 20px; font-size: 11px; }
    .site-search { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; padding-top: 19px; }
    .search-controls { gap: 7px; }
    .search-input { padding-inline: 10px; font-size: 16px; }
    .search-submit { gap: 6px; padding-inline: 11px; }
    .home-hero { padding: 3px 0 32px; }
    .hero-topline { margin-bottom: 25px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .home-title { max-width: 20ch; font-size: clamp(34px, 8.7vw, 57px); line-height: 1.16; }
    .hero-description { max-width: 48ch; font-size: 14px; }
    .home-actions { margin-top: 22px; }
    .action-link { min-height: 48px; padding-inline: 15px; }
    .hero-note { font-size: 11px; }
    .typeset-demo { width: 100%; max-width: 380px; margin: 0 auto; padding: 0 5px 0 0; }
    .demo-sheet { padding-inline: 22px; }
    .demo-equation-line { font-size: 13px; }
    .home-scenarios { margin-top: 27px; }
    .section-heading-row { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 18px; }
    .section-heading-row h2 { font-size: 28px; }
    .section-heading-row > span { font-size: 11px; }
    .scenario-grid { grid-template-columns: 1fr; gap: 12px; }
    .scenario-card { padding: 17px 21px 20px; }
    .scenario-card h3 { margin: 12px 0 8px; font-size: 18px; }
    .scenario-card p { font-size: 13px; }
    .home-reading-heading { margin-top: 38px; padding-top: 28px; }
    .home-reading-heading h2 { font-size: 25px; }
    .documentation-content.content { font-size: 16px; line-height: 1.9; }
    .documentation-content.content h1 { font-size: 29px; }
    .documentation-content.content h2, .download-group > h2 { font-size: 25px; }
    .documentation-content.content h3 { font-size: 21px; }
    .documentation-content .notification, .empty-translation-note { padding: 18px 18px; font-size: 14px; }
    .article-toc-title { padding-inline: 16px; }
    .article-toc-links { margin-left: 33px; margin-right: 16px; font-size: 12px; }
    .article-toc-subitem { margin-left: 10px; }
    .section-cards { grid-template-columns: 1fr; gap: 14px; }
    .doc-card { min-height: 120px; padding: 21px; }
    .download-card { padding: 20px; }
    .download-card-main { align-items: flex-start; flex-direction: column; gap: 20px; }
    .download-card-main .button { width: 100%; }
    .contact-row { grid-template-columns: 85px minmax(0, 1fr); gap: 13px; padding: 16px 0; }
    .site-footer { margin-top: 48px; padding: 25px 23px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 20px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-description, .footer-tagline { max-width: 34ch; }
    .footer-bottom { margin-top: 24px; }
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-sidebar, .sidebar-backdrop, .section-toggle span, .doc-card, .scenario-card, .action-link, .demo-formula, .demo-proofmark { transition: none !important; }
    .scenario-card:hover { transform: none; }
}
@media print {
    html, body { min-height: 0; background: #fff; color: #000; }
    body { font-size: 11pt; }
    #site-navigation, .skip-link, .back-to-top, .site-search, .site-footer, .language-link, .home-actions, .demo-controls, .article-toc, .doc-video { display: none !important; }
    .site-shell { min-height: 0; padding: 0; }
    .site-main { min-height: 0; margin: 0; }
    .content-wrap { width: auto; max-width: none; margin: 0; padding: 0; }
    .page-heading, .home-hero { margin-top: 0; padding-top: 0; }
    .documentation-content.content { color: #000; font-size: 11pt; line-height: 1.6; }
    .documentation-content.content h2, .documentation-content.content h3, .documentation-content.content h4 { break-after: avoid; }
    .documentation-content img, .notification, .download-card, .doc-card, .scenario-card { break-inside: avoid; }
    .documentation-content pre { white-space: pre-wrap; }
    .demo-sheet { box-shadow: none; transform: none; }
    .demo-formula { transform: none; }
    a { color: inherit; }
}

/* File-index search: reuse the site's reading column and type scale. */
.search-help, .site-search-corrections { color: var(--text-muted); font-size: .9em; }
.search-summary { margin-bottom: 1.4rem; }
.documentation-content ol.site-search-list { margin: 0; padding: 0; list-style: none; }
.site-search-hit { margin: 0 0 1.8rem; padding-bottom: 1.7rem; border-bottom: 1px solid var(--sidebar-border); overflow-wrap: anywhere; }
.site-search-hit-heading { display: flex; gap: .8rem; align-items: baseline; }
.documentation-content .site-search-hit h2 { margin: 0 0 .6rem; font-size: 1.2rem; line-height: 1.5; }
.site-search-hit h2 a { text-decoration: none; }
.site-search-hit h2 a:hover { text-decoration: underline; }
.site-search-language { flex: 0 0 auto; padding: 1px 6px; border: 1px solid var(--sidebar-border); border-radius: 3px; color: var(--text-muted); font-size: .68rem; letter-spacing: .04em; }
.site-search-snippet { margin: .5rem 0; line-height: 1.7; }
.search-results mark { padding: .04em .1em; border-radius: 2px; background: #f8e5aa; color: inherit; }
.site-search-corrections { margin: .65rem 0 0; }
.site-search-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 2rem 0; }
.site-search-page { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--sidebar-border); border-radius: 4px; text-decoration: none; }
.site-search-page.is-current { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.site-search-page:hover { background: var(--hover-bg); }
.site-search-page.is-current:hover { background: var(--brand-blue); }
.site-search-gap { padding: 0 .35rem; }
/* Prefix suggestions use the existing search form and remain optional. */
.site-search { position: relative; }
.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    margin: .3rem 0 0 !important; padding: .3rem 0 !important;
    list-style: none !important; max-height: 20rem; overflow-y: auto;
    background: #fff; color: #26333d; border: 1px solid #b9c4cd; border-radius: .35rem;
    box-shadow: 0 .3rem 1rem rgba(25, 40, 50, .15);
}
.search-suggestions[hidden] { display: none; }
.search-suggestions li { padding: .65rem .85rem; cursor: pointer; line-height: 1.35; }
.search-suggestions li:hover, .search-suggestions li[aria-selected="true"] { background: #eaf1f7; color: #17394f; }
.search-suggestions-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.search-filter-panel { margin: 1rem 0; padding: .8rem; border: 1px solid var(--border-color,#d8dee8); border-radius: .5rem; }
.search-filter-panel summary { cursor: pointer; font-weight: 600; }
.search-filter-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .8rem; margin: 1rem 0; }
.search-filter-grid fieldset { min-width: 0; max-height: 15rem; overflow: auto; padding: .5rem; border: 1px solid #d8dee8; }
.search-filter-grid label { display: block; overflow-wrap: anywhere; }
.search-filter-grid input:not([type=checkbox]), .search-filter-grid select { display: block; max-width: 100%; width: 100%; padding: .35rem; }
