/* The Steam Revenue Report — /developers/steam-revenue-report/
   Sits on top of base_developers.html, which supplies the section's Oswald headings,
   dev-band and dev-card. Everything else here is scoped under .srr so it can't leak
   into the other developer tools. */

/* This page opts out of the section's orange dots-and-cartridges background: ten charts
   of coloured data need a neutral field behind them, and the tiled art fights every one.
   Only pages that load this stylesheet are affected, and it is linked after the inline
   <style> in base_developers.html, so the later rule wins at equal specificity. */
body {
	background-color: #1a1a1a;
	background-image: none;
}

.srr {
	--srr-dim: rgba(255, 255, 255, 0.72);   /* The section's dimmed-text colour. */
	/* Lightens rather than darkens now — a black wash is invisible on a dark grey page: */
	--srr-panel: rgba(255, 255, 255, 0.04);
	--srr-line: rgba(255, 255, 255, 0.16);
	--srr-gold: #FFC75A;
	--srr-red: #FA585F;
}

/* --- Hero ------------------------------------------------------------------ */
.srr-hero { padding: 0 0 1rem; }

.srr-hero h1 {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2.2rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}

.srr-subtitle {
	font-size: 1.35rem;
	color: rgba(255, 255, 255, 0.82);   /* Was a warm pink tuned to the orange background. */
	margin-bottom: 0.35rem;
}

/* The three faces under the subtitle, with the credit line beside them. Wraps to a
   stack on narrow screens rather than squeezing the sentence into a column: */
.srr-credits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0;
}

.srr-avatars {
	display: flex;
	gap: 1rem;
}

/* Height is fixed and width follows, so the source files can be any size without distorting: */
.srr-avatars img {
	height: 96px;
	width: auto;
	border-radius: 12px;
}

/* Sized to match the tile notes under the hero stats. Scoped under .srr to outrank
   `.dev-section p` in base_developers.html, which is more specific than a lone class: */
.srr .srr-credit-text {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.82);
	max-width: 34rem;
	margin: 0;
}

.srr-stamp {
	font-size: 0.95rem;
	color: var(--srr-dim);
	margin-bottom: 1.5rem;
}

/* Stat tiles — the screenshot row. IBM Plex Mono's tabular digits are why these
   line up cleanly as the multiplier changes them: */
.srr-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.srr-tile {
	background: var(--srr-panel);
	border: 1px solid var(--srr-line);
	border-radius: 8px;
	padding: 1.1rem 1.25rem;
}

.srr-tile-value {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}

.srr-tile-label {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.9rem;
	color: var(--srr-gold);
	margin-top: 0.35rem;
}

.srr-tile-note {
	font-size: 0.85rem;
	color: var(--srr-dim);
	margin-top: 0.2rem;
}

/* Multiplier toggle. Sticks under the navbar so it stays reachable the whole way
   down the page — every chart answers to it: */
.srr-toggle-bar {
	position: sticky;
	top: 64px;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	background: rgba(20, 6, 4, 0.92);
	backdrop-filter: blur(8px);
	border: 1px solid var(--srr-line);
	border-radius: 8px;
	padding: 0.6rem 0.9rem;
	margin-bottom: 1.25rem;
}

.srr-toggle-label {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	color: var(--srr-dim);
}

