/* Across Research Discovery Service — styles (task 11c: on the eCampus theme's tokens).
 *
 * Colours, radii, shadows and spacing read the eCampus variables first (style.css :root, --dm-* in dark
 * mode) and fall back to values of their own, so the plugin looks like the eCampus there and stays usable
 * in any other theme. What the theme has no token for (concept teal, open-access green, the university and
 * type colours in rds.js) is an --rds-* variable with a light and a dark value. Dark mode is
 * body.dark-mode, the eCampus switch. No !important, no theme file is touched. */

:is(.rds, .rds-subnav, .rds-hero, .rds-dashboard, .rds-about-card) {
	/* the eCampus blue, never another theme's accent: the test theme's accent-1 is yellow (white on yellow 1.2:1) */
	--rds-blue: var(--color-european-blue, #1e5af5);
	--rds-blue-hover: #1549d4;
	--rds-accent: var(--rds-blue);                /* links, focus, marks */
	--rds-accent-hover: var(--rds-blue-hover);    /* accent text on a hovered light button (1.3.3: 4.39 → 5.74 on #dde6ff) */
	--rds-on-accent: var(--color-white, #fff);    /* text on a blue surface */
	--rds-text: #1b1b1f;
	--rds-heading: #07133d;
	--rds-muted: #526070;
	--rds-bg: var(--color-white, #fff);
	--rds-surface: var(--color-white, #fff);
	--rds-surface-2: #f5f7fb;
	--rds-soft: #f0f4ff;                          /* secondary buttons, current facet */
	--rds-line: #e5e9f0;
	--rds-line-strong: #d7deea;
	--rds-oa: #1e7a45;
	--rds-error: #b42318;
	--rds-warn: #8a5a00;
	--rds-concept: #1b7f79;
	--rds-radius-sm: var(--radius-small, 8px);
	--rds-radius: var(--radius-medium, 16px);
	--rds-radius-lg: 24px;
	--rds-shadow: 0 4px 20px rgba(15, 23, 42, .06);
	--rds-shadow-sm: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, .05));
	--rds-shadow-hero: 0 12px 32px rgba(22, 34, 74, .08);
	--rds-focus: var(--focus-ring, 0 0 0 3px rgba(30, 90, 245, .35));
	--rds-gap: var(--spacing-md, 1.5rem);
}
body.dark-mode :is(.rds, .rds-subnav, .rds-hero, .rds-dashboard, .rds-about-card), :is(.rds, .rds-dashboard).dark-mode {
	--rds-accent: #a8c0ff;
	--rds-accent-hover: var(--rds-accent);
	--rds-text: var(--dm-text-primary, #e8eaf6);
	--rds-heading: var(--dm-text-primary, #e8eaf6);
	--rds-muted: #9ea7c2;                         /* --dm-text-muted is 5:1 on surface-2; a shade lighter for small text */
	--rds-bg: var(--dm-bg, #0f1117);
	--rds-surface: var(--dm-surface-1, #181c27);
	--rds-surface-2: var(--dm-surface-2, #222736);
	--rds-soft: var(--dm-surface-3, #2c3347);
	--rds-line: rgba(255, 255, 255, .12);
	--rds-line-strong: rgba(255, 255, 255, .22);
	--rds-oa: #58d68d;
	--rds-error: #ff8a80;
	--rds-warn: #f2c94c;
	--rds-concept: #5fd0c8;
	--rds-shadow: none;
	--rds-shadow-sm: none;
	--rds-shadow-hero: none;
}

/* --- base ------------------------------------------------------------------------------------ */
.rds { color: var(--rds-text); font-size: var(--text-base, 1rem); line-height: var(--leading-normal, 1.5); }
.rds *, .rds *::before, .rds *::after { box-sizing: border-box; }
.rds a { color: var(--rds-accent); text-underline-offset: 2px; }
.rds :is(a, button, input, select, summary, [role="link"]):focus-visible { outline: 2px solid var(--rds-accent); outline-offset: 2px; box-shadow: var(--rds-focus); }
.rds-muted { color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-notice { padding: .75rem 1rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius-sm); background: var(--rds-surface); }
.rds-section-title { margin: var(--spacing-md, 1.5rem) 0 .5rem; font-size: var(--text-lg, 1.125rem); font-weight: 700; line-height: 1.3; color: var(--rds-heading); }

/* --- buttons (11c point 7) --------------------------------------------------------------------
   The eCampus .ec-btn geometry; the colours are set here with enough weight that neither the plugin's own
   link colour nor a theme button style can hide a label. The unreadable "Show outputs" in the graph card
   was blue on blue: `.rds a` beat `.rds-btn-primary`. The buttons carry the .ec-btn classes as well. */
.rds .rds-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--btn-gap, .5rem);
	min-height: var(--btn-height, 44px); padding: 0 var(--btn-padding-x, 1.5rem); border: 1px solid var(--rds-line-strong);
	border-radius: var(--btn-radius, 8px); background: var(--rds-surface); color: var(--rds-text); font: inherit;
	font-size: var(--btn-font-size, .875rem); font-weight: var(--btn-font-weight, 600); line-height: var(--leading-tight, 1.25);
	text-decoration: none; cursor: pointer; }
.rds .rds-btn:hover { border-color: var(--rds-accent); color: var(--rds-accent); }
.rds .rds-btn:is([disabled], [aria-disabled="true"]) { opacity: .55; cursor: not-allowed; }
.rds .rds-btn-sm { min-height: var(--btn-height-sm, 36px); padding: 0 var(--btn-padding-x-sm, 1rem); font-size: var(--text-sm, .8125rem); }
.rds .rds-btn-primary, .rds .rds-btn[aria-pressed="true"] { background: var(--rds-blue); border-color: var(--rds-blue); color: var(--rds-on-accent); }
.rds .rds-btn-primary:hover, .rds .rds-btn[aria-pressed="true"]:hover { background: var(--rds-blue-hover); border-color: var(--rds-blue-hover); color: var(--rds-on-accent); }
.rds .rds-btn-secondary { background: var(--rds-soft); border-color: transparent; color: var(--rds-accent); }
.rds .rds-btn-secondary:hover { border-color: var(--rds-accent); color: var(--rds-accent-hover); }
.rds .rds-btn-ghost { background: transparent; }
.rds .rds-btn-link { min-height: 0; padding: .5rem .25rem; border: 0; background: none; color: var(--rds-accent); text-decoration: underline; }
.rds .rds-btn svg { width: 18px; height: 18px; flex: none; }

/* --- RDS sub-navigation (11c point 2) and page head (point 3, E56 a) ---------------------------- */
.rds-subnav { background: var(--rds-blue); color: var(--rds-on-accent); font-family: var(--font-raleway, inherit); }
.rds-subnav__inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--spacing-md, 1.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; min-height: 52px; }
.rds-subnav .rds-subnav__brand { margin-right: auto; padding: .7rem 0; color: var(--rds-on-accent); font-weight: 700; text-decoration: none; }
.rds-subnav__list { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: .35rem 0; list-style: none; }
.rds-subnav .rds-subnav__link { display: inline-block; padding: .5rem .9rem; border-radius: var(--rds-radius-sm); color: var(--rds-on-accent); font-weight: 600; text-decoration: none; }
/* hover: the darker blue instead of a white tint, white text stays at 7:1 (1.3.3; the tint gave 4.13) */
.rds-subnav .rds-subnav__link:hover { background: var(--rds-blue-hover); color: var(--rds-on-accent); }
/* the theme's dark-mode a:hover would make the brand light blue on blue (3.08) */
.rds-subnav .rds-subnav__brand:is(:hover, :focus) { color: var(--rds-on-accent); }
.rds-subnav .is-current .rds-subnav__link { background: var(--rds-on-accent); color: var(--rds-blue); }
.rds-subnav a:focus-visible { outline: 2px solid var(--rds-on-accent); outline-offset: 2px; }
@media (max-width: 640px) { .rds-subnav .rds-subnav__brand { width: 100%; padding-bottom: 0; } }

.rds-hero { margin: var(--spacing-md, 1.5rem) 0 var(--rds-gap); padding: 2.4rem 2.1rem 2.1rem; border: 1px solid var(--rds-line); border-top: 5px solid var(--rds-blue);
	border-radius: var(--rds-radius-lg); background: var(--rds-surface); box-shadow: var(--rds-shadow-hero); color: var(--rds-text); }
.rds-hero__eyebrow, .rds .rds-eyebrow { margin: 0 0 .5rem; color: var(--rds-muted); font-size: var(--text-xs, .75rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rds-hero__eyebrow { color: var(--rds-accent); }
.rds-hero .rds-hero__title { margin: 0; max-width: 40ch; color: var(--rds-heading); font-size: clamp(2rem, 1.3rem + 3vw, 3rem); font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.rds-hero:not(.rds-hero--home) .rds-hero__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem); }
.rds .rds-title { margin: 0 0 .5rem; color: var(--rds-heading); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
@media (max-width: 640px) { .rds-hero { padding: 1.5rem 1.25rem; } }

/* --- cards: the object pages' head card, search form, facets, results --------------------------- */
.rds :is(.rds-detail, .rds-person-card, .rds-concept-card) { margin: var(--spacing-md, 1.5rem) 0 var(--rds-gap); padding: 2rem 2rem 1.5rem; border: 1px solid var(--rds-line);
	border-top: 5px solid var(--rds-blue); border-radius: var(--rds-radius-lg); background: var(--rds-surface); box-shadow: var(--rds-shadow-hero); }
.rds :is(.rds-detail, .rds-person-card, .rds-concept-card):empty { display: none; }
@media (max-width: 640px) { .rds :is(.rds-detail, .rds-person-card, .rds-concept-card) { padding: 1.25rem 1rem; } }
.rds :is(.rds-search, .rds-persons) > .rds-form { padding: 1.25rem 1.5rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow); }

/* --- forms ------------------------------------------------------------------------------------- */
.rds-label { display: block; margin-bottom: .35rem; color: var(--rds-heading); font-weight: 600; }
.rds-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.rds .rds-input, .rds-filters :is(select, input) { min-height: var(--btn-height, 44px); padding: .5rem .8rem; border: 1px solid var(--rds-line-strong); border-radius: var(--rds-radius-sm);
	background: var(--rds-surface); color: var(--rds-text); font: inherit; }
/* All filter fields one height (Sandra, 11c round 2): the eCampus theme styles input[type="number"] with 16 px
   padding and a 2 px border (style.css, also in dark mode), which made "Year from/to" 60 px high. This rule
   outweighs both theme rules and sets every property that changes the height. */
.rds .rds-form .rds-filters :is(select, input) { box-sizing: border-box; height: var(--btn-height, 44px); min-height: var(--btn-height, 44px); margin: 0;
	padding: 0 .8rem; border: 1px solid var(--rds-line-strong); border-radius: var(--rds-radius-sm); background: var(--rds-surface); color: var(--rds-text);
	font-family: inherit; font-size: var(--text-md, .875rem); line-height: 1.5; }
.rds .rds-input { flex: 1 1 18rem; min-width: 0; }
/* 1.6.0 (task 71, Sandra 24.11. point 2): the eCampus theme turns selects into appearance: base-select, a flex box whose
   text and arrow then sit at the top of the 44 px field — centred here, for the search filters and Across Collaborations alike */
.rds .rds-filters select { align-items: center; }
.rds-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: 1rem 0 0; align-items: end; }
.rds-filters label { display: flex; flex-direction: column; gap: .25rem; color: var(--rds-heading); font-size: var(--text-md, .875rem); font-weight: 600; }
.rds-filters-note { margin: .5rem 0 0; }
.rds-facets-pending, .rds-facets-unavailable { margin: .25rem 0; }
.rds-filters [aria-invalid="true"] { border-color: var(--rds-error); outline: 1px solid var(--rds-error); }
.rds-field-error { display: block; margin-top: .15rem; color: var(--rds-error); font-size: var(--text-sm, .8125rem); }
/* The year fields carry an empty, hidden error message from the start; display: block above undid the hidden
   attribute and its margin pushed "Year from/to" 7 px up against the other fields (Sandra, 11c round 3). */
.rds-field-error[hidden] { display: none; }
.rds-status { min-height: 1.5em; margin: .75rem 0; color: var(--rds-muted); }
.rds-status.rds-error { color: var(--rds-error); font-weight: 600; }
.rds-status a { color: inherit; text-decoration: underline; }
.rds-hints { margin: 0 0 .5rem; }
.rds-hint { margin: .2rem 0; color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-hint-warn { color: var(--rds-warn); }

/* --- search layout, facets, result cards ----------------------------------------------------------- */
.rds-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rds-gap); }
@media (min-width: 900px) { .rds-layout { grid-template-columns: 16rem minmax(0, 1fr); } .rds-facets:empty { display: none; } }
.rds-facet-group { margin-bottom: .75rem; padding: .6rem .8rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); }
.rds-facet-group summary { color: var(--rds-heading); font-weight: 700; cursor: pointer; }
.rds-facet-list { margin: .4rem 0 0; padding: 0; list-style: none; }
.rds-facet { display: flex; justify-content: space-between; gap: .5rem; width: 100%; padding: .3rem .4rem; border: none; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rds-facet:hover, .rds-facet.is-active { background: var(--rds-soft); }
.rds-facet:hover, .rds-facet:focus { color: inherit; }   /* not the white of the theme's button:hover (contrast 1.4.3, 1.3.3) */
.rds-facet.is-active { font-weight: 700; box-shadow: inset 3px 0 0 var(--rds-accent); }
.rds-facet-note { margin: .2rem 0 0; font-size: .82em; }
/* task 28: the switch "Only subject areas given by the records" under the subject area facet */
.rds-facet-switch { display: flex; gap: .35rem; align-items: flex-start; margin: .4rem 0 0; font-size: .85em; cursor: pointer; }
.rds-facet-switch input { margin-top: .15rem; }
/* a source that is connected but holds nothing yet: it stands in the filter (E67) and is not a button,
   so a click cannot lead into an empty result list */
.rds-facet-empty { display: flex; justify-content: space-between; gap: .5rem; width: 100%; padding: .3rem .4rem; color: var(--rds-muted); }
.rds-facet-empty .rds-facet-why { font-size: .82em; font-style: italic; }
.rds-facet-sub .rds-facet { padding-left: 1.4rem; font-size: .95em; }   /* the divisions under a chosen subject area (task 13) */
.rds-count { color: var(--rds-muted); font-size: .85em; }
.rds-results { margin: 0; padding: 0; list-style: none; }
.rds-card { margin-bottom: .9rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow-sm); overflow-wrap: anywhere; }
.rds-card:hover { border-color: var(--rds-line-strong); }
.rds .rds-card-title { font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.rds .rds-card-title:hover { text-decoration: underline; }
.rds-person-row .rds-card-title { font-size: 1rem; }
.rds-card-authors { margin: .25rem 0; color: var(--rds-muted); font-size: .95rem; }
.rds-more { color: var(--rds-muted); font-size: .88em; white-space: nowrap; }
/* Principle (task 09e): only links and buttons may look like links and buttons — plain metadata gets
 * no border, no pill, no hover effect. No middle dots between metadata; one quiet line per fact. */
.rds-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: .25rem 0 0; color: var(--rds-muted); font-size: .9rem; }
.rds-type { color: var(--rds-muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rds-card-unis { color: var(--rds-text); }
.rds-meta-item { display: inline-block; }
.rds-card-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: .25rem 0 0; color: var(--rds-muted); font-size: .85rem; }
.rds-source-label { font-weight: 600; }
.rds-oa { color: var(--rds-oa); font-weight: 600; }
.rds-closed { color: var(--rds-muted); }
.rds .rds-fulltext { color: var(--rds-accent); font-weight: 600; text-decoration: underline; }
.rds-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }

/* --- detail, person, concept ----------------------------------------------------------------------- */
.rds-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 1rem 0; font-size: .92rem; }
.rds-dl dt { color: var(--rds-muted); font-weight: 600; }
.rds-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .rds-dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .rds-dl dt { margin-top: .5rem; } }
.rds-dl-top { margin: .75rem 0 1rem; font-size: .95rem; }
.rds-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.rds-creators { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 0; padding: 0; list-style: none; }
.rds-keywords { margin: 0; overflow-wrap: anywhere; }   /* plain text, not clickable (E49) */
.rds-orcid img { vertical-align: middle; }
.rds-base-logo { width: auto; height: 30px; margin-right: .25rem; vertical-align: middle; }
.rds-person-works, .rds-concept-outputs, .rds-related, .rds-similar { margin-top: var(--rds-gap); }
/* 1.3.0: similar outputs (detail page) and "More like this" (search) */
.rds-similar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0 0 .75rem; }
.rds-similar-bar[hidden] { display: none; }
.rds-similar-hint { font-size: var(--text-md, .875rem); }
/* 1.3.6 (task 54, point 5): a filter without a form field, shown as a chip that removes it */
.rds-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.rds-chips[hidden] { display: none; }
.rds-chip { display: inline-flex; align-items: center; padding: .25rem .75rem; border: 1px solid var(--rds-accent); border-radius: 999px; background: var(--rds-soft); color: var(--rds-text); font: inherit; font-size: var(--text-md, .875rem); cursor: pointer; }
.rds-chip:hover { border-color: var(--rds-accent-hover); }
/* the theme's button:hover (purple, white text) would leave the × at 1.3:1 — the chip keeps its own colours (task 40 C 7) */
.rds-chip:hover, .rds-chip:focus-visible { background: var(--rds-soft); color: var(--rds-text); }
.rds-chip:focus-visible { outline: none; box-shadow: var(--rds-focus); }
.rds-chip-x { margin-left: .25rem; font-weight: 700; color: var(--rds-accent); }
.rds-facets[hidden] { display: none; }
@media (min-width: 900px) { .rds-layout:has(> .rds-facets[hidden]) { grid-template-columns: minmax(0, 1fr); } }   /* the results take the width */
/* 1.3.0 (task 36 C): the Metadata terms row of the detail page, one line per source */
.rds-terms { margin: 0; padding: 0; list-style: none; }
.rds-terms li { margin: 0 0 .2rem; }
.rds-terms-source { font-weight: 600; }

