/* Document360 Research: hub (/research/) and study pages (/research/{slug}/).
   Direction: a printed data journal. Calm ink-on-paper chrome, numbered figures with mono labels,
   Document360 violet used flat and only where a number or a bar matters. No gradients, glows or
   uppercase labels. Same selectors as before, so the plugin templates and post content are unchanged.
   Buttons, h1_xxlarge, text-gradient, check-list and .container come from the theme.
   Everything here is scoped to .rs-page. */

.rs-page {
	/* Ink ramp (cool, from the brand navy) */
	--ink: #181B34;          /* primary text */
	--ink-2: #3F4458;        /* secondary text */
	--ink-3: #5C6279;        /* muted text, meta, axis labels */
	--paper: #FFFFFF;        /* page and cards */
	--raised: #F5F6FA;       /* panels, method, cover, active rows */
	--hair: rgba(24, 27, 52, .09);
	--hair-strong: rgba(24, 27, 52, .16);
	--line: #E6E8EF;         /* solid hairline for SVG grid and tracks */
	--track: #EEF0F5;
	--bar: #C3C7D4;          /* bars that are context, not the point */

	/* One accent: Document360 violet, flat */
	--violet: #8005D8;       /* fills, highlighted bar, line */
	--violet-text: #7314CE;  /* accent as text on white, 7:1 */
	--violet-soft: #D9C8FB;  /* quiet accent border */
	--amber: #E8902E;        /* disclosure and live status only */

	/* Labels use the theme font; figures stay aligned with tabular numbers */
	--mono: "Google Sans Flex", var(--content-font, sans-serif);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--shadow: 0 1px 2px rgba(24, 27, 52, .05);
	--shadow-float: 0 8px 24px rgba(24, 27, 52, .06);

	/* Aliases kept for older markup */
	--navy: var(--ink);
	--g200: var(--line);
	--g600: var(--ink-3);
	--light: var(--raised);
	--tint: var(--raised);
	--violet-deep: var(--violet);

	--head: 86px;
	color: var(--ink);
	overflow-x: clip;
}
.rs-page *, .rs-page *::before, .rs-page *::after { box-sizing: border-box; }

/* Theme resets (essentials-min.css numbers ol li and pads every p) */
.rs-page li { list-style: none; }
.rs-page ol > li { width: auto; margin: 0; }
.rs-page p { padding: 0; } /* the theme already sets p margin 0; a margin reset here would beat every class margin */
.rs-page h1, .rs-page h2, .rs-page h3 { margin: 0; padding: 0; color: var(--ink); }
:where(.rs-page) figure { margin: 0; }
.rs-page a { color: var(--violet-text); }
.rs-page [hidden] { display: none !important; }
.rs-page [id] { scroll-margin-top: calc(var(--head) + 72px); }
.rs-page a:focus-visible, .rs-page button:focus-visible, .rs-page input:focus-visible, .rs-page summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.rs-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared type */
.rs-eyebrow, .rs-panel__h, .rs-more-h, .rs-cite__h { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rs-page .rs-h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.rs-sub { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 44em; }
.rs-sec { padding-top: 96px; }
.rs-src { padding: 48px 0 40px; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 60em; }

.rs-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.rs-kick > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 12px; border-radius: 50%; background: var(--bar); vertical-align: middle; }
.rs-type { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--violet-text); }
.rs-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.rs-live::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Opening of study pages: a flat raised band with a hairline, like a journal masthead */
.rs-cover { position: relative; isolation: isolate; background: var(--raised); border-bottom: 1px solid var(--hair); }

/* Buttons and chips used inside cards */
.rs-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rs-page .rs-act { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--hair-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease); }
.rs-page .rs-act:hover { border-color: var(--violet-text); color: var(--violet-text); }
.rs-page .rs-act:active { transform: scale(.98); }

/* ---------- Hub ---------- */

