/* AI topic: scoped styles, shared site typography and article renderer. */
html:has(body[data-ai-section]) { min-width: 0; }
[data-ai-section] { --ai-accent: #284eca; --ai-ink: #172447; --ai-muted: #53617a; min-width: 0; }
[data-ai-section] .app-shell { max-width: 1180px; }
[data-ai-section] .seo-block { min-width: 0; }
[data-ai-section] :is(h1, h2, h3, p, a, li, pre) { overflow-wrap: anywhere; }
[data-ai-section] .seo-block > h1 { max-width: 900px; font-size: clamp(28px, 4.3vw, 48px); line-height: 1.13; letter-spacing: -.035em; color: var(--ai-ink); }
[data-ai-section] .seo-block > p { max-width: 850px; color: var(--ai-muted); font-size: 18px; line-height: 1.65; }
[data-ai-section] .seo-block > .eyebrow { font-size: 12px; letter-spacing: .07em; color: var(--ai-accent); }
.ai-hub { display: grid; gap: 40px; margin-top: 28px; }
.ai-start { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 36px; background: linear-gradient(125deg, #edf2ff, #f5f7fc); border: 1px solid #dce4fa; border-radius: 22px; }
.ai-start h2 { margin: 8px 0 14px; font-size: clamp(25px, 3.2vw, 36px); line-height: 1.17; letter-spacing: -.025em; }
.ai-start p { color: var(--ai-muted); line-height: 1.65; }
[data-ai-section] .primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 17px; border: 0; border-radius: 10px; background: var(--ai-accent); color: white; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; white-space: normal; }
.ai-start .primary-link { margin-top: 12px; }
.ai-steps { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0; align-content: center; }
.ai-steps li { display: flex; align-items: flex-start; gap: 15px; }
.ai-steps li > span { color: var(--ai-accent); font-weight: 750; font-size: 22px; flex: 0 0 30px; white-space: nowrap; }
.ai-steps strong { font-size: 17px; }
.ai-steps p { margin: 4px 0 0; font-size: 14px; }
.ai-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-paths a { display: grid; gap: 9px; padding: 23px; border: 1px solid #dde3ed; border-radius: 15px; color: var(--ai-ink); text-decoration: none; background: white; }
.ai-paths a:hover { border-color: var(--ai-accent); background: #f8faff; }
.ai-paths i { font-size: 25px; color: var(--ai-accent); }
.ai-paths span { font-size: 14px; color: var(--ai-muted); line-height: 1.5; }
.ai-builder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; padding: 30px; border: 1px solid #dde3ed; border-radius: 18px; background: #fff; }
.ai-builder > div { min-width: 0; }
.ai-builder h2 { font-size: 26px; margin: 8px 0 12px; }
.ai-builder p { line-height: 1.65; }
.ai-small { font-size: 13px; color: var(--ai-muted); }
.ai-builder form { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ai-builder label { font-size: 14px; font-weight: 650; }
.ai-builder select { width: 100%; min-width: 0; padding: 12px; margin-bottom: 8px; background: #fff; color: var(--ai-ink); border: 1px solid #bac5d9; border-radius: 8px; font: inherit; }
.ai-prompt { border: 1px solid #d9e1f3; border-left: 3px solid var(--ai-accent); border-radius: 10px; padding: 18px; margin: 20px 0; background: #f4f7ff; }
.ai-prompt .ai-prompt-label { color: var(--ai-accent); font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 10px; }
.ai-prompt pre { white-space: pre-wrap; word-break: normal; font: inherit; font-size: 15px; line-height: 1.7; margin: 0 0 15px; color: var(--ai-ink); }
.ai-copy { min-height: 42px; padding: 9px 14px; background: white; border: 1px solid #bac7e9; border-radius: 8px; color: #2444a9; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ai-copy-status { display: block; font-size: 13px; line-height: 1.5; margin-top: 7px; color: #28457d; }
[data-ai-section] [hidden] { display: none !important; }
[data-ai-section] :is(a, button, select, pre):focus-visible { outline: 3px solid #6b91ff; outline-offset: 3px; }
.ai-editorial { display: flex; align-items: flex-start; gap: 17px; border-top: 1px solid #dce3ee; padding: 25px 0 0; }
.ai-editorial > i { color: var(--ai-accent); font-size: 27px; }
.ai-editorial h2 { font-size: 19px; margin: 0 0 10px; }
.ai-editorial p { color: var(--ai-muted); line-height: 1.7; max-width: 850px; }
.ai-reading-meta { color: var(--ai-muted); display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; border-bottom: 1px solid #e0e6ef; padding: 0 0 18px; }
.ai-reading-meta p { width: 100%; margin: 3px 0 0; }
.ai-toc { background: #f5f7fc; padding: 20px 24px; margin: 24px 0; border-radius: 12px; }
.ai-toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ai-toc a { color: #294bac; line-height: 1.5; }
[data-ai-section] .analytics-article-section { scroll-margin-top: 100px; }
[data-ai-section] :is(.analytics-article, .analytics-article-body) { grid-template-columns: minmax(0, 1fr); }
[data-ai-section] .analytics-article > * { min-width: 0; max-width: 100%; }
[data-ai-section] .analytics-related .info-related-link { max-width: 100%; white-space: normal; }
[data-ai-section] .analytics-card h3 { font-size: 21px; }
[data-ai-section] .analytics-table-wrap { max-width: 100%; overflow-x: auto; }
@media (max-width: 760px) { .ai-start, .ai-builder { grid-template-columns: 1fr; padding: 23px; gap: 24px; } .ai-paths { grid-template-columns: 1fr; } .ai-paths a { grid-template-columns: 30px 1fr; padding: 18px; } .ai-paths i { grid-row: span 2; } .ai-paths span { grid-column: 2; } .ai-hub { gap: 28px; } }
@media (max-width: 420px) { .ai-start, .ai-builder { padding: 17px; } .ai-prompt { padding: 14px; } .ai-toc { padding: 17px; } [data-ai-section] .seo-block > p { font-size: 16px; } }