/* Solid on both states — an outline button here would read as disabled: */
.srr-mult {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border: none;
	font-family: 'Oswald', sans-serif;
	letter-spacing: 0.04em;
}
.srr-mult:hover { background-color: rgba(255, 255, 255, 0.22); color: #ffffff; }
.srr-mult.active { background-color: var(--srr-red); color: #ffffff; }

.srr-info {
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	border: 1px solid var(--srr-gold);
	background: transparent;
	color: var(--srr-gold);
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	line-height: 1;
	padding: 0;
}
.srr-info:hover { background: var(--srr-gold); color: #1c1c20; }

/* Jump menu — everything on one page, per the site's no-hidden-tabs finding: */
.srr-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--srr-line);
}
.srr-jump a {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
}

/* --- Sections -------------------------------------------------------------- */
.srr-section { padding: 2.5rem 0 1rem; scroll-margin-top: 130px; }

.srr-section .srr-h3 {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1.2rem;
	margin: 2rem 0 0.6rem;
	color: var(--srr-gold);
}

.srr-lead { font-size: 1.1rem; max-width: 62rem; }

/* The prompt above the Look It Up search box — centred over the input it introduces,
   and sized to match the hero tile figures: */
.srr-section .srr-lookup-title {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	color: #ffffff;
	margin: 1.25rem 0 1.25rem;
}

/* The section is a heading and one input, so it doesn't need the usual tail padding —
   this keeps the block sitting evenly between the band and the next section: */
#lookup.srr-section { padding-bottom: 0; }

.srr-caption {
	font-size: 1rem;
	color: var(--srr-dim);
	max-width: 62rem;
	margin-top: 0.6rem;
}

.srr-list { font-size: 1.05rem; max-width: 62rem; }
.srr-list li { margin-bottom: 0.35rem; }

/* --- Charts ---------------------------------------------------------------- */
/* Fixed heights double as skeleton boxes, so nothing shifts when a chart mounts: */
.srr-chart {
	width: 100%;
	height: 380px;
	background: var(--srr-panel);
	border: 1px solid var(--srr-line);
	border-radius: 8px;
	margin-bottom: 0.5rem;
}

.srr-chart-tall { height: 560px; }

@media (max-width: 767.98px) {
	.srr-chart { height: 300px; }
	.srr-chart-tall { height: 400px; }
	.srr-toggle-bar { top: 0; }
}

.srr-chart-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

/* Same bar sitting under a chart instead of over it — space goes above: */
.srr-chart-controls-below {
	margin-top: 0.75rem;
	margin-bottom: 0.25rem;
}

.srr-btn, .srr-sort {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border: none;
	font-family: 'Oswald', sans-serif;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
}
.srr-btn:hover, .srr-sort:hover { background-color: rgba(255, 255, 255, 0.22); color: #ffffff; }
.srr-sort.active { background-color: var(--srr-red); color: #ffffff; }

/* For a control that has to be noticed rather than merely found — the section red,
   matching .dev-cta, and bigger than the translucent utility buttons: */
.srr-btn-red {
	background-color: var(--srr-red);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1rem;
	padding: 0.5rem 1.35rem;
}
.srr-btn-red:hover { background-color: #ED374C; }

.srr-chart-note { font-size: 0.9rem; color: var(--srr-dim); }

/* --- Gini panel ------------------------------------------------------------ */
.srr-gini { text-align: center; margin-bottom: 1rem; }

.srr-gini-value {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.srr-gini-label {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--srr-gold);
}

.srr-gini-note { font-size: 0.95rem; color: var(--srr-dim); margin-top: 0.6rem; }

.srr-shares { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.srr-shares li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--srr-line);
	font-variant-numeric: tabular-nums;
}
.srr-shares li span:last-child { font-weight: 700; }

/* --- Tables ---------------------------------------------------------------- */
.srr-table {
	--bs-table-color: #ffffff;
	--bs-table-bg: transparent;
	--bs-table-border-color: var(--srr-line);
	--bs-table-striped-color: #ffffff;
	color: #ffffff;
}
.srr-table th {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
	color: var(--srr-gold);
	border-bottom: 2px solid var(--srr-line);
}
.srr-table td { border-color: var(--srr-line); vertical-align: middle; }
.srr-table .srr-num { text-align: right; font-variant-numeric: tabular-nums; }
.srr-table tbody tr:hover { background: rgba(255, 255, 255, 0.06); }

/* --- Honesty box ----------------------------------------------------------- */
.srr-honesty .dev-card h3 { font-size: 1.1rem; color: var(--srr-gold); }
.srr-honesty .dev-card p { font-size: 1rem; margin-bottom: 0; }

/* --- Genre zone links ------------------------------------------------------ */
.srr-zone-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; margin-top: 0.75rem; }
.srr-zone-links a { font-size: 0.95rem; }

/* --- Lookup ---------------------------------------------------------------- */
/* The widget's input and dropdown hardcode a white background but take their text
   colour from the page, and this section sets white text — so both the typed query
   and the result links render white on white. Force them dark, the same way
   comps.html does; the result links use color:inherit, so colouring the dropdown
   container cascades into them: */
.srr .search-widget-input,
.srr .search-widget-dropdown { color: #000000; }

.srr-lookup-result {
	margin-top: 1.25rem;
	background: var(--srr-panel);
	border: 1px solid var(--srr-line);
	border-radius: 8px;
	padding: 1.25rem;
	max-width: 46rem;
}

.srr-lookup-name { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 700; }

.srr-lookup-figure {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2.2rem, 6vw, 3.2rem);
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--srr-gold);
}

.srr-lookup-rows { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.srr-lookup-rows li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--srr-line);
	font-variant-numeric: tabular-nums;
}

/* --- Cite block ------------------------------------------------------------ */
.srr-cite {
	background: var(--srr-panel);
	border: 1px solid var(--srr-line);
	border-left: 4px solid var(--srr-gold);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	max-width: 62rem;
}
.srr-cite-line {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.9rem;
	margin-bottom: 0;
	word-break: break-word;
}