/* Masthead: title, one line and two actions on the left, the three running figures on the right */
.rs-page .rs-hero {
	position: relative;
	padding: 96px 0 80px;
	color: var(--ink);
	text-align: left;
	background: var(--paper);
	border-bottom: 1px solid var(--hair);
}
.rs-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 80px; align-items: center; }
.rs-hero__in > :not(.rs-hero__meta) { grid-column: 1; }
.rs-pill { display: inline-flex; align-self: start; justify-self: start; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.2; color: var(--ink-3); }
.rs-pill .bi { display: none; }
.rs-page .rs-hero__title { margin-top: 16px; font-size: clamp(44px, 5.2vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.rs-hero__lead { margin-top: 20px; max-width: 32em; text-wrap: pretty; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.rs-hero__actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 32px; }
.rs-page .rs-hero__actions .btn { width: auto; min-width: 0; height: 48px; display: inline-flex; align-items: center; padding: 0 20px; border-width: 1px; border-radius: 10px; font-size: 16px; font-weight: 500; line-height: 1; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.rs-page .rs-hero__actions .btn-white { background: var(--violet) !important; border-color: var(--violet) !important; color: #fff !important; }
.rs-page .rs-hero__actions .btn-white:hover { background: var(--violet-text) !important; }
.rs-page .rs-hero__actions .btn-outline-white { background: var(--paper) !important; border: 1px solid var(--hair-strong) !important; color: var(--ink) !important; }
.rs-page .rs-hero__actions .btn-outline-white:hover { border-color: var(--ink) !important; }
.rs-hero__meta { grid-column: 2; grid-row: 1 / span 4; display: grid; gap: 0; margin: 0; padding: 0; border-top: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.rs-hero__meta span { display: block; padding: 20px 0; border-top: 1px solid var(--hair); }
.rs-hero__meta span:last-child { border-bottom: 1px solid var(--hair); }
.rs-hero__meta b { display: block; margin-bottom: 4px; font-family: "Google Sans Flex", var(--mono); font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Report cards (bento): one light card type, one violet card type, both flat */
.rs-bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 40px; }
.rs-bc { position: relative; min-height: 360px; border-radius: 16px; overflow: hidden; transition: border-color .16s var(--ease); }
.rs-bc__link { align-self: flex-start; margin-top: auto; padding-top: 24px; font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rs-bc__link::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: 16px; }

.rs-bc--light { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 24px; padding: 12px 12px 12px 32px; background: var(--paper); border: 1px solid var(--hair-strong); }
.rs-bc--light:not(:has(.rs-bc__media)) { grid-template-columns: minmax(0, 1fr); padding-right: 32px; }
.rs-bc--light:hover { border-color: var(--ink); }
.rs-bc--light .rs-bc__body { display: flex; flex-direction: column; min-width: 0; padding: 20px 0; }
.rs-bc__label { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.rs-bc__word { margin-top: 16px; font-size: clamp(44px, 4.4vw, 68px); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; color: var(--ink); }
.rs-bc--light .rs-bc__text { margin-top: 16px; max-width: 24em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.rs-page .rs-bc--light .rs-bc__link { color: var(--ink); }
.rs-bc--light .rs-bc__media { min-height: 0; border-radius: 4px; overflow: hidden; background: var(--raised); }
.rs-bc--light .rs-bc__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; }

.rs-bc--violet { display: flex; flex-direction: column; padding: 32px; color: #fff; background: var(--violet-text); }
.rs-bc--violet:hover { background: #6610B8; }
.rs-bc__pill { position: relative; z-index: 2; align-self: flex-start; padding: 0; border-radius: 0; background: none; font-family: var(--mono); font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .78); }
.rs-bc--violet .rs-bc__body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; justify-content: flex-end; max-width: 56%; margin-top: 24px; }
.rs-bc__bars { position: absolute; right: 32px; bottom: 32px; top: 96px; z-index: 1; display: flex; align-items: flex-end; gap: 12px; width: 36%; }
.rs-col { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 8px; }
.rs-col b { font-family: var(--mono); font-size: 13px; font-weight: 400; color: #fff; font-variant-numeric: tabular-nums; }
.rs-col i { display: block; width: 100%; min-height: 8px; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .28); }
.rs-col:last-child i { background: #fff; }
.rs-col small { font-size: 12px; line-height: 1.3; text-align: center; color: rgba(255, 255, 255, .78); }
.rs-bc__k { font-size: 15px; color: rgba(255, 255, 255, .78); }
.rs-bc__stat { margin-top: 4px; font-size: clamp(72px, 6.6vw, 104px); font-weight: 400; line-height: .96; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.rs-bc--violet .rs-bc__text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.rs-page .rs-bc--violet .rs-bc__link { margin-top: 0; padding-top: 16px; color: #fff; }

.rs-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-page .rs-filter { height: 36px; padding: 0 12px; border: 1px solid var(--hair-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.rs-filter .c { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.rs-page .rs-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rs-filter[aria-pressed="true"] .c { color: rgba(255, 255, 255, .7); }

.rs-mini { display: grid; gap: 12px; margin: 0; padding: 0; }
.rs-mini__row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 8px; align-items: center; }
.rs-mini__lab { grid-column: 1 / -1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-mini__track { height: 8px; background: rgba(255, 255, 255, .8); border-radius: 2px; overflow: hidden; }
.rs-mini__fill { display: block; height: 100%; border-radius: inherit; background: var(--bar); }
.rs-mini__fill.on { background: var(--violet); }
.rs-mini__val { font-size: 12px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* Editorial rules: four plain columns under one hairline, icons in the muted text role */
.rs-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 32px 0 0; padding: 24px 0 0; background: none; border-top: 1px solid var(--hair-strong); border-radius: 0; }
.rs-rules li { margin: 0; }
.rs-rules .bi { display: block; width: auto; height: auto; margin-bottom: 16px; border-radius: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; box-shadow: none; }
.rs-rules strong { display: block; font-weight: 600; }
.rs-rules span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

.rs-end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rs-uses { margin: 20px 0 8px; }
.rs-cta { position: relative; overflow: hidden; color: #fff; border-radius: 16px; background: var(--ink); box-shadow: none; }
.rs-page .rs-cta h2 { color: #fff; }
.rs-subscribe { padding: 48px; }
.rs-subscribe > p { margin-top: 12px; color: rgba(255, 255, 255, .78); }
.rs-sub-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rs-sub-form input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; transition: border-color .16s var(--ease); }
.rs-sub-form input:focus { border-color: rgba(255, 255, 255, .6); }
.rs-sub-form input::placeholder { color: rgba(255, 255, 255, .64); }
.rs-sub-form .btn { height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 10px; font-weight: 500; }
.rs-sub-msg { margin-top: 12px; font-size: 14px; }

/* ---------- Study cover ---------- */

.rs-cover { padding: 40px 0 56px; }
.rs-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 14px; color: var(--ink-3); }
.rs-crumb li + li::before { content: "/"; margin-right: 8px; color: var(--bar); }
.rs-crumb a { text-decoration: none; font-weight: 500; }
.rs-cover__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; margin-top: 32px; }
.rs-page .rs-title { margin-top: 16px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; max-width: 20em; }
.rs-stand { margin-top: 20px; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.rs-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.rs-avatar { position: relative; display: inline-grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 1px var(--hair); font-size: 15px; font-weight: 600; color: var(--ink-2); overflow: hidden; }
/* The profile photo sits over the initials; if it fails to load it removes itself and the initials show */
.rs-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rs-who b { display: block; font-weight: 600; }
.rs-who span { display: block; font-size: 14px; color: var(--ink-3); }

/* Key finding card: the one bright moment of the cover */
.rs-answer { padding: 32px; background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow-float); }
.rs-answer .rs-eyebrow { display: block; padding: 0; border-radius: 0; background: none; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.rs-page .rs-answer__q { margin-top: 12px; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.rs-answer__word { margin-top: 8px; font-size: clamp(44px, 4vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; color: var(--violet-text); }
.rs-page .rs-answer__word .text-gradient { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; }
.rs-answer__stat { display: flex; align-items: baseline; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair); }
.rs-answer__stat b { font-size: 36px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-answer__stat span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.rs-answer__more { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.rs-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rs-toast { margin-top: 12px; font-size: 13px; color: var(--violet-text); }
.rs-toast:empty { display: none; }
.rs-md-fallback { display: block; width: 100%; min-height: 100px; margin-top: 8px; padding: 12px; font: inherit; font-size: 13px; border: 1px solid var(--hair-strong); border-radius: 8px; }

/* Facts strip: a ruled table row, labels in mono */
.rs-spec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; box-shadow: none; }
.rs-spec div { padding: 20px 24px; min-width: 0; }
.rs-spec div + div { border-left: 1px solid var(--hair); }
.rs-spec dt { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: lowercase; color: var(--ink-3); }
.rs-spec dt::first-letter { text-transform: uppercase; }
.rs-spec dd { margin: 8px 0 0; font-weight: 500; line-height: 1.35; font-variant-numeric: tabular-nums; }

/* Sticky section menu and reading progress */
.rs-snav { position: sticky; top: var(--head); z-index: 5; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.rs-snav ol { display: flex; gap: 4px; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.rs-page .rs-snav a { display: flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: background-color .16s var(--ease), color .16s var(--ease); }
.rs-page .rs-snav a:hover { color: var(--ink); background: var(--raised); }
.rs-page .rs-snav a.is-on { color: var(--violet-text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--hair); }
.rs-progress { position: fixed; top: var(--head); left: 0; right: 0; z-index: 6; height: 2px; pointer-events: none; }
.rs-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: var(--violet); }

/* ---------- Study body (post content) ---------- */

.rs-intro .rs-prose { margin-top: 16px; }
.rs-prose { max-width: 760px; }
.rs-prose p { font-size: 18px; line-height: 1.7; }
.rs-prose p + p { margin-top: 16px; }

/* Finding: a numbered rail with a short violet tick, the signature of every study */
.rs-fsec { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 80px; }
.rs-rail { position: sticky; top: calc(var(--head) + 88px); align-self: start; padding: 20px 0 0; border-top: 1px solid var(--hair-strong); }
.rs-rail::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 2px; background: var(--violet); }
.rs-rail .k { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rs-rail .n { display: block; margin-top: 12px; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-rail .l { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.rs-fbody { max-width: 800px; min-width: 0; }
.rs-page .rs-fbody h2 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.rs-page .rs-fbody > h3 { margin-top: 36px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.rs-fbody > p { margin-top: 16px; font-size: 18px; line-height: 1.7; }

/* Figures: white plate, hairline, mono figure number */
.rs-fig { margin-top: 32px; padding: 28px; background: var(--paper); border: 1px solid var(--hair-strong); border-radius: 12px; }
.rs-fig-k { display: block; padding: 0; border-radius: 0; background: none; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rs-fig-t { margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.rs-fig-s { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.rs-fig-n { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.rs-bars { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; }
.rs-bar { display: grid; grid-template-columns: minmax(0, 208px) minmax(0, 1fr) 60px; gap: 16px; align-items: center; }
.rs-bar .lab, .rs-pair .lab { font-size: 14px; line-height: 1.3; }
.rs-bar .lab small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.rs-track { display: block; height: 12px; background: var(--track); border-radius: 2px; overflow: hidden; box-shadow: none; }
.rs-fill { display: block; height: 100%; border-radius: inherit; background: var(--bar); transform-origin: left center; transition: transform .5s var(--ease); }
.rs-fill.on { background: var(--violet); }
.rs-anim .rs-fig:not(.is-in) .rs-fill { transform: scaleX(0); }
.rs-val { text-align: right; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rs-pair { display: grid; grid-template-columns: minmax(0, 208px) minmax(0, 1fr); gap: 16px; align-items: center; }
.rs-pbars { display: grid; gap: 4px; }
.rs-pb { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 16px; align-items: center; }
.rs-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.rs-sw { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 2px; vertical-align: -1px; background: var(--bar); }
.rs-sw.on { background: var(--violet); }

.rs-line-chart { display: block; width: 100%; height: auto; margin-top: 20px; overflow: visible; }
.rs-line-chart .grid { stroke: var(--line); stroke-width: 1; }
.rs-line-chart .axis { font-family: var(--mono); font-size: 12px; fill: var(--ink-3); }
.rs-line-chart .path { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rs-line-chart .area { fill: var(--violet); opacity: .07; }
.rs-line-chart .dot { fill: #fff; stroke: var(--violet); stroke-width: 2; }
.rs-anim .rs-fig:not(.is-in) .rs-line-chart .path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.rs-anim .rs-fig .rs-line-chart .path { stroke-dasharray: 1400; transition: stroke-dashoffset 1.2s var(--ease); }

.rs-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.rs-split > div { padding: 20px 24px; background: var(--raised); border: 1px solid transparent; border-radius: 8px; }
.rs-split .on { background: var(--paper); border-color: var(--violet-soft); box-shadow: none; }
.rs-split__h { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rs-split .on .rs-split__h { color: var(--violet-text); }
.rs-split ul { margin: 12px 0 0; padding: 0; }
.rs-split li { position: relative; margin-top: 8px; padding-left: 16px; font-size: 15px; }
.rs-split li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--bar); }
.rs-split .on li::before { background: var(--violet); }

/* Notes: a margin note, ruled on the left */
.rs-note { margin-top: 24px; padding: 4px 0 4px 20px; background: none; border: 0; border-left: 2px solid var(--violet); border-radius: 0; box-shadow: none; }
.rs-page .rs-note h3 { display: block; font-size: 16px; font-weight: 600; }
.rs-note h3::before { content: none; }
.rs-note p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.rs-note a { font-weight: 500; text-decoration: none; }
.rs-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rs-note--disc { padding: 16px 20px; background: #FFF8EE; border-left-color: var(--amber); border-radius: 0 8px 8px 0; }

/* Takeaway band */
.rs-band { margin-top: 96px; padding: 88px 0; background: var(--ink); }
.rs-band__in { max-width: 860px; }
.rs-band .rs-eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .64); }
.rs-page .rs-band h2 { margin-top: 12px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.rs-band p:not(.rs-eyebrow) { margin-top: 16px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

/* FAQ: ruled list, not cards */
.rs-faq { display: grid; gap: 0; margin-top: 32px; max-width: 880px; border-top: 1px solid var(--hair-strong); }
.rs-faq details { background: none; border: 0; border-bottom: 1px solid var(--hair-strong); border-radius: 0; }
.rs-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; transition: color .16s var(--ease); }
.rs-faq summary:hover { color: var(--violet-text); }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 0; background: none; color: var(--ink-3); font-family: var(--mono); font-size: 18px; font-weight: 400; line-height: 1; transition: transform .16s var(--ease); }
.rs-faq details[open] summary::after { transform: rotate(45deg); }
.rs-faq details p { padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 48em; }

/* Method: the footnote table */
.rs-method { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 32px; margin: 32px 0 0; padding: 28px 32px; max-width: 980px; background: var(--raised); border-radius: 12px; }
.rs-method dt { font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--ink-3); padding-top: 2px; }
.rs-method dd { margin: 0; line-height: 1.6; color: var(--ink-2); }

/* Author, citation, related, closing CTA */
.rs-ac { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rs-author, .rs-cite { padding: 28px; background: var(--paper); border: 1px solid var(--hair-strong); border-radius: 12px; }
.rs-author .rs-byline { margin-top: 0; }
.rs-author p { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.rs-cite__text { margin-top: 12px; padding: 16px; background: var(--raised); border-radius: 8px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; user-select: all; }
.rs-cite .rs-act { margin-top: 16px; }
.rs-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 0; }
.rs-related li { margin: 0; }
.rs-page .rs-related a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; background: var(--paper); border: 1px solid var(--hair-strong); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .16s var(--ease); }
.rs-page .rs-related a:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.rs-related b { font-size: 17px; font-weight: 500; line-height: 1.4; }
.rs-related .rs-go { margin-top: auto; }
.rs-page .rs-related .rs-related__all { justify-content: center; align-items: center; flex-direction: row; gap: 8px; background: var(--raised); border-color: transparent; color: var(--violet-text); font-weight: 500; }
.rs-close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 96px; padding: 48px; }
.rs-page .rs-close h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.25; max-width: 22em; }
.rs-close p { margin-top: 12px; max-width: 38em; color: rgba(255, 255, 255, .78); }
.rs-close__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-close__btns .btn, .rs-subscribe .btn { border-radius: 10px; font-weight: 500; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 1199px) {
	.rs-cover__grid, .rs-end { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.rs-hero__in { grid-template-columns: minmax(0, 1fr); }
	.rs-hero__meta { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
	.rs-hero__meta span:last-child { border-bottom: 0; }
	.rs-bento { grid-template-columns: minmax(0, 1fr); }
	.rs-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-spec div + div { border-left: 0; }
	.rs-spec div { border-top: 1px solid var(--hair); }
	.rs-spec div:nth-child(-n+2) { border-top: 0; }
	.rs-spec div:nth-child(even) { border-left: 1px solid var(--hair); }
	.rs-fsec { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.rs-rail { position: relative; top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
	.rs-rail .k { width: 100%; }
	.rs-rail .n { margin-top: 0; font-size: 44px; }
	.rs-rail .l { margin-top: 0; }
	.rs-related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.rs-sec { padding-top: 64px; }
	.rs-page .rs-hero { padding: 56px 0 48px; }
	.rs-hero__lead { font-size: 18px; }
	.rs-hero__meta { gap: 16px; margin-top: 40px; font-size: 12px; }
	.rs-hero__meta span { padding: 12px 0 0; }
	.rs-hero__meta b { font-size: 24px; }
	.rs-bc--violet .rs-bc__body { max-width: none; }
	.rs-bc__bars { position: static; width: 100%; height: 152px; margin-top: 24px; }
	.rs-bc--violet { min-height: 0; padding: 24px; }
	.rs-bc { min-height: 0; }
	.rs-bc--light, .rs-bc--light:not(:has(.rs-bc__media)) { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px; }
	.rs-bc--light .rs-bc__body { padding: 16px 12px 12px; }
	.rs-bc--light .rs-bc__media { aspect-ratio: 16 / 10; order: -1; }
	.rs-rules, .rs-ac, .rs-split { grid-template-columns: minmax(0, 1fr); }
	.rs-answer { padding: 24px; }
	.rs-fig { padding: 20px; }
	.rs-bar, .rs-pair { grid-template-columns: minmax(0, 1fr) 56px; gap: 8px 12px; }
	.rs-bar .lab, .rs-pair .lab { grid-column: 1 / -1; }
	.rs-pair .rs-pbars { grid-column: 1 / -1; }
	.rs-pb { grid-template-columns: minmax(0, 1fr) 56px; }
	.rs-method { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 24px; }
	.rs-method dd { margin-bottom: 16px; }
	.rs-subscribe, .rs-close { padding: 32px 24px; }
	.rs-spec { grid-template-columns: minmax(0, 1fr); }
	.rs-spec div, .rs-spec div:nth-child(even) { border-left: 0; }
	.rs-spec div:nth-child(2) { border-top: 1px solid var(--hair); }
	.rs-band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.rs-page *, .rs-page *::before, .rs-page *::after { transition: none !important; }
	.rs-anim .rs-fig .rs-fill { transform: none; }
	.rs-anim .rs-fig .rs-line-chart .path { stroke-dashoffset: 0; }
}

/* =====================================================================
   Study page layout (single research post)
   Matches document360.com: white and warm off-white sections, headings at
   500, Document360 violet as the accent, the brand gradient on one key word,
   rounded cards, one dark band. Scoped to .rs-single so the hub is untouched.
   ===================================================================== */

.rs-single {
	--warm: #F4F3EF;          /* the off-white section colour used on document360.com */
	--violet-tint: #F6F0FF;
	--rad-lg: 20px;
	--rad: 14px;
	--col: 1180px;
	font-variant-numeric: tabular-nums;
}

/* One centred column for the whole page, so nothing hangs to the left on wide screens */
.rs-single .container { max-width: var(--col); }

/* ---------- Cover ---------- */
.rs-single .rs-cover { padding: 48px 0 0; background: var(--warm); border-bottom: 0; }
.rs-single .rs-crumb { font-size: 14px; }
.rs-single .rs-cover__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; margin-top: 40px; }
.rs-single .rs-kick { font-size: 14px; }
/* Type pill: solid violet so it stands out on the warm cover (white on #8005D8 is 6.9:1) */
.rs-single .rs-type { padding: 4px 12px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 500; }
/* Inside the white related cards a lighter pill is enough */
.rs-single .rs-related .rs-type { background: var(--violet-tint); color: var(--violet-text); }
.rs-single .rs-kick > .rs-type + span::before { display: none; }
.rs-single .rs-title { margin-top: 20px; font-size: clamp(34px, 3.8vw, 52px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; max-width: 18em; }
.rs-single .rs-stand { margin-top: 20px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.rs-single .rs-byline { margin-top: 32px; gap: 16px; }
.rs-single .rs-avatar { width: 52px; height: 52px; box-shadow: 0 0 0 3px #fff; }
.rs-single .rs-who b { font-size: 16px; }

/* Key finding card: the one bright moment */
.rs-single .rs-answer { padding: 32px; background: #fff; border: 0; border-radius: var(--rad-lg); box-shadow: 0 1px 2px rgba(24, 27, 52, .04), 0 16px 40px -16px rgba(24, 27, 52, .14); }
.rs-single .rs-answer .rs-eyebrow { font-size: 14px; font-weight: 500; color: var(--violet-text); }
.rs-single .rs-answer__q { margin-top: 8px; font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.rs-single .rs-answer__word { margin-top: 16px; font-size: clamp(44px, 4vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
	.rs-single .rs-answer__word { background: linear-gradient(90deg, #E31B89, #8133FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-bottom: 4px; }
}
/* Number and its label centred against each other, not sitting on a shared baseline */
.rs-single .rs-answer__stat { align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.rs-single .rs-answer__stat b { font-size: 40px; line-height: 1; color: var(--ink); }
.rs-single .rs-acts { gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rs-single .rs-act { height: 36px; border-radius: 999px; padding: 0 14px; }

/* Study facts: one row of five on the warm band, closing the cover */
.rs-single .rs-spec { margin: 48px 0 0; background: transparent; border: 0; border-top: 1px solid rgba(24, 27, 52, .1); border-radius: 0; box-shadow: none; }
.rs-single .rs-spec div { padding: 24px 24px 32px 0; }
.rs-single .rs-spec div + div { padding-left: 24px; border-left: 1px solid rgba(24, 27, 52, .1); }
.rs-single .rs-spec dt { font-size: 13px; color: var(--ink-3); }
.rs-single .rs-spec dd { margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink); }

/* ---------- Section menu: pill tabs, as on the home page ---------- */
.rs-single .rs-snav { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.rs-single .rs-snav ol { gap: 4px; padding: 12px 0; }
.rs-single .rs-snav a { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.rs-single .rs-snav a:hover { background: var(--warm); color: var(--ink); }
.rs-single .rs-snav a.is-on { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Findings ---------- */
.rs-single .rs-h2 { font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.015em; }
/* Intro: plain text across the full page width */
.rs-single .rs-intro { padding-top: 88px; }
.rs-single .rs-intro .rs-h2 { max-width: none; }
.rs-single .rs-intro .rs-prose { max-width: none; margin-top: 20px; }
.rs-single .rs-prose p { font-size: 19px; line-height: 1.7; color: var(--ink-2); }

.rs-single .rs-fsec { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 96px; }
.rs-single .rs-rail { top: calc(var(--head) + 96px); padding-top: 20px; border-top: 1px solid var(--line); }
.rs-single .rs-rail::before { width: 40px; height: 3px; top: -2px; background: linear-gradient(90deg, #E31B89, #8133FF); border-radius: 2px; }
.rs-single .rs-rail .k { font-size: 14px; font-weight: 500; color: var(--violet-text); }
.rs-single .rs-rail .n { margin-top: 12px; font-size: 56px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.rs-single .rs-rail .l { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.rs-single .rs-fbody { max-width: none; }
.rs-single .rs-fbody h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.22; }
.rs-single .rs-fbody > p { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 46em; }

/* Figures: soft warm plate, white chart surface */
.rs-single .rs-fig { margin-top: 32px; padding: 32px; background: var(--warm); border: 0; border-radius: var(--rad-lg); }
.rs-single .rs-fig-k { font-size: 13px; font-weight: 500; color: var(--violet-text); }
.rs-single .rs-fig-t { margin-top: 6px; font-size: 20px; font-weight: 500; }
.rs-single .rs-fig-s { margin-top: 6px; font-size: 15px; }
.rs-single .rs-fig-n { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(24, 27, 52, .1); font-size: 14px; }
.rs-single .rs-line-chart { margin-top: 24px; padding: 16px 12px 8px; background: #fff; border-radius: var(--rad); }
.rs-single .rs-bars { margin-top: 24px; padding: 24px; background: #fff; border-radius: var(--rad); gap: 18px; }
.rs-single .rs-bar { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 64px; }
.rs-single .rs-pair { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.rs-single .rs-pb { grid-template-columns: minmax(0, 1fr) 64px; }
.rs-single .rs-bar .lab, .rs-single .rs-pair .lab { font-size: 15px; color: var(--ink); }
.rs-single .rs-track { height: 12px; border-radius: 999px; background: #EEEDE8; }
.rs-single .rs-fill { background: #C9C6D6; }
.rs-single .rs-fill.on { background: var(--violet); }
.rs-single .rs-val { font-size: 15px; font-weight: 500; }
.rs-single .rs-sw { border-radius: 999px; background: #C9C6D6; }
.rs-single .rs-sw.on { background: var(--violet); }
.rs-single .rs-split { margin-top: 24px; gap: 16px; }
.rs-single .rs-split > div { padding: 24px; background: #fff; border: 1px solid transparent; border-radius: var(--rad); }
.rs-single .rs-split .on { border-color: #D9C8FB; }
.rs-single .rs-split__h { font-size: 16px; font-weight: 500; }

/* Notes: violet-tinted callout */
.rs-single .rs-note { margin-top: 24px; padding: 24px 28px; background: var(--violet-tint); border: 0; border-radius: var(--rad); }
.rs-single .rs-note h3 { font-size: 17px; font-weight: 500; color: var(--violet-text); }
.rs-single .rs-note p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.rs-single .rs-note a { font-weight: 500; }
.rs-single .rs-note--disc { background: #FFF6EA; }
.rs-single .rs-note--disc h3 { color: #9A5A12; }

/* ---------- Takeaway: a contained summary card, one column at every width.
   Label, headline on one line, then the two paragraphs; the first behind a violet rule ---------- */
.rs-single .rs-band { margin-top: 112px; padding: 0; background: none; }
.rs-single .rs-band__in {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0;
	align-items: start;
	max-width: none;
	margin: 0;
	padding: 64px;
	overflow: hidden;
	text-align: left;
	background: var(--ink);
	border-radius: 24px;
}
.rs-single .rs-band__in::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #E31B89, #8133FF); }
.rs-single .rs-band__in > * { grid-column: 1; }
.rs-single .rs-band .rs-eyebrow { grid-row: 1; justify-self: start; display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 500; color: #CDB6FF; }
.rs-single .rs-band h2 { grid-row: auto; max-width: none; margin-top: 20px; font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.rs-single .rs-band p:not(.rs-eyebrow) { grid-column: 1; margin: 16px 0 0; max-width: none; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.rs-single .rs-band p:not(.rs-eyebrow):nth-of-type(2) { grid-row: auto; margin-top: 24px; padding-left: 24px; border-left: 2px solid rgba(205, 182, 255, .5); color: #fff; }
.rs-single .rs-band p:not(.rs-eyebrow):nth-of-type(3) { grid-row: auto; padding-left: 26px; }

/* ---------- Questions ---------- */
.rs-single #questions { padding-top: 104px; }
.rs-single .rs-faq { margin-top: 32px; max-width: none; gap: 12px; border-top: 0; }
.rs-single .rs-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--rad); transition: border-color .16s var(--ease); }
.rs-single .rs-faq details[open] { border-color: #D9C8FB; }
.rs-single .rs-faq summary { padding: 20px 24px; font-size: 18px; font-weight: 500; }
.rs-single .rs-faq summary::after { width: 32px; height: 32px; border-radius: 50%; background: var(--warm); color: var(--ink); font-family: inherit; }
.rs-single .rs-faq details[open] summary::after { background: var(--violet); color: #fff; }
.rs-single .rs-faq details p { padding: 0 24px 24px; font-size: 17px; }

/* ---------- Method ---------- */
.rs-single .rs-method { margin-top: 32px; max-width: none; padding: 16px 40px; background: var(--warm); border-radius: var(--rad-lg); gap: 0 40px; }
.rs-single .rs-method dt, .rs-single .rs-method dd { padding: 18px 0; border-top: 1px solid rgba(24, 27, 52, .1); }
.rs-single .rs-method dt:first-of-type, .rs-single .rs-method dt:first-of-type + dd { border-top: 0; }
.rs-single .rs-method dt { font-size: 15px; font-weight: 500; color: var(--ink); }
.rs-single .rs-method dd { font-size: 16px; color: var(--ink-2); }

/* ---------- Author and citation: two equal cards ---------- */
.rs-single .rs-ac { gap: 24px; align-items: stretch; }
.rs-single .rs-author, .rs-single .rs-cite { display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad-lg); }
.rs-single .rs-author .rs-avatar { width: 64px; height: 64px; font-size: 18px; box-shadow: 0 0 0 1px var(--line); }
.rs-single .rs-author p { margin-top: 20px; font-size: 16px; line-height: 1.65; }
.rs-single .rs-cite__h { font-size: 18px; font-weight: 500; color: var(--ink); }
.rs-single .rs-cite__text { flex: 1; margin-top: 16px; padding: 20px; background: var(--warm); border-radius: var(--rad); font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.rs-single .rs-cite .rs-act { align-self: flex-start; margin-top: 16px; border-radius: 999px; }

/* ---------- More research ---------- */
.rs-single .rs-more-h { font-size: clamp(24px, 2vw, 30px); font-weight: 500; color: var(--ink); }
.rs-single .rs-related { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.rs-single .rs-related a { padding: 28px; border: 1px solid var(--line); border-radius: var(--rad-lg); background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.rs-single .rs-related a:hover { border-color: #D9C8FB; box-shadow: 0 16px 40px -20px rgba(24, 27, 52, .18); }
.rs-single .rs-related b { font-size: 20px; font-weight: 500; line-height: 1.35; }
.rs-single .rs-related .rs-go { color: var(--violet-text); font-weight: 500; }
.rs-single .rs-related .rs-related__all { min-height: 100%; justify-content: center; background: var(--warm); border-color: transparent; font-size: 17px; }

/* ---------- Closing CTA: Document360 violet, as on the site ---------- */
.rs-single .rs-close { margin-top: 112px; padding: 56px 64px; border-radius: 24px; background: var(--violet); }
.rs-single .rs-close h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; }
.rs-single .rs-close p { font-size: 18px; color: rgba(255, 255, 255, .86); }
.rs-single .rs-close .btn { width: auto; max-width: none; margin: 0; height: 48px; display: inline-flex; align-items: center; padding: 0 24px; border-radius: 999px; font-weight: 500; }
/* Space before the site footer lives on the page, so it holds even when the source line is removed */
.rs-single { padding-bottom: 96px; }
.rs-single .rs-src { padding: 32px 0 0; font-size: 14px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1199px) {
	.rs-single .rs-cover__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.rs-single .rs-answer { max-width: 560px; }
	.rs-single .rs-fsec { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 72px; }
	.rs-single .rs-rail { position: relative; top: auto; }
	.rs-single .rs-rail .n { font-size: 44px; }
	.rs-single .rs-spec div, .rs-single .rs-spec div + div { padding: 20px 20px 20px 0; }
	.rs-single .rs-spec div:nth-child(even) { padding-left: 20px; }
	/* Intro stacks: headline, then the paragraphs */
	.rs-single .rs-intro { padding-top: 72px; }
	/* Takeaway: same one-column layout, less padding */
	.rs-single .rs-band__in { padding: 48px; }
}
@media (max-width: 767px) {
	.rs-single .rs-cover { padding-top: 32px; }
	.rs-single .rs-title { font-size: 34px; }
	.rs-single .rs-stand { font-size: 18px; }
	.rs-single .rs-answer { padding: 24px; }
	.rs-single .rs-spec div, .rs-single .rs-spec div + div, .rs-single .rs-spec div:nth-child(even) { padding: 16px 0; border-left: 0; }
	.rs-single .rs-fig { padding: 20px; }
	.rs-single .rs-bars { padding: 16px; }
	.rs-single .rs-bar, .rs-single .rs-pair { grid-template-columns: minmax(0, 1fr) 56px; }
	.rs-single .rs-band { margin-top: 80px; }
	.rs-single .rs-band__in { padding: 40px 24px 32px; border-radius: 20px; }
	.rs-single .rs-method { padding: 8px 24px; }
	.rs-single .rs-method dt { padding-bottom: 0; }
	.rs-single .rs-method dd { padding-top: 4px; border-top: 0; }
	.rs-single .rs-author, .rs-single .rs-cite { padding: 24px; }
	.rs-single .rs-close { margin-top: 80px; padding: 32px 24px; border-radius: 20px; }
	.rs-single { padding-bottom: 64px; }
}

/* =====================================================================
   Research hub layout (/research/)
   Editorial hero: a full-width headline with inline chips and the main
   button, two statements, the key figures. Reports as a bento: a light
   card with a big word and a photo, a violet card with the key number
   and a bar chart. Then the rules band and the cite and subscribe cards.
   Document360 colours and theme classes; new classes start with "rh-".
   ===================================================================== */

.rs-hub {
	--warm: #F4F3EF;
	--violet-tint: #F6F0FF;
	--rad-lg: 24px;
	--rad: 14px;
	--col: 1240px;
	padding-bottom: 96px;
	font-variant-numeric: tabular-nums;
}
.rs-hub .container { max-width: var(--col); }

/* Buttons: theme classes (btn-primary, btn-white), sized here */
.rs-hub .btn { width: auto; max-width: none; margin: 0; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.rs-hub .btn-primary { background: var(--violet) !important; border: 1px solid var(--violet); color: #fff !important; }
.rs-hub .btn-primary:hover { background: var(--violet-text) !important; }

/* ---------- Hero ---------- */
.rh-hero {
	position: relative;
	padding: 72px 0 0;
	background: var(--warm);
}
/* Fixed height and line height so theme paragraph styles cannot shift the text */
.rs-hub .rh-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 16px 0 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(24, 27, 52, .08); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap; color: var(--ink-2); }
.rh-pill__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

/* Headline with one inline photo chip */
/* The photo chip sits beside the H1 (not inside it); both share the headline size so the chip scales with the text */
.rs-hub .rh-headline { margin: 28px 0 0; max-width: 15em; font-size: clamp(44px, 6vw, 88px); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; color: var(--ink); }
.rs-hub .rh-headline h1.rh-title { display: inline; margin: 0; max-width: none; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
.rs-hub .rh-title .text-gradient { display: inline; padding-bottom: .06em; }
.rh-chip { display: inline-block; height: .78em; vertical-align: -.06em; border-radius: .2em; overflow: hidden; }
.rh-chip--img { width: 1.5em; margin-right: .12em; background: #E9E4F8; }
.rh-chip--img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }

/* Lead paragraph with the main button beside it */
.rh-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 40px; }
.rh-intro__text { flex: 1 1 32em; max-width: 40em; }
.rs-hub .rh-lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); }

/* Key figures closing the hero: the number on top, its label below.
   The markup keeps dt before dd (valid HTML); column-reverse shows the number first. */
.rh-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; border-top: 1px solid rgba(24, 27, 52, .14); }
.rh-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 28px 24px 40px 0; }
.rh-facts div + div { padding-left: 24px; border-left: 1px solid rgba(24, 27, 52, .14); }
.rs-hub .rh-facts dd { margin: 0; font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-hub .rh-facts dt { margin-top: 12px; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--ink-3); }

/* ---------- Section heads ---------- */
.rh-sec { padding-top: 104px; }
.rh-head { max-width: none; }
.rs-hub .rh-h2 { font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.rh-sub { margin-top: 12px; max-width: 46em; font-size: 18px; line-height: 1.6; color: var(--ink-3); }
.rs-hub .rh-h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 500; line-height: 1.25; color: var(--ink); }

/* ---------- Report bento ---------- */
.rh-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.rh-bc { position: relative; display: flex; min-height: 380px; border-radius: var(--rad-lg); overflow: hidden; }
.rh-bc__body { position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 0; }
.rh-bc__link { align-self: flex-start; margin-top: auto; padding-top: 24px; font-size: 17px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.rh-bc__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--rad-lg); }
.rh-bc__link:focus-visible { outline: none; }
.rh-bc__link:focus-visible::after { outline: 2px solid var(--violet); outline-offset: 3px; }
.rs-hub .rh-bc__text { margin-top: 12px; font-size: 16px; line-height: 1.55; }

/* Light card: topic, big word, photo on the right */
.rh-bc--light { gap: 24px; padding: 12px 12px 12px 32px; background: #fff; border: 1px solid var(--line); transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.rh-bc--light:hover { border-color: #D9C8FB; box-shadow: 0 20px 48px -24px rgba(24, 27, 52, .22); }
.rh-bc--light .rh-bc__body { flex: 1; padding: 20px 0; }
.rs-hub .rh-bc__label { font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.rs-hub .rh-bc__word { margin-top: auto; font-size: clamp(44px, 4vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -.035em; color: var(--ink); }
.rh-bc--light .rh-bc__text { max-width: 20em; color: var(--ink-2); }
.rs-hub .rh-bc--light .rh-bc__link { color: var(--ink); }
.rh-bc__media { flex: 0 0 44%; border-radius: 16px; overflow: hidden; background: #E9E4F8; }
.rh-bc__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 35%; transition: transform .5s var(--ease); }
.rh-bc--light:hover .rh-bc__media img { transform: scale(1.03); }

/* Violet card: white topic pill, key number, white bar chart on the right */
.rh-bc--violet { flex-direction: column; padding: 32px; background: var(--violet); color: #fff; transition: background-color .16s var(--ease); }
.rh-bc--violet:hover { background: var(--violet-text); }
.rh-bc__pill { position: relative; z-index: 2; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); }
.rh-bc--violet .rh-bc__body { flex: 1; justify-content: flex-end; max-width: 54%; margin-top: 24px; }
.rs-hub .rh-bc__k { font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .82); }
.rs-hub .rh-bc__stat { margin-top: 8px; font-size: clamp(64px, 5.6vw, 96px); font-weight: 400; line-height: .95; letter-spacing: -.045em; color: #fff; }
.rh-bc--violet .rh-bc__text { max-width: 18em; color: rgba(255, 255, 255, .92); }
.rs-hub .rh-bc--violet .rh-bc__link { color: #fff; }
/* Chart: three columns share one baseline; labels sit under it in a fixed two-line row */
.rh-bc__bars { position: absolute; z-index: 1; top: 32px; right: 32px; bottom: 32px; display: flex; flex-direction: column; width: 34%; }
/* Room above the tallest bar for its value; each value rides on top of its bar */
.rh-plot { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 12px; min-height: 0; padding-top: 28px; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.rh-col { position: relative; display: flex; align-items: flex-end; height: 100%; }
.rh-col i { position: relative; display: block; width: 100%; min-height: 8px; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .3); }
.rh-col b { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 8px; font-size: 14px; font-weight: 500; font-style: normal; line-height: 1; text-align: center; color: #fff; }
.rh-col:last-child i { background: #fff; }
.rh-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: calc(2 * 1.3em + 10px); padding-top: 10px; }
.rh-labels small { font-size: 12px; line-height: 1.3; text-align: center; color: rgba(255, 255, 255, .82); }

/* ---------- Rules band ---------- */
.rh-band { margin-top: 112px; padding: 96px 0; background: var(--warm); }
.rh-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; }
.rh-rules li { display: flex; flex-direction: column; margin: 0; padding: 28px; background: #fff; border-radius: 20px; }
.rh-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-tint); color: var(--violet-text); font-size: 20px; }
.rh-rules strong { display: block; margin-top: 20px; font-size: 17px; font-weight: 500; color: var(--ink); }
.rh-rules li > span:last-child { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Quote and subscribe: two equal cards side by side ---------- */
.rh-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.rh-quote, .rh-subscribe { position: relative; display: flex; flex-direction: column; padding: 48px; overflow: hidden; border-radius: var(--rad-lg); }

.rh-quote { background: #fff; border: 1px solid var(--line); }
.rh-quote__sub, .rh-subscribe__sub { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.rh-quote__sub { color: var(--ink-2); }
.rh-quote__list { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; }
.rh-quote__list li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px 12px 12px; background: var(--warm); border-radius: var(--rad); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.rh-quote__list .rh-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; font-size: 17px; }
.rs-hub .rh-quote__press { margin-top: auto; padding-top: 24px; font-size: 15px; color: var(--ink-3); }
.rh-quote__press a { font-weight: 500; }

.rh-subscribe { background: var(--violet); color: #fff; }
.rh-subscribe::after { content: ""; position: absolute; right: -140px; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.rs-hub .rh-subscribe .rh-h3 { position: relative; color: #fff; }
.rh-subscribe__sub { position: relative; max-width: 26em; color: rgba(255, 255, 255, .86); }
.rh-subscribe__form { position: relative; z-index: 1; margin-top: auto; padding-top: 32px; }
.rh-subscribe .rs-sub-form { display: flex; gap: 8px; margin: 0; padding: 6px; background: #fff; border-radius: 999px; }
.rh-subscribe .rs-sub-form input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.rh-subscribe .rs-sub-form input::placeholder { color: var(--ink-3); }
.rh-subscribe .rs-sub-form input:focus { outline: none; }
.rh-subscribe .rs-sub-form:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.rs-hub .rh-subscribe .btn-white { flex: none; height: 52px; background: var(--ink); border: 0; color: #fff !important; }
.rs-hub .rh-subscribe .btn-white:hover { background: #000; }
.rh-subscribe .rs-sub-msg { margin-top: 12px; padding-left: 20px; font-size: 14px; color: #fff; }
.rs-hub .rh-subscribe__note { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.rs-hub .rh-subscribe__note a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1199px) {
	.rh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rh-facts div, .rh-facts div + div { padding: 20px 20px 20px 0; border-left: 0; }
	.rh-facts div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(24, 27, 52, .1); }
	.rh-facts div:nth-child(n+3) { border-top: 1px solid rgba(24, 27, 52, .1); padding-bottom: 32px; }
	.rh-bento { grid-template-columns: minmax(0, 1fr); }
	.rh-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rh-end { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.rs-hub { padding-bottom: 64px; }
	.rh-hero { padding: 48px 0 0; }
	.rs-hub .rh-headline { font-size: 42px; line-height: 1.12; }
	.rh-intro { margin-top: 28px; }
	.rh-intro__text { flex-basis: 100%; }
	.rs-hub .rh-lead { font-size: 18px; }
	.rh-facts { margin-top: 40px; }
	.rs-hub .rh-facts dd { font-size: 40px; }
	.rs-hub .rh-facts dt { font-size: 14px; }
	.rh-sec { padding-top: 72px; }
	.rh-bc { min-height: 0; }
	.rh-bc--light { flex-direction: column; gap: 0; padding: 12px; }
	.rh-bc--light .rh-bc__body { padding: 20px 12px 12px; }
	.rh-bc__media { order: -1; flex: none; aspect-ratio: 16 / 10; }
	.rh-bc--violet { padding: 24px; }
	.rh-bc--violet .rh-bc__body { max-width: none; }
	.rh-bc__bars { position: static; width: 100%; height: 160px; margin-top: 24px; }
	.rh-band { margin-top: 80px; padding: 64px 0; }
	.rh-rules { grid-template-columns: minmax(0, 1fr); }
	.rh-quote, .rh-subscribe { padding: 28px 24px; border-radius: 20px; }
	.rh-subscribe .rs-sub-form { flex-wrap: wrap; padding: 0; background: none; border-radius: 0; gap: 12px; }
	.rh-subscribe .rs-sub-form input { flex-basis: 100%; background: #fff; }
	.rs-hub .rh-subscribe .btn-white { width: 100%; justify-content: center; }
}

/* Bar tooltips (Figure 1): add data-tip="About 994 of 3,271 reviewers" and tabindex="0" to an .rs-bar.
   Shows on hover and on keyboard focus; the same text sits in an .rs-vh span for screen readers. */
.rs-single .rs-bar[data-tip] { position: relative; border-radius: 8px; outline-offset: 4px; }
.rs-single .rs-bar[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 3; right: 0; bottom: calc(100% + 6px); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .16s var(--ease), transform .16s var(--ease); }
.rs-single .rs-bar[data-tip]:hover::after, .rs-single .rs-bar[data-tip]:focus-visible::after { opacity: 1; transform: none; }
.rs-single .rs-bar[data-tip]:hover .rs-fill { filter: brightness(.92); }
@media (hover: none) {
	.rs-single .rs-bar[data-tip]:focus::after { opacity: 1; transform: none; }
}

/* Line-chart point tooltips (Figure 5): wrap a point as
   <g class="pt" tabindex="0" role="img" aria-label="Aug 2025: 100"><circle class="hit" .../><circle class="dot" .../>
   <g class="tip"><rect .../><text ...>Aug: 100</text></g></g>. The value shows on hover and keyboard focus. */
.rs-line-chart .pt { cursor: default; outline: none; }
.rs-line-chart .pt .hit { fill: transparent; stroke: none; }
.rs-line-chart .pt .dot { transition: r .15s var(--ease), fill .15s var(--ease); }
.rs-line-chart .pt:hover .dot, .rs-line-chart .pt:focus-visible .dot { r: 6px; fill: var(--violet); }
.rs-line-chart .pt .tip { opacity: 0; pointer-events: none; transition: opacity .15s var(--ease); }
.rs-line-chart .pt:hover .tip, .rs-line-chart .pt:focus-visible .tip { opacity: 1; }
.rs-line-chart .pt .tip rect { fill: var(--ink, #181B34); }
.rs-line-chart .pt .tip text { font-size: 13px; font-weight: 600; fill: #fff; font-family: inherit; }
.rs-line-chart .pt:focus-visible .hit { stroke: var(--violet); stroke-width: 2; }
@media (hover: none) {
	.rs-line-chart .pt:focus .tip { opacity: 1; }
	.rs-line-chart .pt:focus .dot { r: 6px; fill: var(--violet); }
}

/* Hub subscribe: keep the invisible reCAPTCHA holder out of the pill-shaped form's layout. */
.rh-subscribe .rs-sub-form .g-recaptcha { position: absolute; width: 0; height: 0; overflow: visible; }
.rh-subscribe .rs-sub-form button:disabled { opacity: .7; cursor: default; }

/* Hub subscribe button: the theme's .btn.btn-white hover/focus turns the button white, adds a drop
   shadow and lifts it, which hid the white "Subscribe" text. Keep it dark and in place instead. */
.rs-hub .rh-subscribe .rs-sub-form .btn.btn-white,
.rs-hub .rh-subscribe .rs-sub-form .btn.btn-white:not(:disabled):not(.disabled):hover,
.rs-hub .rh-subscribe .rs-sub-form .btn.btn-white:not(:disabled):not(.disabled):focus,
.rs-hub .rh-subscribe .rs-sub-form .btn.btn-white:not(:disabled):not(.disabled):active {
	background-color: var(--ink) !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}
.rs-hub .rh-subscribe .rs-sub-form .btn.btn-white:not(:disabled):not(.disabled):hover { background-color: #000 !important; }
.rs-hub .rh-subscribe .rs-sub-form .btn.btn-white:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
