/* Research & Insights. Loaded after /styles.css. Extends existing tokens. */
:root { --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --rule: rgba(127, 93, 67, 0.4); }
.rs-wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.rs-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-eyebrow, .rs-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-text); }
.rs-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.rs-eyebrow { margin-bottom: 18px; }

/* hero */
.rs-hero { padding: clamp(120px, 15vw, 180px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.rs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.rs-hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .rs-hero-grid { grid-template-columns: 7fr 5fr; gap: 72px; } }
.rs-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 8vw, 118px); line-height: .94; letter-spacing: -0.01em; }
.rs-hero h1 em, .rs-close em, .rs-sec h2 em { font-style: italic; color: var(--vermilion); }
.rs-lede { margin-top: 28px; max-width: 46ch; font-size: 19px; line-height: 1.55; color: rgba(23, 25, 22, .82); }
.rs-lede-2 { margin-top: 14px; max-width: 52ch; font-size: 15.5px; color: var(--muted); }
.rs-figure { color: var(--bronze); }
.rs-drawing { width: 100%; height: auto; max-width: 520px; display: block; margin-left: auto; }

/* sections */
.rs-sec { padding: clamp(64px, 8vw, 112px) 0; }
.rs-tint { background: #F2E9DB; }
.rs-head { margin-bottom: clamp(32px, 4vw, 52px); }
.rs-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 62px); line-height: 1; max-width: 16ch; }
.rs-head .rs-lede { font-size: 17px; }

/* cards */
.rs-card { border-top: 1px solid var(--rule); padding: 22px 0 6px; }
.rs-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; margin: 14px 0 12px; }
.rs-lead h3 { font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.rs-card h3 a, .rs-link, .rs-crumbs a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.rs-card h3 a:hover, .rs-card h3 a:focus-visible, .rs-link:hover, .rs-crumbs a:hover { background-size: 100% 1px; }
.rs-abstract { font-size: 15.5px; color: rgba(23, 25, 22, .8); max-width: 58ch; }
.rs-foot { margin-top: 18px; text-transform: none; letter-spacing: .04em; font-size: 11.5px; }
.rs-featured { display: grid; gap: 40px; }
@media (min-width: 960px) { .rs-featured { grid-template-columns: 7fr 4fr; gap: 72px; } .rs-side { border-left: 1px solid var(--rule); padding-left: 40px; } .rs-side .rs-card:first-child { border-top: 0; padding-top: 0; } }
.rs-grid { display: grid; gap: 0 48px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rs-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rs-grid { grid-template-columns: repeat(3, 1fr); } }
.rs-item[hidden] { display: none; }

/* upcoming + empty */
.rs-upcoming, .rs-empty { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 34px 0; max-width: 780px; }
.rs-upcoming h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 14px 0 12px; }
.rs-upcoming p, .rs-empty p { color: rgba(23, 25, 22, .8); max-width: 58ch; }
.rs-prep { list-style: none; margin-top: 26px; display: grid; gap: 18px; }
.rs-prep li { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.rs-prep strong { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.rs-sub { font-size: 14.5px; color: var(--muted); }

/* disciplines + series */
.rs-list { list-style: none; border-top: 1px solid var(--rule); }
.rs-list > li { border-bottom: 1px solid var(--rule); }
.rs-disc, .rs-series { display: grid; gap: 8px 28px; padding: 28px 4px; color: inherit; text-decoration: none; transition: padding-left .25s ease, background-color .25s ease; }
.rs-disc { grid-template-columns: 56px 1fr; align-items: baseline; }
@media (min-width: 860px) { .rs-disc { grid-template-columns: 72px 1fr auto; } }
.rs-disc:hover, .rs-series:hover, .rs-disc:focus-visible, .rs-series:focus-visible { padding-left: 14px; background: rgba(249, 243, 234, .6); }
.rs-n { font-family: var(--mono); font-size: 13px; color: var(--bronze-text); letter-spacing: .08em; }
.rs-disc-body strong, .rs-series strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.rs-disc-body span, .rs-series > span:not(.rs-n):not(.rs-count) { display: block; margin-top: 8px; max-width: 62ch; font-size: 15px; color: rgba(23, 25, 22, .78); }
.rs-go, .rs-count { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-text); }
.rs-series { grid-template-columns: 56px 1fr; }
.rs-series > strong, .rs-series > span:not(.rs-n) { grid-column: 2; }
.rs-series-list .rs-count { margin-top: 4px; }

/* library tools */
.rs-tools { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.rs-filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rs-filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; font: 500 13px var(--sans); letter-spacing: .04em; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.rs-filter:hover { color: var(--ink); }
.rs-filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--vermilion); }
.rs-search input, .rs-form input[type=email] { font: 400 15px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 8px 2px; min-width: min(280px, 100%); border-radius: 0; }
.rs-search input:focus, .rs-form input:focus { outline: none; border-bottom-color: var(--vermilion); }
.rs-status { margin: 16px 0 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--bronze-text); min-height: 1.4em; }
.rs-empty { margin-top: 8px; }
.rs-more, .rs-link { margin-top: 36px; font: 500 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; background-color: transparent; border: 1px solid var(--line-strong); color: var(--ink); padding: 12px 22px; cursor: pointer; transition: background-color .2s, color .2s; }
.rs-more:hover { background: var(--ink); color: var(--plaster); }
.rs-more[hidden], .rs-empty[hidden] { display: none; }
.rs-link { border: 0; padding: 4px 0; margin-top: 14px; }