/* --- subject concepts (task 16) ------------------------------------------------------------------- */
.rds-concepts { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .3rem 0 .6rem; padding: 0; list-style: none; }
.rds-concept-item { display: inline-flex; align-items: baseline; gap: .3rem; padding: .2rem .6rem; border: 1px solid var(--rds-line-strong); border-radius: 999px; background: var(--rds-surface-2); }
/* The concepts of an output (E49): chips that look like what they are — links to the concept page. */
.rds .rds-concept-chip { display: inline-block; padding: .2rem .7rem; border: 1px solid var(--rds-accent); border-radius: 999px; background: var(--rds-soft); color: var(--rds-accent);
	font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rds .rds-concept-chip::after { content: " \2192"; }
.rds .rds-concept-chip:hover { background: var(--rds-blue); border-color: var(--rds-blue); color: var(--rds-on-accent); }
.rds .rds-concept-chip.is-openalex, .rds-concept-item.is-openalex { border-style: dashed; }   /* OpenAlex's own concepts, kept apart (M12 a) */
.rds .rds-concept-link { color: inherit; font-weight: 600; text-decoration: none; }
.rds .rds-concept-link:hover, .rds .rds-concept-link:focus { text-decoration: underline; }
.rds-concepts.rds-broader, .rds-concepts.rds-narrower { display: block; }
.rds-concepts.rds-broader .rds-concept-item, .rds-concepts.rds-narrower .rds-concept-item { margin: 0 .4rem .4rem 0; }
.rds-concept-description { margin: .2rem 0 .6rem; }
.rds-concepts-box { margin: .8rem 0; }

/* --- statistics ------------------------------------------------------------------------------------ */
.rds-card-title { margin: 0 0 1rem; color: var(--rds-accent); font-size: var(--text-xl, 1.25rem); font-weight: 600; line-height: 1.25; }
.rds-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rds-gap); }
@media (min-width: 800px) { .rds-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rds-chart { min-width: 0; }
.rds-figure { margin: .25rem 0 .75rem; }
.rds-donut { display: flex; justify-content: center; }
.rds-donut svg { max-width: 220px; height: auto; color: var(--rds-text); }
.rds-donut path { transition: d .15s; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .rds-donut path { transition: none; } }
.rds-swatch { display: inline-block; flex: none; width: .8em; height: .8em; margin-right: .4rem; border-radius: 2px; vertical-align: -1px; }
.rds-pct { color: var(--rds-muted); }
.rds-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.rds-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; break-inside: avoid; }
.rds-chart .rds-list li { justify-content: flex-start; align-items: baseline; text-align: left; }
.rds-chart .rds-list li.is-hover { background: var(--rds-soft); border-radius: 4px; }
.rds-chart .rds-list li > a, .rds-chart .rds-list li > .rds-label { flex: 1 1 auto; }
.rds-chart .rds-list li > .rds-swatch { flex: 0 0 .8em; }
.rds-chart .rds-list .rds-count, .rds-chart .rds-list .rds-pct { white-space: nowrap; }
.rds-chart.has-chart .rds-list { columns: 1; }
/* concepts as horizontal bars (E48): the list is the legend, each row gets its bar */
.rds-chart.has-bars .rds-list { columns: 1; }
.rds-chart.has-bars .rds-list li { display: grid; grid-template-columns: minmax(8rem, 16rem) minmax(4rem, 1fr) 4.5rem; align-items: center; gap: .75rem; }
.rds-chart.has-bars .rds-list li:hover { background: var(--rds-soft); border-radius: 4px; }
.rds-chart.has-bars .rds-count { text-align: right; }
.rds-bar svg { display: block; width: 100%; height: .8rem; }
.rds-bar rect { cursor: pointer; }
@media (max-width: 480px) {
	.rds-chart.has-bars .rds-list li { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; }
	.rds-chart.has-bars .rds-bar { grid-column: 1 / -1; grid-row: 2; }
}
.rds-stats-list .rds-cols, .rds-stats-list .rds-tiles { grid-template-columns: 1fr; }
.rds-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.rds-tile { padding: 1.25rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); text-align: center; }
.rds .rds-tile a { color: inherit; text-decoration: none; }
.rds-tile strong { display: block; color: var(--rds-accent); font-size: 2.25rem; line-height: 1.1; }
.rds-tile span { display: block; margin-top: .25rem; color: var(--rds-muted); font-size: .95rem; }
.rds-asof { margin-top: 1rem; color: var(--rds-muted); font-size: var(--text-md, .875rem); }
/* "Data as of … Sources: …" as text inside a page paragraph ([rds_asof], start page since 16b round 2) */
.rds-asof.rds-asof-inline { margin: 0; color: inherit; font-size: inherit; }
/* the switch "Open data repositories only / All publication data" (E21) */
.rds-scope { display: inline-flex; flex-wrap: wrap; margin: 0 0 1rem; border: 1px solid var(--rds-line-strong); border-radius: var(--rds-radius-sm); overflow: hidden; background: var(--rds-surface); }
.rds .rds-scope-tab { padding: .55rem 1rem; background: var(--rds-surface); color: var(--rds-text); font-size: .92rem; text-decoration: none; }
.rds .rds-scope-tab + .rds-scope-tab { border-left: 1px solid var(--rds-line-strong); }
.rds .rds-scope-tab:hover { background: var(--rds-soft); text-decoration: underline; }
.rds .rds-scope-tab.is-current { background: var(--rds-soft); font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px 0 var(--rds-accent); }

