/* The older study pages, restyled to match the home page (lab.css).
   Layered over site.css, which stays untouched, and the study text is unchanged.
   Same column, type, header and footer as the lab pages. Color only in charts:
   brand green for the result, red for the failure, grey for the rest. */
@font-face { font-display: swap; font-family: 'Libertinus Serif'; src: url('/public/fonts/LibertinusSerif-Regular-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; }
@font-face { font-display: swap; font-family: 'Libertinus Serif'; src: url('/public/fonts/LibertinusSerif-Italic-latin.woff2') format('woff2'); font-weight: 400; font-style: italic; }
@font-face { font-display: swap; font-family: 'Libertinus Serif'; src: url('/public/fonts/LibertinusSerif-SemiBold-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; }
@font-face { font-display: swap; font-family: 'Share Tech Mono'; src: url('/public/fonts/ShareTechMono-Regular.woff2') format('woff2'); }

:root, html body.site-shell, html body.page-editorial {
  --paper: #fdfcf9; --ink-l: #2b2b2b; --ink2-l: #3a3a3a; --muted-l: #5c5c5c; --rule-l: #ecebe6; --grey-l: #dcdad3;
  --good: #b5d6c0; --bad: #e5544c;
  --serif-l: 'Libertinus Serif', 'Iowan Old Style', Palatino, Georgia, serif;
  /* site.css tokens, pointed at the lab values */
  --caeliai-bg: #fdfcf9; --caeliai-white: #fdfcf9; --caeliai-sage-wash: transparent;
  --font-mono: var(--serif-l); --font-serif: var(--serif-l);
  --shadow-soft: none; --frame-size: 0px;
  --page-max: 49.5rem; --page-pad: 1.5rem; --content-max: 34rem;
  --section-gap: 3.4rem; --header-offset: 0px;
  /* chart series */
  --c-own: var(--good); --c-highlight: var(--good); --c-leak: var(--grey-l); --c-none: var(--bad); --c-neutral: var(--grey-l); --c-wash: transparent;
}
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
html, body, .site-shell { background: var(--paper) !important; }
body { margin: 0; font-family: var(--serif-l); font-size: 1rem; line-height: 1.6; color: var(--ink-l); -webkit-font-smoothing: antialiased; }
.site-shell::before, .page-editorial::before, body.site-shell::before { display: none !important; }
main, section, .section, [class*="hero"], [class*="section"]:not([class*="heading"]) { background: transparent !important; }
*:not(.home) { text-transform: none !important; letter-spacing: normal !important; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: #c9c7c0; }
a:hover { text-decoration-color: var(--ink-l); }
:focus-visible { outline: 2px solid var(--ink-l); outline-offset: 2px; }

/* Header and footer: the same markup and look as the home page */
.lab-chrome { max-width: calc(var(--page-max) + 3rem); margin: 0 auto; padding: 0 1.5rem; }
.lab-chrome .masthead { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 1.6rem 0 1.1rem; margin-bottom: 1rem; font-size: .9rem; }
.lab-chrome .masthead nav { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-left: auto; }
.lab-chrome .masthead nav a { text-decoration: none; color: #3a3a3a; }
.lab-chrome .masthead nav a:hover { color: var(--ink-l); text-decoration: underline; }
.lab-chrome .masthead .home { font-family: 'Share Tech Mono', ui-monospace, monospace; text-transform: uppercase !important; letter-spacing: .08em !important; font-size: .8rem; text-decoration: none; color: var(--ink-l); }
.lab-chrome a { display: inline-flex; align-items: center; min-height: 40px; }
.lab-chrome .colophon { margin-top: 5rem; padding: 1.1rem 0 3rem; border-top: 1px solid var(--rule-l); font-size: .8rem; color: var(--muted-l); display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.lab-chrome .colophon a { color: var(--muted-l); }
.lab-chrome .colophon .sign { display: inline-flex; align-items: center; gap: .5rem; margin-right: auto; }
.lab-chrome .colophon .sign img { width: 18px; height: 18px; }

/* Column and spacing */
.container, .container.narrow { width: min(calc(100% - 3rem), var(--page-max)) !important; max-width: none; }
.content-width, .article-prose, .study-hero__copy { width: min(100%, var(--content-max)) !important; max-width: var(--content-max) !important; }
.section { padding: 1.7rem 0 !important; }
.section.hero, .hero, .section:first-child { padding-top: 2.2rem !important; }
p { max-width: var(--content-max); }

/* Type: lab sizes */
h1, .plain-hero-title, .hero__headline, [class*="hero-title"], [class*="headline"] {
  font-family: var(--serif-l) !important; font-weight: 400 !important; font-size: 2.5rem !important; line-height: 1.12 !important; letter-spacing: -.01em !important; max-width: var(--content-max) !important; color: var(--ink-l) !important; text-wrap: balance; margin-bottom: .6rem;
}
h2 { font-family: var(--serif-l) !important; font-weight: 400 !important; font-style: italic; font-size: 1.5rem !important; line-height: 1.25 !important; color: var(--ink-l) !important; }
h3 { font-family: var(--serif-l) !important; font-weight: 600 !important; font-size: 1rem !important; color: var(--ink-l) !important; }
strong, b { font-weight: 600; }
.lede, [class*="lede"], .hero__copy p, .study-hero__copy > p { font-size: 1.05rem !important; line-height: 1.55 !important; color: var(--ink-l) !important; }

/* Small labels (kickers, chips, eyebrows, meta): quiet grey text, no boxes, dots or lines */
.eyebrow, .section-label, .chip, .publication-kicker, .report-label, .method-line, .inline-meta, .article-byline,
.meta-list, .metric__label, .figure-card__label, .footer-note, [class*="kicker"], [class*="eyebrow"], [class*="__label"], .back-link {
  font-family: var(--serif-l) !important; font-size: .8rem !important; font-style: normal !important; color: var(--muted-l) !important;
  border: 0 !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.chip::before, .chip--live::before, .publication-kicker::before, .section-label::before, .eyebrow::before, [class*="kicker"]::before,
.back-link::before, .section-mark, .figure-plate__mark, .broken-frame::after, .broken-frame::before { display: none !important; }
.back-link { text-decoration: underline; text-decoration-color: #c9c7c0; }
.article-byline span + span::before { content: "·"; margin: 0 .5rem; }

/* Cards, panels, frames: plain text between hairlines */
.broken-frame, [class*="card"], [class*="panel"], [class*="plate"], .surface--sage, .limitation-note, aside, .report-opening, .rchart, .article-figure, .figure-plate {
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border: 0 !important;
}
.detail-card, .study-card, .signal-card, .quote-panel, .limitation-note, .article-figure, .figure-plate, .rchart, .research-feature {
  border-top: 1px solid var(--rule-l) !important; padding-left: 0 !important; padding-right: 0 !important;
}
blockquote, .article-callout, .article-quote { border: 0 !important; border-left: 2px solid var(--rule-l) !important; background: transparent !important; padding-left: 1rem !important; margin-left: 0; font-style: italic; }

/* Buttons and pills: plain links */
.button, .report-tool, .ref-row__links a, .research-switch a, .agent-back, .agent-primary, button.copy, [class*="pill"] {
  display: inline-flex; align-items: center; min-height: 40px; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--ink-l) !important; padding: 0 !important; box-shadow: none !important;
  font-family: var(--serif-l) !important; font-size: .9rem !important; font-weight: 400 !important;
  text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: .15em; text-decoration-color: #c9c7c0 !important; cursor: pointer;
}
.button:hover, .report-tool:hover { text-decoration-color: var(--ink-l) !important; }
.button-row, .ref-row__links, .research-switch { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem !important; }
.button::after, .button::before { display: none !important; }

/* Tables */
table { border-collapse: collapse; font-size: .86rem; background: transparent !important; }
th { text-align: left; font-weight: 600; border-bottom: 1px solid var(--ink-l) !important; background: transparent !important; }
td { border-bottom: 1px solid var(--rule-l) !important; background: transparent !important; color: #3a3a3a; }
th, td { padding: .45rem .8rem .45rem 0 !important; }

/* Highlights: no colored washes behind text */
mark, .report-takeaways mark, .report-takeaways strong, .report-takeaways [class*="num"] { background: transparent !important; font-weight: 600; color: var(--ink-l); padding: 0; }

/* Charts. Inline bars drawn in charcoal become grey; the sage result stays green. */
[style*="background:#2a2a2c"], [style*="background: #2a2a2c"] { background: var(--grey-l) !important; }
[style*="background:#b5d6c0"], [style*="background: #b5d6c0"] { background: var(--good) !important; }
.rchart { --rc-own: var(--good); --rc-leak: var(--grey-l); --rc-none: var(--bad); --rc-neutral: var(--grey-l); --rc-wash: transparent; --rc-rule: var(--rule-l); --rc-ink: var(--ink-l); --rc-ink-strong: var(--ink-l); --rc-muted: var(--muted-l); }

@media (max-width: 720px) {
  html { font-size: 18px; }
  h1, .plain-hero-title, .hero__headline, [class*="hero-title"], [class*="headline"] { font-size: 1.9rem !important; }
  .lab-chrome { padding: 0 1.1rem; }
  .lab-chrome .masthead { padding-top: 1.1rem; }
  .lab-chrome .masthead nav { gap: 1rem; }
  .lab-chrome .colophon .sign { width: 100%; }
  .container, .container.narrow { width: calc(100% - 2.2rem) !important; }
}

/* Figures sit on the reading column's left edge, not centered */
figure, .article-figure, .figure-plate, .rchart { margin-left: 0 !important; margin-right: 0 !important; }
.article-figure.content-width { width: min(100%, var(--content-max)) !important; }
/* The "before training" model on the ArchiveAgent chart is red, as on the home page */
[aria-label^="Bar chart of nine models"] > div:nth-child(7) > span:nth-child(2) { background: var(--bad) !important; }
/* Cite, copy and other tool buttons */
.report-tools button, .report-tool, [data-cite], .cite-button { border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 0 !important; }
.report-tools summary, .report-tools details > summary { border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 0 !important; text-decoration: underline; text-decoration-color: #c9c7c0; list-style: none; cursor: pointer; font-size: .9rem; }
/* Summary block on the papers and the question list: same left edge as the text */
.report-opening { padding: 0 !important; margin: 1rem 0 0 !important; max-width: var(--content-max); }
.faq-list, .faq-list.content-width { width: min(100%, var(--content-max)) !important; margin-left: 0 !important; }
.faq-item, details { background: transparent !important; }
.section-heading + .faq-list, .faq-list { margin-left: 0 !important; }
/* Shopping answers explorer: square hairline boxes, plain controls, grey link underlines */
#benchmarks article, #benchmarks [class*="result"], #benchmarks li > a, .benchmark-card, [data-research-panel] article { border-radius: 0 !important; border-color: var(--rule-l) !important; box-shadow: none !important; background: transparent !important; }
input, select, textarea { border-radius: 0 !important; border: 1px solid #c9c7c0 !important; background: transparent !important; font-family: var(--serif-l) !important; }
[data-research-panel] button, .chip-row button, button[aria-pressed] { border-radius: 0 !important; border: 0 !important; background: transparent !important; text-decoration: underline; text-decoration-color: #c9c7c0; font-family: var(--serif-l) !important; }
button[aria-pressed="true"], .pagination [aria-current] { text-decoration-color: var(--ink-l) !important; font-weight: 600; background: transparent !important; color: var(--ink-l) !important; }
main a, main a[class] { text-decoration-color: #c9c7c0 !important; }
main a:hover { text-decoration-color: var(--ink-l) !important; }
/* Last leftovers: no tinted boxes or green rules */
.abstract-block { border-left: 2px solid var(--rule-l) !important; background: transparent !important; }
.agent-instructions, .agent-prompts > *, .agent-examples > *, [class*="agent-"] a, .agent-question { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.agent-instructions { border: 0 !important; border-top: 1px solid var(--rule-l) !important; padding-left: 0 !important; padding-right: 0 !important; }
.agent-symbol { color: var(--ink-l) !important; }
[class*="figure-hero"] mark, [class*="hero__num"], [class*="big-number"] { background: transparent !important; }
.agent-questions button, .agent-clients button { border-radius: 0 !important; border: 1px solid var(--rule-l) !important; background: transparent !important; font-size: 1.05rem !important; min-height: 0 !important; }
.agent-clients button[aria-pressed=true] { border-color: var(--ink-l) !important; }
.agent-questions span, .agent-clients button > span:last-child { color: var(--muted-l) !important; }
@media (max-width: 720px) { .section.hero, .hero, .section:first-child { padding-top: .6rem !important; } }
.rchart h2.rchart__title { font-style: normal !important; font-weight: 600 !important; font-size: 1rem !important; margin: 0 !important; }
/* Links in running text are underlined, headings sit closer to what they introduce */
.article-prose a, .article-sources a, .article-prose--longform a { text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: .15em; text-decoration-color: #9a988f !important; background-image: none !important; border-bottom: 0 !important; }
.article-prose h2 { margin: 2.4rem 0 .6rem !important; }