/* newsletter */
.rs-sub-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .rs-sub-grid { grid-template-columns: 6fr 5fr; gap: 80px; } }
.rs-form label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-text); }
.rs-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-top: 8px; }
.rs-row input[type=email] { flex: 1 1 240px; }
.rs-row button { font: 500 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 12px 24px; border: 1px solid var(--vermilion); background: var(--vermilion); color: var(--plaster); cursor: pointer; transition: background-color .2s; }
.rs-row button:hover { background: var(--vermilion-deep); }
.rs-row button[disabled] { opacity: .6; cursor: progress; }
.rs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rs-msg { min-height: 1.5em; margin-top: 12px; font-size: 14.5px; }
.rs-msg[data-state="error"] { color: var(--vermilion-deep); }
.rs-msg[data-state="ok"] { color: var(--bronze-text); }
.rs-privacy { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 52ch; }

/* closing */
.rs-close { padding: clamp(72px, 9vw, 130px) 0; border-top: 1px solid var(--rule); }
.rs-close h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.2vw, 76px); line-height: 1; max-width: 18ch; }
.rs-close p { margin-top: 24px; max-width: 54ch; color: rgba(23, 25, 22, .8); font-size: 17px; }

/* article */
.rs-art-head { padding: clamp(120px, 14vw, 170px) 0 40px; border-bottom: 1px solid var(--rule); }
.rs-crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: 30px; }
.rs-art-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; }
.rs-byline { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 34px; }
.rs-byline dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-text); }
.rs-byline dd { font-size: 14.5px; }
.rs-art-grid { display: grid; gap: 40px; padding: 56px 0 24px; }
@media (min-width: 1000px) { .rs-art-grid { grid-template-columns: 220px minmax(0, 700px); gap: 80px; justify-content: center; } }
.rs-toc { position: sticky; top: calc(var(--header, 78px) + 24px); align-self: start; }
@media (max-width: 999px) { .rs-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; } }
.rs-toc ol { list-style: none; display: grid; gap: 10px; }
.rs-toc a { font-size: 14px; color: var(--muted); text-decoration: none; }
.rs-toc a:hover { color: var(--vermilion); }
.rs-prose { font-size: 18px; line-height: 1.75; color: rgba(23, 25, 22, .9); }
.rs-prose > * + * { margin-top: 1.2em; }
.rs-prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; margin-top: 2em; scroll-margin-top: 100px; }
.rs-prose h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin-top: 1.6em; scroll-margin-top: 100px; }
.rs-prose h4 { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 1.6em; }
.rs-prose ul, .rs-prose ol { padding-left: 1.3em; }
.rs-prose li + li { margin-top: .4em; }
.rs-prose a { color: var(--vermilion-deep); text-underline-offset: 3px; }
.rs-prose blockquote { border-left: 2px solid var(--vermilion); padding: 2px 0 2px 24px; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.rs-prose code { font-family: var(--mono); font-size: .85em; background: rgba(127, 93, 67, .1); padding: 1px 5px; }
.rs-prose pre { background: #F2E9DB; border: 1px solid var(--line); padding: 18px 20px; overflow-x: auto; line-height: 1.5; }
.rs-prose pre code { background: none; padding: 0; font-size: 14px; }
.rs-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.rs-prose figure { margin: 2em 0; }
.rs-prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--bronze-text); }
.rs-table { overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rs-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rs-table th { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); color: var(--bronze-text); }
.rs-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fn a { font-family: var(--mono); font-size: .7em; text-decoration: none; padding: 0 2px; }
.rs-notes { border-top: 1px solid var(--rule); padding-top: 8px; font-size: 15px; }
.rs-notes h2 { font-size: 28px !important; margin-top: 1em !important; }
.rs-notes .back { text-decoration: none; }
.rs-related { padding: 72px 0 96px; border-top: 1px solid var(--rule); margin-top: 56px; }
.rs-related h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin-bottom: 24px; }

:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rs-card h3 a, .rs-disc, .rs-series, .rs-filter, .rs-more { transition: none; } }
.rs-hero h1, .rs-art-head h1, .rs-head h2, .rs-close h2, .rs-prose h2, .rs-prose h3, .rs-card h3, .rs-upcoming h3, .rs-related h2 { text-align: left; }

/* Figures (build: `![alt](file.svg "caption")` + optional `Source:` line) */
.rs-prose .rs-fig { margin: 2.6em 0; }
.rs-fig-media svg, .rs-fig-media img { display: block; width: 100%; height: auto; }
.rs-fig-narrow { display: none; }
@media (max-width: 640px) { .rs-fig-wide { display: none; } .rs-fig-narrow { display: block; } .rs-prose .rs-fig { margin-left: calc(var(--gutter, 20px) * -0.5); margin-right: calc(var(--gutter, 20px) * -0.5); } }
.rs-prose .rs-fig figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; letter-spacing: 0; color: var(--muted); }
.rs-fig-label { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--vermilion-deep); margin-right: .7em; }
.rs-fig-source { display: block; margin-top: 6px; font: 11.5px/1.55 var(--mono); letter-spacing: .03em; color: var(--bronze-text); }
.rs-prose { min-width: 0; } /* keep wide tables scrolling inside their box on narrow screens */
/* Field Tests */
.ft-badge {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ft-badge-adopt { color: var(--vermilion-deep); }
.ft-badge-watch { color: var(--bronze-text); }
.ft-badge-pass { color: var(--muted); }
.ft-tags { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; }
.ft-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
.ft-method {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
  padding: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(23, 25, 22, .86);
}
.ft-method .rs-eyebrow { margin-bottom: 12px; }
.ft-method p + p { margin-top: 0.85em; }
.ft-method p, .ft-method li { font-family: var(--sans); font-size: 16.5px; line-height: 1.65; }
.ft-viewall { margin-top: 28px; }
.ft-item[hidden] { display: none; }
#ft-tags { margin-top: 12px; }
@media (min-width: 760px) { #ft-tags { margin-top: 0; } }
.rs-art-head h1 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.rs-art-head h1 a:hover, .rs-art-head h1 a:focus-visible { background-size: 100% 1px; }

/* Research index booking CTA */
.rs-close .btn {
  margin-top: 28px;
}
@media (max-width: 640px) {
  .rs-close .btn { width: 100%; }
}