/* --- start page as a dashboard (11c point 4) ---------------------------------------------------------
   The template wraps the statistics block and the Explore card in .rds-dashboard; the block's own boxes
   dissolve (display: contents) so that every section is a card in one grid. Left column: outputs, by
   university, by type, by concept; right column: researchers, researchers by university, Explore. On the
   phone one column in that order. */
.rds-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--rds-gap);
	grid-template-areas: "switch" "outputs" "unis" "types" "subjects" "concepts" "persons" "perunis" "explore"; }
@media (min-width: 900px) {
	.rds-dashboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "switch switch" "outputs persons" "unis perunis" "types explore" "subjects explore" "concepts explore"; }
}
.rds-dashboard > *, .rds-dashboard .rds-stats > *, .rds-dashboard .rds-cols > *, .rds-dashboard .rds-tiles > * { margin: 0; }
.rds-dashboard > .rds-stats, .rds-dashboard .rds-tiles, .rds-dashboard .rds-cols { display: contents; }
.rds-dashboard .rds-scope { grid-area: switch; justify-self: start; }
.rds-dashboard .rds-tile--outputs { grid-area: outputs; }
.rds-dashboard .rds-tile--persons { grid-area: persons; }
.rds-dashboard .rds-chart--outputs-by-university { grid-area: unis; }
.rds-dashboard .rds-chart--persons-by-university { grid-area: perunis; }
.rds-dashboard .rds-chart--types { grid-area: types; }
.rds-dashboard .rds-chart--subjects { grid-area: subjects; }
.rds-dashboard .rds-chart--concepts { grid-area: concepts; }
.rds-dashboard .rds-dash-explore { grid-area: explore; }
.rds-dashboard :is(.rds-tile, .rds-chart, .rds-dash-card) { min-width: 0; padding: var(--rds-gap); border: 1px solid var(--rds-line); border-radius: var(--rds-radius);
	background: var(--rds-surface); box-shadow: var(--rds-shadow); color: var(--rds-text); }
