/* Research pages: the 2027 Independent Business Email Security Study. Loaded on those pages only. */

.rs-hero .rs-hero__head { max-width: 62ch; }
.rs-hero .rs-hero__head h3 {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem);
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.35;
}
.rs-hero .rs-hero__head p { margin: 0 0 10px; color: rgba(255, 255, 255, .88); font-size: 1rem; }
.rs-hero .rs-hero__head p:first-of-type { color: var(--accent); font-weight: 600; letter-spacing: .01em; }
.rs-hero .rs-hero__head a { color: #fff; }
.rs-hero .rs-hero__head p:last-child { margin-bottom: 0; font-size: .92rem; opacity: .85; }
.rs-hero .btn-row { margin-top: 22px; }

/* Page switcher */
.rs-tabs { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.rs-tabs ul { display: flex; gap: 6px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; }
.rs-tabs a {
	display: block;
	padding: 8px 16px;
	border-radius: 999px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.rs-tabs a:hover { background: var(--brand-100); }
.rs-tabs a[aria-current="page"] { background: var(--navy-900); color: #fff; }

/* Layout */
.rs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.rs-layout > * { min-width: 0; }
@media (min-width: 1060px) {
	.rs-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
	.rs-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
}
.rs-toc { font-size: .92rem; }
.rs-toc__title { margin: 0 0 10px; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.rs-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.rs-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; line-height: 1.35; }
.rs-toc li a:hover { color: var(--brand); }
.rs-toc li a.is-current { border-left-color: var(--brand); color: var(--brand-700); font-weight: 600; }
@media (max-width: 1059px) {
	.rs-toc { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-alt); }
	.rs-toc ol { border-left: 0; columns: 2; column-gap: 24px; }
	.rs-toc li { break-inside: avoid; }
}
@media (max-width: 560px) { .rs-toc ol { columns: 1; } }

/* Article text */
.rs-article { min-width: 0; max-width: 100%; font-size: 1.04rem; overflow-wrap: break-word; }
@media (min-width: 1060px) { .rs-article { max-width: 860px; } }
.rs-article--wide { max-width: 1000px; margin-inline: auto; width: 100%; }
.rs-article h2 { margin: 2.2em 0 .6em; padding-top: .2em; font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem); }
.rs-article h2:first-child { margin-top: 0; }
.rs-article h3 { margin: 1.8em 0 .5em; font-size: 1.28rem; }
.rs-article h4 { margin: 1.4em 0 .4em; font-size: 1.05rem; }
.rs-article ul, .rs-article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.rs-article li { margin-bottom: .45em; }
.rs-article li > ul, .rs-article li > ol { margin-top: .45em; }
.rs-article hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.rs-article code, .rs-hash {
	padding: .1em .38em;
	border-radius: 6px;
	background: var(--bg-alt);
	color: var(--navy-800);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
	overflow-wrap: anywhere;
}
.rs-article strong { color: var(--ink); }
.rs-article a { overflow-wrap: anywhere; }
.rs-article blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand-300); color: var(--text); }

/* Tables */
.table-wrap { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; line-height: 1.4; }
.table-wrap th, .table-wrap td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { position: sticky; top: 0; background: var(--bg-alt); color: var(--ink); font-family: var(--font-head); font-size: .8rem; font-weight: 700; }
.table-wrap td:not(:first-child), .table-wrap th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap tbody tr:nth-child(even) td { background: #fafcff; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap strong { white-space: nowrap; }
.rs-article .rs-files td:not(:first-child), .rs-article .rs-files th:not(:first-child) { text-align: left; white-space: normal; }
.rs-files td:first-child { position: static !important; }
.rs-files { min-width: 760px; }
.rs-files td:first-child { white-space: nowrap; }
.rs-hash { display: inline-block; font-size: .7rem; overflow-wrap: anywhere; word-break: break-all; }
/* Wide numeric tables: the first column stays put while the rest scrolls; intervals stay on one line. */
.table-wrap table:not(.rs-text) td:not(:first-child) { white-space: nowrap; }
.table-wrap table:not(.rs-text) th:first-child, .table-wrap table:not(.rs-text) td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); min-width: 8.5em; }
.table-wrap table:not(.rs-text) th:first-child { background: var(--bg-alt); z-index: 2; }
.table-wrap table:not(.rs-text) tbody tr:nth-child(even) td:first-child { background: #fafcff; }
.rs-scrollhint { margin: 1.2em 0 -1em; color: var(--muted); font-size: .84rem; }
.rs-scrollhint::before { content: "\2194\00a0"; }
/* Text-heavy tables (fact sheet at a glance, amendments, measures) read better left-aligned. */
.table-wrap table.rs-text td, .table-wrap table.rs-text th { text-align: left; }

/* Charts */
.rs-fig { margin: 2em 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.rs-fig img { width: 100%; height: auto; }
.rs-fig__hint { display: none; margin: 0 0 8px; color: var(--muted); font-size: .82rem; }
.rs-fig__scroll a { display: block; }
@media (max-width: 760px) {
	.rs-fig__hint { display: block; }
	.rs-fig__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.rs-fig__scroll img { width: 720px; max-width: none; }
}
.rs-fig figcaption { margin-top: 10px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.rs-fig__table { color: var(--muted); }

/* Press kit */
.rs-press__lead { max-width: 62ch; color: var(--text); }
.rs-press__grid { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 820px) { .rs-press__grid { grid-template-columns: 1fr 1fr; } .rs-press__card--wide { grid-column: 1 / -1; } }
.rs-press__card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.rs-press__card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.rs-press__card h3:not(:first-child) { margin-top: 22px; }
.rs-press__card blockquote { margin: 0 0 6px; padding: 0 0 0 16px; border-left: 4px solid var(--accent); color: var(--ink); font-size: 1.02rem; }
.rs-press__card blockquote footer { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.rs-bio { display: flex; gap: 16px; align-items: flex-start; }
.rs-bio img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.rs-bio p { margin: 0; font-size: .96rem; }
.rs-press__list { margin: 0 0 14px; padding-left: 1.2em; }
.rs-press__list li { margin-bottom: .4em; }
.rs-press__fmt { color: var(--muted); }
.rs-press__fine { margin: 0; color: var(--muted); font-size: .88rem; }

/* Notes between report sections, and the Research index card */
.rs-note { margin: 1.6em 0; padding: 14px 18px; border-left: 4px solid var(--brand-300); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--brand-50); font-size: .96rem; }
.rs-note p { margin: 0 0 6px; }
.rs-note p:last-child { margin: 0; }
.rs-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.rs-card__eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .86rem; }
.rs-card h2 { margin: 0 0 10px; font-size: 1.55rem; }
.rs-card h2 a { text-decoration: none; color: var(--ink); }
.rs-card__links { margin: 14px 0 0; padding-left: 1.2em; }
.rs-article .rs-files td { overflow-wrap: anywhere; }

/* Closing call to action */
.rs-cta .btn-row { margin-top: 18px; }

@media print {
	.rs-tabs, .rs-toc, .rs-press, .rs-cta { display: none !important; }
	.rs-article { max-width: none; }
	.table-wrap { overflow: visible; }
}
