.local-ai-study { font-size: 1.125rem; line-height: 1.8; }
.prose.study-prose { max-width: 1040px; }
.study-prose .article-header { max-width: 850px; }
.study-prose .article-header h1 { font-size: clamp(1.75rem, 3.2vw, 2.8rem); line-height: 1.3; text-wrap: balance; }
.study-evidence { margin: 2rem 0; max-width: 760px; }
.study-evidence img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--border-strong); }

.study-evidence figcaption { margin-top: 1rem; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.study-evidence figcaption small { display: inline-block; margin-block: .5rem; }
.local-ai-study a { text-decoration: underline; text-underline-offset: 4px; }
.local-ai-study #results > section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.local-ai-study #results th:not(:first-child) { white-space: nowrap; }
.study-toc ol { columns: 2; }
.local-ai-study > section { margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.local-ai-study h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.35; }
.local-ai-study h3 { margin: 2.5rem 0 1rem; font-size: 1.25rem; }
.local-ai-study p { max-width: 70ch; }
.study-toc { margin-block: 2.5rem; padding-block: 1.5rem; border-block: 1px solid var(--border-strong); }
.study-toc h2 { margin-top: 0; }
.study-toc ol { padding-left: 1.5rem; }
.study-toc a { display: inline-block; padding: .35rem 0; text-underline-offset: 4px; }
.study-table-wrap { overflow-x: auto; max-width: 100%; margin: 1.5rem 0; scrollbar-color: var(--accent) var(--surface-2); }
.study-table-wrap table { border-collapse: collapse; width: 100%; min-width: 650px; font-family: var(--font); font-size: .9375rem; line-height: 1.5; }
.study-table-wrap caption { text-align: left; color: var(--muted); margin-bottom: 1rem; }
.study-table-wrap th { text-align: left; font-weight: 600; color: var(--text); }
.study-table-wrap th, .study-table-wrap td { padding: 1rem .75rem; border-bottom: 1px solid var(--border-strong); vertical-align: top; }
.study-table-wrap td:first-child { min-width: 180px; }
.study-table-wrap td small { color: var(--muted); }
.study-table-wrap td a { display: inline-block; padding-block: .35rem; }
.study-table-wrap tbody tr:hover { background: var(--surface-2); }
.study-chart { margin: 2rem 0; }
.study-chart figcaption { margin-bottom: 1.25rem; }
.study-bar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 55px; gap: 1rem; align-items: center; margin-bottom: .8rem; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.study-bar-track { background: var(--surface-2); height: 10px; }
.study-bar-track > span { display: block; height: 100%; background: var(--accent); }
.study-bar strong { font-weight: 500; text-align: right; }
.study-draft { padding: 1.5rem; background: var(--surface-2); border-radius: var(--radius); }
.study-draft p { margin-bottom: 0; }
.study-contact { border-top: 1px solid var(--border-strong); padding-top: 1.5rem; }
.study-segment { border-bottom: 1px solid var(--border-strong); margin-block: 1rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.study-segment > summary { padding: 1.25rem .25rem; cursor: pointer; font-weight: 600; color: var(--text); }
.study-segment > summary:hover { color: var(--accent); }
.study-segment > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.study-source { font-size: .9375rem; }
.study-table-wrap td:last-child { min-width: 220px; }
.study-table-wrap td small { overflow-wrap: anywhere; }
.study-table-wrap th, .study-table-wrap td { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .local-ai-study { font-size: 1.0625rem; } .study-table-wrap table { font-size: .875rem; } .study-bar { gap: .5rem; } .study-toc ol { columns: 1; } }