.rds-dashboard .rds-list { columns: 1; }
.rds-dashboard .rds-dash-card .rds-card-title { margin: 0 0 1rem; color: var(--rds-accent); font-size: var(--text-xl, 1.25rem); font-weight: 600; line-height: 1.25; }
.rds-dashboard .rds-dash-explore p { margin: 1rem 0 0; color: var(--rds-muted); }
.rds-dashboard .rds-dash-explore .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
/* The Explore buttons are core button blocks: coloured here so that they are readable on the card in light and
   dark (the theme's dark button colours on the dark card were 2.2:1 and 3.1:1 — layout.mjs, 11c). */
.rds-dashboard .rds-dash-explore .wp-block-button__link { display: inline-flex; align-items: center; min-height: var(--btn-height, 44px); padding: 0 var(--btn-padding-x, 1.5rem);
	border: 1px solid var(--rds-blue); border-radius: var(--btn-radius, 8px); background: var(--rds-blue); color: var(--rds-on-accent); font-weight: 600; text-decoration: none; }
.rds-dashboard .rds-dash-explore .wp-block-button__link:hover { background: var(--rds-blue-hover); border-color: var(--rds-blue-hover); color: var(--rds-on-accent); }
.rds-dashboard .rds-dash-explore .is-style-outline .wp-block-button__link { background: transparent; border-color: var(--rds-accent); color: var(--rds-accent); }
.rds-dashboard .rds-dash-explore .is-style-outline .wp-block-button__link:hover { background: var(--rds-soft); color: var(--rds-accent); }

