/* TIANSIGHT integration notes, built on the local brand foundation. */
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.9; }
p { max-width: none; }
.docs-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.docs-header-inner { width: min(1120px,calc(100% - 64px)); margin: auto; min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.docs-brand { display: flex; align-items: center; gap: 14px; border: 0; color: var(--charcoal); font-size: 17px; letter-spacing: .06em; }
.docs-brand img { width: 35px; height: 35px; }
.docs-brand .latin { font-family: var(--font-en); font-size: 14px; letter-spacing: .19em; color: var(--gold); }
.docs-brand small { display: block; font-family: var(--font-en); font-size: 9px; letter-spacing: .24em; color: var(--gold); margin-top: 2px; }
.back-link { border: 0; font-size: 13px; white-space: nowrap; }
.docs-shell { width: min(900px,calc(100% - 64px)); margin: auto; }
.docs-hero { padding-block: 56px 34px; }
.eyebrow, .section-label { color: var(--gold); font-family: var(--font-en); font-size: 11px; letter-spacing: .23em; line-height: 1.7; }
.docs-hero .eyebrow { margin-bottom: 16px; }
.docs-hero h1 { font-size: clamp(38px,6vw,54px); line-height: 1.3; letter-spacing: .05em; }
.hero-intro { font-size: 19px; color: var(--ink-muted); margin: 18px 0 12px; }
.hero-note { font-size: 12px; color: var(--gold); margin: 0; letter-spacing: .06em; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px 25px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); padding-block: 17px; }
.doc-nav a { font-size: 13px; border: 0; }
.docs-shell > section:not(.docs-hero) { padding-block: 38px 12px; scroll-margin-top: 20px; }
.section-label { font-size: 10px; margin-bottom: 10px; }
h2 { font-size: 29px; line-height: 1.6; margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.6; margin: 29px 0 14px; }
h4 { font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.docs-shell section > p, .docs-shell details > p { font-size: 15px; line-height: 2.05; color: var(--ink-muted); margin-bottom: 18px; }
strong { color: var(--charcoal); }
.runtime-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-block: 25px 14px; }
.runtime-card { min-width: 0; padding: 23px; border: 1px solid var(--card-border); background: var(--paper); }
.runtime-card .eyebrow { font-size: 9px; margin-bottom: 13px; }
.runtime-card h3 { font-size: 22px; margin: 0 0 12px; }
.count { display: block; font-size: 12px; font-weight: 400; color: var(--gold); margin-top: 7px; }
.runtime-card p:not(.eyebrow) { font-size: 14px; line-height: 1.95; color: var(--ink-muted); }
.runtime-card dl { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.runtime-card dl > div { display: grid; grid-template-columns: 2em minmax(0,1fr); gap: 12px; margin-bottom: 12px; font-size: 12px; }
.runtime-card dt { color: var(--gold); }
.runtime-card dd { margin: 0; color: var(--ink-muted); overflow-wrap: anywhere; }
code { color: var(--gold); font-size: .84em; overflow-wrap: anywhere; }
.code-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 15px; border: 1px solid var(--card-border); background: var(--ink-primary); color: var(--gold); font-family: var(--font-mono); font-size: 10px; }
.code-heading button { border: 0; background: transparent; font-family: var(--font-cn); color: var(--gold); font-size: 12px; min-height: 28px; padding: 2px 6px; cursor: pointer; }
.code-heading button:hover { color: var(--charcoal); text-decoration: underline; }
pre { padding: 20px; border: 1px solid var(--card-border); border-top: 0; background: var(--paper); overflow: auto; max-width: 100%; margin: 0 0 22px; white-space: pre; font-size: 12px; line-height: 1.9; tab-size: 2; }
pre code { color: var(--charcoal); font-size: inherit; overflow-wrap: normal; white-space: inherit; }
.note { font-size: 12px !important; line-height: 1.95 !important; border-left: 2px solid var(--card-border); padding-left: 15px; }
.callout { background: var(--ink-primary); border: 1px solid var(--card-border); padding: 21px 24px; margin-block: 24px; }
.callout p { font-size: 13px; color: var(--ink-muted); line-height: 2; }
.callout p:last-child { margin-bottom: 0; }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 23px; }
summary { cursor: pointer; font-size: 14px; color: var(--gold); padding: 17px 0; line-height: 1.9; }
details[open] summary { margin-bottom: 8px; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--card-border); background: var(--paper); margin-block: 18px; }
table { min-width: 650px; table-layout: fixed; }
th { background: var(--ink-primary); font-size: 11px; letter-spacing: .05em; }
th:first-child { width: 24%; }
th:nth-child(2) { width: 34%; }
td { font-size: 12px; line-height: 1.95; color: var(--ink-muted); }
td code { font-size: 11px; }
.data-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin-block: 22px; }
.data-links a { padding-block: 13px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.data-links span { display: block; font-family: var(--font-cn); font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.reference-links { margin: 0; padding-left: 19px; color: var(--gold); font-size: 13px; line-height: 2.3; }
.docs-footer { border-top: 1px solid var(--gold); padding-block: 26px 35px; margin-top: 38px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.docs-footer p { font-size: 13px; margin: 0; }
.docs-footer span { display: block; font-size: 11px; color: var(--ink-muted); margin-top: 5px; }
.docs-footer a { font-size: 12px; border: 0; }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px; background: var(--paper); z-index: 10; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media(max-width:680px) {
 .docs-header-inner { width: calc(100% - 40px); min-height: 75px; gap: 12px; }
 .docs-brand { font-size: 14px; gap: 9px; }
 .docs-brand img { width: 29px; height: 29px; }
 .docs-brand .latin { font-size: 11px; letter-spacing: .1em; }
 .docs-brand small { font-size: 7px; letter-spacing: .15em; }
 .back-link { font-size: 11px; }
 .docs-shell { width: calc(100% - 40px); }
 .docs-hero { padding-block: 35px 27px; }
 .hero-intro { font-size: 16px; }
 .hero-note { font-size: 11px; }
 .doc-nav { gap: 10px 20px; }
 .doc-nav a { font-size: 12px; }
 .docs-shell > section:not(.docs-hero) { padding-top: 29px; }
 h2 { font-size: 25px; }
 h3 { font-size: 20px; }
 .docs-shell section > p, .docs-shell details > p { font-size: 14px; }
 .runtime-grid { grid-template-columns: 1fr; gap: 15px; }
 .runtime-card { padding: 21px; }
 pre { padding: 15px; font-size: 11px; }
 .code-heading { padding-inline: 12px; font-size: 9px; }
 .callout { padding: 18px; }
 .data-links { grid-template-columns: 1fr; }
 .docs-footer { flex-direction: column; gap: 12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print { .docs-header, .doc-nav, .code-heading button, .docs-footer a { display: none; } .docs-shell { width: 100%; } .runtime-card, pre, tr { break-inside: avoid; } }