/* --- graph (Cytoscape, E22) ----------------------------------------------------------------------- */
.rds-graph-wrap { margin-top: 1rem; padding: 1rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); }
.rds-graph-wrap [hidden] { display: none; }
.rds-graph-trail ol { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; margin: 0 0 .6rem; padding: 0; font-size: .88rem; list-style: none; }
.rds-graph-trail li { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.rds-graph-trail li + li::before { content: "›"; color: var(--rds-muted); }
.rds-graph-trail li > * { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rds-graph-trail [aria-current] { font-weight: 600; }
.rds .rds-graph-crumb { min-height: 32px; padding: 0; border: 0; background: none; color: var(--rds-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.rds-graph-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rds-graph-views, .rds-graph-zoom { display: inline-flex; }
.rds-graph-views .rds-btn:first-child, .rds-graph-zoom .rds-btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rds-graph-views .rds-btn + .rds-btn, .rds-graph-zoom .rds-btn + .rds-btn { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rds-graph-zoom .rds-btn:not(:first-child):not(:last-child) { border-radius: 0; }
.rds .rds-graph-zoom .rds-btn { min-width: 40px; padding: 0 .6rem; font-size: 1.1rem; line-height: 1; }
.rds .rds-graph-expand { margin-left: auto; }
.rds-graph-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.rds .rds-graph-filter { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .2rem .75rem; border: 1px solid var(--rds-line-strong); border-radius: 999px; background: var(--rds-surface); color: var(--rds-text); font: inherit; font-size: .85rem; cursor: pointer; }
.rds .rds-graph-filter[aria-pressed="false"] { color: var(--rds-muted); text-decoration: line-through; }
.rds .rds-graph-filter[aria-pressed="false"] .rds-legend-dot { opacity: .3; }
.rds-graph-count { color: var(--rds-muted); font-variant-numeric: tabular-nums; }
.rds-graph-stage { position: relative; margin-top: .5rem; }
.rds-graph-box { width: 100%; height: 520px; border: 1px solid var(--rds-line); border-radius: var(--rds-radius-sm); background: var(--rds-bg); touch-action: manipulation; }
@media (max-width: 640px) { .rds-graph-box { height: 440px; } }
.rds-graph-touch { position: absolute; inset: 0; z-index: 2; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rds-graph-tip { position: absolute; z-index: 3; max-width: 24rem; padding: .15rem .45rem; border-radius: 4px; background: var(--rds-text); color: var(--rds-surface); font-size: .8rem; pointer-events: none; }
.rds-graph-gesture { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 1rem; border-radius: var(--rds-radius-sm); background: rgba(0, 0, 0, .55); color: #fff; font-weight: 600; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.rds-graph-gesture.is-on { opacity: 1; }
.rds-graph-card { position: absolute; top: .75rem; right: .75rem; z-index: 4; max-width: 22rem; padding: .7rem .9rem .8rem; border: 1px solid var(--rds-line); border-top: 4px solid var(--rds-blue);
	border-radius: var(--rds-radius-sm); background: var(--rds-surface); color: var(--rds-text); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.rds-graph-card-kicker { margin: 0 1.5rem .2rem 0; color: var(--rds-muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rds-graph-card-title { margin: 0 0 .6rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rds-graph-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.rds .rds-graph-card-close { position: absolute; top: .1rem; right: .3rem; min-width: 40px; min-height: 40px; padding: .1rem .35rem; color: var(--rds-text); font-size: 1.4rem; line-height: 1; text-decoration: none; }
@media (max-width: 600px) { .rds-graph-card { top: auto; right: .5rem; bottom: .5rem; left: .5rem; max-width: none; max-height: 55%; overflow: auto; } }
.rds-graph-list-head { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 .3rem; font-size: 1rem; }
.rds-graph-list ul { margin: 0; padding: 0; list-style: none; }
.rds-graph-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .75rem; min-height: 44px; padding: .35rem 0; border-bottom: 1px solid var(--rds-line); }
.rds-graph-list li > :first-child { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
/* the relations under each list entry (1.3.3) */
.rds-graph-rel { display: block; margin-top: .1rem; font-size: .875rem; }
.rds-graph-hint { margin: .4rem 0 0; font-size: .85rem; }
.rds-graph-truncated { margin: .25rem 0 0; }
.rds-legend-dot { display: inline-block; flex: none; width: .8em; height: .8em; border-radius: 50%; vertical-align: middle; }
html.rds-graph-lock, html.rds-graph-lock body { overflow: hidden; }
.rds-graph-wrap.rds-graph-expanded { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; margin: 0; padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
	border: 0; border-radius: 0; background: var(--rds-bg); overflow: auto; overscroll-behavior: contain; }
.rds-graph-expanded .rds-graph-stage { flex: 1 1 auto; min-height: 280px; }
.rds-graph-expanded .rds-graph-box { height: 100%; touch-action: none; }
.rds-graph-expanded .rds-graph-hint { display: none; }
/* The theme lifts a hovered article with a transform, which makes the article the containing block of the fixed
   overlay: with the mouse over the full view it would shrink into the article. */
article:has(.rds-graph-expanded), .rds-detail:has(.rds-graph-expanded) { transform: none !important; }
.rds-graph-centre { margin: .5rem 0 0; font-size: .88rem; overflow-wrap: anywhere; }

/* --- editor placeholder ------------------------------------------------------------------------------- */
.rds-editor-placeholder { padding: 1rem; border: 1px dashed #999; border-radius: 6px; }
.rds-editor-note { margin: .25rem 0 0; color: #666; font-size: .9em; }

/* --- About page (task 15): the two diagrams, the source lists, the attribution --------------------
   The diagrams are inline SVG whose colours are set here, not in the markup, so light and dark mode need
   one drawing, not two: every shape reads the same --rds-* variables as the rest of the plugin. A diagram
   keeps a readable minimum width and scrolls inside its own box on a narrow screen — the page itself never
   scrolls sideways. */
/* the lines of a diagram are 1.6 px wide: the general border colour (22 % white) disappears on a dark
   background, so the drawing has a line colour of its own with a value for each mode */
.rds-about { --rds-flow-line: var(--rds-line-strong); margin: var(--rds-gap) 0; }
body.dark-mode .rds-about, .rds-about.dark-mode { --rds-flow-line: rgba(255, 255, 255, .5); }
.rds-lead { font-size: var(--text-lg, 1.125rem); line-height: 1.55; }
/* the diagram gets a surface of its own: `.rds` is transparent, and a theme that only darkens the RDS
   variables but leaves the page white (the local test theme does) would otherwise draw light lines on a
   light background */
.rds-flow { margin: 1rem 0 1.5rem; padding: 1rem 1rem .75rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-bg); }
.rds-flow-scroll { overflow-x: auto; padding-bottom: .25rem; }
.rds-flow-scroll:focus-visible { outline: 2px solid var(--rds-accent); outline-offset: 2px; }
.rds-flow-svg { display: block; width: 100%; min-width: 780px; max-width: 980px; height: auto; margin: 0 auto; }
.rds-merge-svg { min-width: 560px; }
.rds-flow figcaption { margin-top: .5rem; }
/* the hint appears exactly when the drawing no longer fits the screen and its box starts to scroll */
.rds-flow-hint { display: none; margin: .5rem 0 0; }
@media (max-width: 880px) { .rds-about--sources .rds-flow-hint { display: block; } }
@media (max-width: 660px) { .rds-about--merging .rds-flow-hint { display: block; } }

.rds-flow-svg :is(.rds-flow-node, .rds-flow-hub, .rds-flow-kg, .rds-flow-out, .rds-flow-key) { stroke-width: 1.5; }
.rds-flow-svg .rds-flow-node { fill: var(--rds-surface); stroke: var(--rds-flow-line); }
.rds-flow-svg .rds-flow-hub { fill: var(--rds-soft); stroke: var(--rds-accent); }
.rds-flow-svg .rds-flow-key { fill: var(--rds-soft); stroke: var(--rds-accent); stroke-dasharray: 4 3; }
/* the repository of the alliance itself (E67): a repository like the others, drawn apart from their
   group and with a dashed outline while it is still empty, so the 0 next to it reads as "waiting"
   rather than as "broken" */
.rds-flow-svg .rds-flow-alliance { fill: var(--rds-surface); stroke: var(--rds-accent); stroke-dasharray: 5 4; }
.rds-flow-svg .rds-flow-kg { fill: var(--rds-blue); stroke: var(--rds-blue); }
.rds-flow-svg .rds-flow-out { fill: var(--rds-surface-2); stroke: var(--rds-flow-line); }
.rds-flow-svg .rds-flow-edge { fill: none; stroke: var(--rds-flow-line); stroke-width: 1.6; }
.rds-flow-svg .rds-flow-head { fill: var(--rds-flow-line); stroke: none; }
.rds-flow-svg text { font-family: inherit; }
.rds-flow-svg .rds-flow-label { fill: var(--rds-heading); font-size: 13px; font-weight: 600; }
.rds-flow-svg .rds-flow-sub { fill: var(--rds-muted); font-size: 11px; }
.rds-flow-svg .rds-flow-count { fill: var(--rds-muted); font-size: 10.5px; }
.rds-flow-svg .rds-flow-caption { fill: var(--rds-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* the knowledge graph box carries its own text colour: white on the eCampus blue in both modes */
.rds-flow-svg :is(.rds-flow-label, .rds-flow-sub).rds-flow-on { fill: var(--rds-on-accent); }
/* hover traces one source through the picture (no JavaScript) */
.rds-flow-svg .rds-flow-g:hover :is(.rds-flow-node, .rds-flow-hub) { stroke: var(--rds-accent); stroke-width: 2.5; }

/* the box with the three bullet points at the top of the About page, and the contact box at its foot.
   The class is written together with .wp-block-group, because the eCampus theme pads every group block with
   4 rem and would otherwise leave the box almost empty around three short lines. */
.wp-block-group.rds-about-card, .rds-about-card { margin: var(--rds-gap) 0; padding: 1rem 1.25rem; border: 1px solid var(--rds-line);
	border-radius: var(--rds-radius); background: var(--rds-surface-2); color: var(--rds-text); }
.rds-about-card a { color: var(--rds-accent); }
.rds-about-card :is(ul, p) { margin: 0; }
.rds-about-card li + li { margin-top: .35rem; }
/* the footnote under the source diagram: which partner universities are still missing */
.rds-flow-note { margin: -.75rem 0 1.25rem; }

.rds-source-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rds-gap); }
@media (min-width: 900px) { .rds-source-groups { grid-template-columns: 3fr 2fr; } }
.rds-source-group .rds-muted { margin: -.5rem 0 .75rem; }
.rds-source-list { margin: 0; padding: 0; list-style: none; }
.rds-source-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; padding: .6rem 0; border-top: 1px solid var(--rds-line); }
.rds-source-list li:first-child { border-top: 0; }
.rds .rds-source-name { font-weight: 600; }
.rds-source-meta { grid-column: 1; color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-source-list .rds-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--rds-muted); font-size: var(--text-md, .875rem); white-space: nowrap; }

.rds-attribution { margin-top: var(--rds-gap); padding: 1rem 1.25rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface-2); }
/* 1.3.0 (task 36 C): a table with the metadata terms; on a narrow screen every row becomes a block, each cell
   with its column name in front (data-label), because three text columns do not fit 360 px */
.rds-attribution-table { width: 100%; border-collapse: collapse; color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-attribution-table th, .rds-attribution-table td { padding: .5rem .6rem .5rem 0; border-top: 1px solid var(--rds-line); text-align: left; vertical-align: top; }
.rds-attribution-table thead th { border-top: 0; color: var(--rds-heading); font-weight: 700; }
.rds-attribution-table tbody th { color: var(--rds-heading); font-weight: 600; }
@media (max-width: 699px) {
	.rds-attribution-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.rds-attribution-table tr, .rds-attribution-table th, .rds-attribution-table td { display: block; }
	.rds-attribution-table tr { padding: .5rem 0; border-top: 1px solid var(--rds-line); }
	.rds-attribution-table th, .rds-attribution-table td { padding: .2rem 0; border-top: 0; }
	.rds-attribution-table td::before { content: attr(data-label) ": "; display: block; color: var(--rds-heading); font-weight: 600; }
}
.rds-base-logo { display: inline-block; width: auto; height: 28px; margin-right: .5rem; vertical-align: middle; }
body.dark-mode .rds-base-logo { padding: 2px 4px; border-radius: 4px; background: #fff; }

.rds-merge-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rds-gap); }
@media (min-width: 1000px) { .rds-merge-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rds-merge-cols .rds-flow { margin: 0; }
.rds-merge-cols .rds-flow-svg { max-width: none; }

/* --- Alliance Focus Areas (1.4.0, task 40; layout 1.5.0, task 61) -------------------------------
 * Each area has a secondary colour of the Across Style Guide (1.5.2, task 64, Sandra 20.11.2026), unchanged in light and
 * dark mode: FA1 Purple, FA2 Rose, FA3 Yellow, FA4 Green. Text on them is black (4.9:1 on Purple, 11.3 to 14.5:1 on the
 * others); in light mode bars and lines get a dark edge (--rds-fa-edge, 17:1 on white), because Rose, Yellow and Green
 * reach only 1.5 to 1.9:1 against white; on the dark surfaces all four reach 3.5:1 or more without one. Buttons stay European Blue.
 * .rds-fa--FA1 … sets --rds-fa/-tint. */
.rds { --rds-fa1: #8c63db; --rds-fa2: #ffa0dc; --rds-fa3: #ffd200; --rds-fa4: #6ee191;
	--rds-fa1-tint: #eae3f9; --rds-fa2-tint: #ffeef9; --rds-fa3-tint: #fff7d1; --rds-fa4-tint: #e5faeb;
	--rds-on-fa: #000; --rds-fa-edge: #1b1b1f; }
body.dark-mode .rds, .rds.dark-mode {
	--rds-fa1-tint: #2b2c41; --rds-fa2-tint: #332a38; --rds-fa3-tint: #21323d; --rds-fa4-tint: #27322f;
	--rds-fa-edge: transparent; }
.rds .rds-fa--FA1 { --rds-fa: var(--rds-fa1); --rds-fa-tint: var(--rds-fa1-tint); --rds-fa-dash: none; }
.rds .rds-fa--FA2 { --rds-fa: var(--rds-fa2); --rds-fa-tint: var(--rds-fa2-tint); --rds-fa-dash: 9 4; }
.rds .rds-fa--FA3 { --rds-fa: var(--rds-fa3); --rds-fa-tint: var(--rds-fa3-tint); --rds-fa-dash: 2 4; }
.rds .rds-fa--FA4 { --rds-fa: var(--rds-fa4); --rds-fa-tint: var(--rds-fa4-tint); --rds-fa-dash: 12 4 2 4; }
.rds-focus a { color: var(--rds-accent); }
.rds-focus a:hover { color: var(--rds-accent-hover); }
.rds .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rds-focus-title { color: var(--rds-heading); margin: .1rem 0 .25rem; }
.rds-focus-description { max-width: 52rem; margin: .5rem 0 0; }
.rds-focus-search { margin: var(--rds-gap) 0; }
.rds-focus-count { font-weight: 600; margin: .5rem 0 0; }
.rds-focus-summary { margin: var(--rds-gap) 0 .75rem; padding: 1rem 1.25rem; border-left: 4px solid var(--rds-fa, var(--rds-accent)); background: var(--rds-surface-2); }
.rds-focus-summary h2 { margin-top: 0; font-size: 1.1rem; color: var(--rds-heading); }
.rds-focus-summary p { max-width: 52rem; }
.rds-fa-sdg-note { font-size: .85em; max-width: 52rem; }

/* SDG icons: official, unchanged, only scaled */
.rds-fa-sdgs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 .75rem; padding: 0; }
.rds-fa-sdgs li { margin: 0; }
.rds-fa-sdgs img { display: block; width: 60px; height: 60px; }   /* official icons, unchanged: no rounding, no filter */
/* on the area colour a narrow white frame around each icon (outside it), so SDG 11 stands out on Yellow and SDG 15 on Green */
.rds :is(.rds-fa-card-head, .rds-fa-hero) .rds-fa-sdgs img { box-shadow: 0 0 0 2px #fff; }
.rds :is(.rds-fa-card-head, .rds-fa-hero) .rds-fa-sdgs { gap: .5rem; padding: 2px; }   /* room for the frames */
@media (max-width: 400px) { .rds-fa-sdgs img { width: 56px; height: 56px; } }

/* the four cards: 2 × 2 on a wide screen, one column on a phone */
.rds-fa-cards { list-style: none; margin: var(--rds-gap) 0; padding: 0; display: grid; gap: var(--rds-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rds-fa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rds-fa-card { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--rds-fa);
	border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow); }
.rds-fa-card-head { padding: 1.1rem 1.5rem 1rem; background: var(--rds-fa); color: var(--rds-on-fa); }
.rds-fa-card-head .rds-fa-sdgs { margin-bottom: .6rem; }
.rds-fa-card-body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.5rem 1.4rem; }
.rds .rds-fa-card-title { margin: 0; font-size: 1.25rem; line-height: 1.25; color: var(--rds-on-fa); }
.rds .rds-fa-card-title a, .rds .rds-fa-card-title a:hover { color: var(--rds-on-fa); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.rds .rds-fa-card-title a:hover { text-decoration-thickness: 3px; }
.rds .rds-fa-card-head a:focus-visible, .rds .rds-fa-hero :is(a, button):focus-visible { outline-color: var(--rds-on-fa); box-shadow: none; }
.rds .rds-fa-btn { font-weight: 700; text-decoration: none; }   /* European Blue like every primary button (1.5.2) */
.rds-fa-lead { margin: 0 0 .25rem; }
.rds-fa-more p { margin: .25rem 0 .5rem; }
.rds .rds-fa-more-btn { align-self: flex-start; padding: .35rem 0; font-weight: 600; }
.rds-fa-card-count { margin: .75rem 0 .5rem; font-size: 1.1rem; font-weight: 700; }
.rds-fa-card-cta { margin: auto 0 0; padding-top: .75rem; }
.rds-fa-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.rds-fa-tags li { margin: 0; }
.rds .rds-fa-tag { display: inline-block; padding: .2rem .65rem; border: 1px solid var(--rds-fa, var(--rds-line-strong)); border-radius: 999px; background: var(--rds-surface);
	color: var(--rds-text); font-size: var(--text-md, .875rem); text-decoration: none; }
.rds .rds-fa-tag:hover { background: var(--rds-fa-tint, var(--rds-soft)); color: var(--rds-text); text-decoration: underline; }
.rds-fa-tag .rds-count { color: var(--rds-muted); }

/* panels and charts */
.rds-fa-compare { margin: calc(2 * var(--rds-gap)) 0 var(--rds-gap); }
.rds .rds-fa-compare > h2 { margin: 0 0 var(--rds-gap); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.25; color: var(--rds-heading); }
.rds-fa-compare-grid, .rds-fa-detail-grid { display: grid; gap: var(--rds-gap); grid-template-columns: minmax(0, 1fr); margin: var(--rds-gap) 0; }
@media (min-width: 900px) { .rds-fa-compare-grid, .rds-fa-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rds-fa-panel { min-width: 0; margin: 0 0 var(--rds-gap); padding: var(--rds-gap); border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); }
.rds-fa-compare-grid .rds-fa-panel, .rds-fa-detail-grid .rds-fa-panel { margin: 0; }
.rds-fa-panel.rds-fa-wide { border-top: 4px solid var(--rds-fa, var(--rds-line)); }
.rds .rds-fa-panel :is(h2, h3) { margin: 0 0 .75rem; font-size: 1.1rem; color: var(--rds-heading); }
.rds .rds-fa-panel h4 { margin: 0 0 .5rem; font-size: 1rem; color: var(--rds-heading); }
.rds-fa-panel .rds-muted:last-child { margin-bottom: 0; }
.rds-fa-bars { list-style: none; margin: 0; padding: 0; }
.rds-fa-bars li { display: grid; grid-template-columns: minmax(7rem, 15rem) minmax(3rem, 1fr) auto; align-items: center; gap: .6rem; margin: 0; padding: .3rem 0; border-bottom: 1px solid var(--rds-line); }
.rds-fa-bars .rds-count { font-variant-numeric: tabular-nums; text-align: right; }
.rds-fa-bar { display: block; height: .7rem; border-radius: 2px; background: var(--rds-surface-2); overflow: hidden; }
.rds-fa-bar > span { display: block; height: 100%; background: var(--rds-fa, var(--rds-accent)); box-shadow: inset 0 0 0 1px var(--rds-fa-edge, transparent); }
.rds-fa-multiples { display: grid; gap: var(--rds-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rds-fa-multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rds-fa-multiples { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rds-fa-multiple { padding-top: .5rem; border-top: 4px solid var(--rds-fa); }
.rds-fa-multiple .rds-fa-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .5rem; }
.rds-fa-multiple .rds-fa-bar { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 480px) {
	.rds-fa-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .6rem; }
	.rds-fa-bars .rds-fa-bar { grid-column: 1 / -1; grid-row: 2; }
}
.rds-fa-figure { margin: 0; }
.rds-fa-chart { padding: .6rem 1.25rem 2rem 3.75rem; }
.rds-fa-plot { position: relative; height: 16rem; }
@media (max-width: 640px) { .rds-fa-chart { padding-left: 3.25rem; padding-right: 1rem; } .rds-fa-plot { height: 12rem; } }
.rds-fa-lines { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.rds-fa-lines .rds-fa-grid { stroke: var(--rds-line-strong); stroke-width: 1; }
.rds-fa-ytick, .rds-fa-xtick { position: absolute; color: var(--rds-muted); font-size: var(--text-md, .875rem); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rds-fa-ytick { right: calc(100% + .5rem); transform: translateY(-50%); }
.rds-fa-xtick { top: calc(100% + .5rem); transform: translateX(-50%); }
.rds-fa-line { fill: none; stroke: var(--rds-fa); stroke-width: 3; stroke-dasharray: var(--rds-fa-dash); stroke-linejoin: round; }
/* the dark edge under each line (light mode): same dashes, two pixels wider */
.rds-fa-line-edge { fill: none; stroke: var(--rds-fa-edge, transparent); stroke-width: 5; stroke-dasharray: var(--rds-fa-dash); stroke-linejoin: round; }
.rds-fa-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0 0 .5rem; padding: 0; font-size: var(--text-md, .875rem); }
.rds-fa-legend li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.rds-fa-legend svg { flex: none; }
.rds-fa-table-toggle, .rds-fa-scope { margin: .75rem 0 0; }
.rds .rds-fa-table-toggle summary, .rds .rds-fa-scope summary { cursor: pointer; color: var(--rds-accent); font-weight: 600; }
.rds-fa-scope { margin: 0 0 var(--rds-gap); }
.rds-fa-scroll { max-width: 100%; overflow-x: auto; }
.rds-fa-table { width: 100%; border-collapse: collapse; }
.rds-fa-table :is(th, td) { padding: .35rem .45rem; border-bottom: 1px solid var(--rds-line); font-weight: normal; text-align: left; vertical-align: top; }
.rds-fa-table thead th { font-weight: 600; color: var(--rds-heading); vertical-align: bottom; }
.rds-fa-table .rds-num { text-align: right; font-variant-numeric: tabular-nums; }
.rds-fa-barcell { min-width: 9rem; }
.rds-fa-barcell .rds-fa-bar { display: inline-block; width: calc(100% - 4.5rem); margin-right: .5rem; vertical-align: middle; }
.rds-fa-matrix td { min-width: 6.5rem; font-variant-numeric: tabular-nums; }
.rds-fa-matrix td .rds-fa-bar { margin-top: .25rem; }
.rds-fa-matrix thead th { border-bottom: 4px solid var(--rds-fa, var(--rds-line)); }
.rds-fa-matrix-name { display: block; font-size: var(--text-xs, .75rem); font-weight: normal; color: var(--rds-muted); line-height: 1.3; }
.rds-fa-matrix abbr { text-decoration: none; }

/* one area: header in the colour of the area, key figures */
.rds-fa-hero { margin: var(--spacing-md, 1.5rem) 0 var(--rds-gap); padding: 1.75rem 2rem; border-radius: var(--rds-radius-lg); background: var(--rds-fa); color: var(--rds-on-fa); }
@media (max-width: 640px) { .rds-fa-hero { padding: 1.25rem 1rem; } }
.rds .rds-fa-hero .rds-eyebrow { color: var(--rds-on-fa); }
.rds .rds-fa-hero .rds-focus-title { margin: 0 0 1rem; color: var(--rds-on-fa); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); line-height: 1.15; }
.rds-fa-kpis { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: .5rem 0 0; }
.rds-fa-kpis > div { min-width: 8rem; }
.rds-fa-kpis dt { color: var(--rds-on-fa); font-size: var(--text-md, .875rem); font-weight: 600; }
.rds-fa-kpis dd { margin: 0; }
.rds-fa-kpi { display: block; color: var(--rds-on-fa); font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rds-fa-kpi-note { display: block; color: var(--rds-on-fa); font-size: var(--text-xs, .75rem); }

/* researchers and newest outputs as cards */
.rds-fa-people, .rds-fa-outputs { display: grid; gap: .75rem; list-style: none; margin: 0 0 .75rem; padding: 0; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.rds-fa-outputs { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.rds-fa-person, .rds-fa-output { display: flex; flex-direction: column; gap: .2rem; margin: 0; padding: .75rem 1rem; border: 1px solid var(--rds-line); border-left: 4px solid var(--rds-fa);
	border-radius: var(--rds-radius-sm); background: var(--rds-surface); }
.rds .rds-fa-person-name, .rds .rds-fa-output-title { font-weight: 600; overflow-wrap: anywhere; }
.rds-fa-person-uni, .rds-fa-output-uni, .rds-fa-output-meta { color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-fa-person-count { font-size: var(--text-md, .875rem); font-weight: 600; }
@media (max-width: 640px) { .rds-fa-matrix td { min-width: 4.75rem; } .rds-fa-matrix tbody th { min-width: 8.5rem; } }
/* the theme colours every span, p and li in dark mode (body.dark-mode span); on the area colour they need --rds-on-fa */
.rds .rds-fa-hero :is(.rds-fa-kpi, .rds-fa-kpi-note, dt, dd, p, span), .rds .rds-fa-card-head :is(p, span, li) { color: var(--rds-on-fa); }
.rds .rds-fa-btn span { color: inherit; }   /* the screen-reader text of "Explore" (else the theme's dark-mode span colour) */

/* --- Across Collaborations (1.6.0, task 71) ------------------------------------------------------
 * One page in two parts (joint publications, potential partners), the pair view, the block on the focus-area pages and
 * the side of the person profile. The matrix shades are calm steps of European Blue with the number in every cell, so
 * colour never carries the meaning alone; the note on the suggestions is a quiet surface, no border, no yellow (Sandra
 * 24.11. points 4–6). Contrast measured on the shades: text 8.1:1 (lightest) to 9.6:1 (darkest) light, ≥ 6.4:1 dark. */
.rds { --rds-cm-1: #eef3ff; --rds-cm-2: #dbe5ff; --rds-cm-3: #bccdfd; --rds-cm-4: #93b0fa; --rds-cm-text: #07133d; }
body.dark-mode .rds, .rds.dark-mode { --rds-cm-1: #1f2740; --rds-cm-2: #243256; --rds-cm-3: #2b3f78; --rds-cm-4: #36549f; --rds-cm-text: #f2f4ff; }
.rds-collab-part { margin: 0 0 calc(2 * var(--rds-gap)); scroll-margin-top: 6rem; }
.rds .rds-collab-h { margin: 0 0 .5rem; color: var(--rds-heading); font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem); line-height: 1.2; }
.rds-collab-lead { max-width: 52rem; margin: 0 0 var(--rds-gap); }
.rds-collab-grid { display: grid; gap: var(--rds-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .rds-collab-grid { grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); } }
@media (min-width: 900px) { .rds-collab-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rds-collab-side { display: grid; gap: var(--rds-gap); min-width: 0; }
.rds-collab-panel { min-width: 0; padding: var(--rds-gap); border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow-sm); }
.rds .rds-collab-panel :is(h2, h3) { margin: 0 0 .75rem; color: var(--rds-heading); font-size: 1.1rem; line-height: 1.3; }
.rds-collab-panel > p:last-child, .rds-collab-panel > form:last-child { margin-bottom: 0; }
.rds .rds-collab-filters { margin: 0 0 var(--rds-gap); padding: 1rem 1.25rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow-sm); }
.rds .rds-collab-filters .rds-filters { margin: 0; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.rds .rds-collab-filters .rds-filters label:nth-child(3) { grid-column: span 2; }
@media (max-width: 640px) { .rds .rds-collab-filters .rds-filters label:nth-child(3) { grid-column: auto; } }
.rds .rds-collab-filters .rds-filters select { width: 100%; height: var(--btn-height, 44px); padding: 0 .8rem; border: 1px solid var(--rds-line-strong); border-radius: var(--rds-radius-sm);
	background: var(--rds-surface); color: var(--rds-text); font: inherit; font-size: var(--text-md, .875rem); }
.rds .rds-collab-filters .rds-filters label { margin: 0; }   /* the theme's label margin pushed the fields above the button line */
.rds-collab-apply { display: flex; align-items: end; }
.rds-collab-apply .rds-btn { width: 100%; }
.rds-collab-large { margin-top: .85rem; }
.rds-check { display: inline-flex; align-items: center; gap: .5rem; color: var(--rds-heading); font-weight: 600; cursor: pointer; }
.rds-check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--rds-blue); }
.rds-collab-large .rds-muted { max-width: 52rem; margin: .3rem 0 0 1.65rem; }

/* the matrix: narrow columns, short names, every number visible */
/* position: relative keeps the screen-reader texts (absolute) inside the scrolling box — else they widened the page on a phone */
.rds-collab-scroll { position: relative; max-width: 100%; overflow-x: auto; }
.rds-collab-matrix { border-collapse: separate; border-spacing: 3px; margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.rds-collab-matrix :is(th, td) { min-width: 2.9rem; height: 2.5rem; padding: 0 .35rem; border-radius: 6px; text-align: center; font-size: var(--text-md, .875rem); }
.rds-collab-matrix thead th { height: auto; padding-bottom: .25rem; color: var(--rds-heading); font-size: var(--text-sm, .8125rem); font-weight: 700; vertical-align: bottom; }
.rds-collab-matrix tbody th { padding-right: .6rem; color: var(--rds-heading); font-size: var(--text-sm, .8125rem); font-weight: 700; text-align: left; }
.rds-collab-matrix abbr { text-decoration: none; cursor: help; }
.rds-collab-matrix td.rds-cm-0 { color: var(--rds-muted); background: var(--rds-surface-2); }
.rds-collab-matrix td.rds-cm-self { color: var(--rds-muted); background: transparent; }
.rds-collab-matrix :is(.rds-cm-1, .rds-cm-2, .rds-cm-3, .rds-cm-4) { color: var(--rds-cm-text); font-weight: 600; }
.rds-cm-1 { background: var(--rds-cm-1); } .rds-cm-2 { background: var(--rds-cm-2); } .rds-cm-3 { background: var(--rds-cm-3); } .rds-cm-4 { background: var(--rds-cm-4); }
.rds .rds-collab-matrix td a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 2.5rem; color: var(--rds-cm-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rds .rds-collab-matrix td a:hover { text-decoration-thickness: 3px; }
@media (max-width: 640px) {
	.rds-collab-matrix { border-spacing: 2px; }
	.rds-collab-matrix :is(th, td) { min-width: 1.95rem; height: 2.2rem; padding: 0 .1rem; font-size: var(--text-sm, .8125rem); }
	.rds-collab-matrix thead th, .rds-collab-matrix tbody th { font-size: .7rem; }
	.rds .rds-collab-matrix td a { min-height: 2.2rem; }
	.rds-collab-panel { padding: 1rem; }
}
.rds-collab-legend { margin-top: .75rem; }
.rds-collab-legend .rds-muted { margin: 0 0 .4rem; }
.rds-collab-legend ul { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; margin: 0 0 .6rem; padding: 0; color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-collab-legend li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.rds-cm-swatch { display: inline-block; width: 1rem; height: 1rem; border: 1px solid var(--rds-line-strong); border-radius: 3px; }
.rds-collab-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .1rem 1rem; margin: 0; color: var(--rds-muted); font-size: var(--text-sm, .8125rem); }
.rds-collab-names div { display: flex; gap: .4rem; }
.rds-collab-names dt { min-width: 3.2rem; font-weight: 700; color: var(--rds-heading); }
.rds-collab-names dd { margin: 0; }
.rds-collab-kpis { display: grid; gap: .75rem; margin: 0; }
.rds-collab-kpis dt { color: var(--rds-muted); font-size: var(--text-md, .875rem); font-weight: 600; }
.rds-collab-kpis dd { margin: 0; color: var(--rds-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rds-collab-bars li { grid-template-columns: minmax(6rem, 1fr) minmax(3rem, 1.2fr) auto; }
.rds-collab-panel .rds-collab-bars li:last-child, .rds-collab-focus .rds-collab-bars li:last-child { border-bottom: 0; }
/* the pair label is a link whose text sits in spans; the theme colours every span white in dark mode (1.6.1, task 72) */
.rds .rds-collab-bars .rds-fa-bar-label a span { color: inherit; }

/* the note on suggestions: quiet, readable, no border (R29 text) */
.rds .rds-suggestion-note { margin: 0 0 var(--rds-gap); padding: .55rem .85rem; border-radius: var(--rds-radius-sm); background: var(--rds-surface-2); color: var(--rds-text); font-size: var(--text-md, .875rem); }
.rds-side-box .rds-suggestion-note { margin-bottom: .75rem; }

/* topic search results: grouped by university, no numbers */
.rds-collab-topic { margin-top: var(--rds-gap); }
.rds-collab-topic-results:not(:empty) { padding: .25rem var(--rds-gap) var(--rds-gap); border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow-sm); }
.rds-collab-topic-results .rds-suggestion-note { margin: 1rem 0 0; }
/* the narrow side of a pair: label on its own line, the bar below it (long focus-area names) */
.rds-collab-pair .rds-collab-side .rds-fa-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; }
.rds-collab-pair .rds-collab-side .rds-fa-bar { grid-column: 1 / -1; grid-row: 2; }
.rds .rds-topic-uni { margin: 1.25rem 0 .35rem; color: var(--rds-heading); font-size: 1rem; }
.rds-topic-people, .rds-side-people { list-style: none; margin: 0; padding: 0; }
.rds-topic-people li, .rds-side-people li { display: flex; flex-direction: column; gap: .1rem; margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--rds-line); overflow-wrap: anywhere; }
.rds-topic-people li:last-child, .rds-side-people li:last-child { border-bottom: 0; }
.rds .rds-side-name { font-weight: 600; }
.rds-side-uni { color: var(--rds-muted); font-size: var(--text-md, .875rem); }
.rds-side-why { margin: .15rem 0 0; color: var(--rds-text); font-size: var(--text-md, .875rem); line-height: 1.45; }
.rds .rds-side-joint { font-size: var(--text-md, .875rem); }
.rds-side-areas { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .3rem 0 0; color: var(--rds-muted); font-size: var(--text-sm, .8125rem); line-height: 1.4; }
/* a focus area as a plaque in its colour: black on the area colours is 4.9:1 (FA1) to 14.5:1, in both modes */
.rds .rds-fa-badge { display: inline-block; padding: .05rem .45rem; border-radius: 4px; background: var(--rds-fa); color: var(--rds-on-fa); font-size: .75rem; font-weight: 700; letter-spacing: .02em; cursor: help; }
.rds .rds-fa-badge span { color: inherit; }
.rds-person-count { margin: 0 0 .75rem; color: var(--rds-muted); }
.rds-person-count:empty { display: none; }
.rds .rds-side-more { padding: .35rem 0; font-size: var(--text-md, .875rem); font-weight: 600; }
@media (max-width: 999px) { .rds-side-people.is-collapsed > li:nth-child(n+4) { display: none; } }
@media (min-width: 1000px) { .rds .rds-side-more { display: none; } }

/* one pair */
.rds-collab-hero { margin: var(--spacing-md, 1.5rem) 0 var(--rds-gap); padding: 2rem 2.1rem 1.75rem; border: 1px solid var(--rds-line); border-top: 5px solid var(--rds-blue);
	border-radius: var(--rds-radius-lg); background: var(--rds-surface); box-shadow: var(--rds-shadow-hero); }
@media (max-width: 640px) { .rds-collab-hero { padding: 1.5rem 1.25rem; } }
.rds .rds-collab-hero .rds-eyebrow { color: var(--rds-accent); }
.rds .rds-collab-title { margin: 0; color: var(--rds-heading); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); line-height: 1.15; overflow-wrap: anywhere; }
.rds-collab-hero-count { margin: .5rem 0 0; color: var(--rds-heading); font-size: 1.15rem; font-weight: 600; }
.rds-collab-outputs .rds-card { box-shadow: none; }
.rds .rds-collab-large-mark { display: inline-block; margin: .45rem 0 0; padding: .1rem .55rem; border: 1px solid var(--rds-line-strong); border-radius: 999px; color: var(--rds-muted); font-size: var(--text-sm, .8125rem); }
.rds-collab-back { margin-top: var(--rds-gap); }
.rds-collab-list .rds-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .5rem; }

/* the block on a focus-area page and the second row beside it */
.rds-fa-detail-grid > :only-child { grid-column: 1 / -1; }
.rds-collab-focus-count { margin: 0 0 1rem; }
.rds-fa-kpi-big { display: block; color: var(--rds-heading); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rds .rds-collab-focus h3 { margin: 0 0 .4rem; font-size: 1rem; }

/* the person profile: works on the left, co-authors and suggestions on the right; on a phone the side comes first */
.rds-person-layout { display: grid; gap: var(--rds-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) {
	.rds-person-layout:has(> .rds-person-side:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); }
	.rds-person-layout > .rds-person-side { grid-column: 2; grid-row: 1; }
	.rds-person-layout > .rds-person-works { grid-column: 1; grid-row: 1; margin-top: 0; }
}
.rds-person-side { display: grid; gap: var(--rds-gap); min-width: 0; }
.rds-person-side[hidden] { display: none; }
.rds-side-box { padding: 1.1rem 1.25rem; border: 1px solid var(--rds-line); border-radius: var(--rds-radius); background: var(--rds-surface); box-shadow: var(--rds-shadow-sm); }
.rds .rds-side-title { margin: 0 0 .6rem; color: var(--rds-heading); font-size: 1.05rem; line-height: 1.3; }
.rds-side-box > .rds-muted:last-child { margin-bottom: 0; }
.rds-person-with { margin: 0 0 .75rem; font-weight: 600; }
