/*
 * Brokerlist — one stylesheet.
 *
 * Order: tokens, reset, primitives, chrome, home page, review page, archives,
 * reviews, forms, utilities. Colours are declared once as tokens on :root and
 * redefined for dark mode; nothing below this file's token block hard-codes a
 * colour, so re-theming is a single edit.
 */

/* ---------------------------------------------------------------- tokens - */

:root {
	--bg: #ffffff;
	--bg-soft: #f4f7fb;
	--bg-sunk: #e9eff7;
	--card: #ffffff;
	--card-2: #f8fafd;
	--line: #dde5f0;
	--line-soft: #edf1f7;

	--text: #0e1726;
	--text-2: #57667f;
	--text-3: #8595ad;

	--brand: #1f4fd8;
	--brand-ink: #0c2559;
	--brand-soft: #e8eeff;
	--on-brand: #ffffff;

	--trusted: #0b8f5f;
	--trusted-bg: #e2f6ee;
	--newcomer: #9a6208;
	--newcomer-bg: #fdf1dd;
	--scam: #ce2334;
	--scam-bg: #fdeaec;
	--star: #f0a41c;

	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 18px;
	--shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 24px -12px rgba(14, 23, 38, .18);
	--shadow-lg: 0 24px 60px -28px rgba(12, 37, 89, .38);

	--wrap: 1240px;
	--gap: 20px;

	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a0f1a;
		--bg-soft: #0f1624;
		--bg-sunk: #0c121e;
		--card: #131c2c;
		--card-2: #182234;
		--line: #253147;
		--line-soft: #1c2536;

		--text: #e9eef7;
		--text-2: #9aa9c0;
		--text-3: #6d7d96;

		--brand: #5f8bff;
		--brand-ink: #0a1730;
		--brand-soft: #16203a;
		--on-brand: #08101f;

		--trusted: #34d399;
		--trusted-bg: #0f2b23;
		--newcomer: #f0b45c;
		--newcomer-bg: #2b2010;
		--scam: #fb7185;
		--scam-bg: #2d1319;
		--star: #f5b342;

		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -16px rgba(0, 0, 0, .7);
		--shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);

		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0a0f1a;
	--bg-soft: #0f1624;
	--bg-sunk: #0c121e;
	--card: #131c2c;
	--card-2: #182234;
	--line: #253147;
	--line-soft: #1c2536;

	--text: #e9eef7;
	--text-2: #9aa9c0;
	--text-3: #6d7d96;

	--brand: #5f8bff;
	--brand-ink: #0a1730;
	--brand-soft: #16203a;
	--on-brand: #08101f;

	--trusted: #34d399;
	--trusted-bg: #0f2b23;
	--newcomer: #f0b45c;
	--newcomer-bg: #2b2010;
	--scam: #fb7185;
	--scam-bg: #2d1319;
	--star: #f5b342;

	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -16px rgba(0, 0, 0, .7);
	--shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);

	color-scheme: dark;
}

/* ----------------------------------------------------------------- reset - */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
	margin: 0;
	background: var(--bg-soft);
	color: var(--text);
	font: 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	z-index: 100;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.wrap {
	width: min(100% - 32px, var(--wrap));
	margin-inline: auto;
}

/* ------------------------------------------------------------ primitives - */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }

.button.is-primary { background: var(--brand); color: #fff; }
.button.is-primary:hover { background: var(--brand-ink); color: #fff; }

.button.is-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--text);
}
.button.is-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* On the dark hero, where the page tokens would be invisible. */
.button.is-light { background: #fff; color: var(--brand-ink); }
.button.is-light:hover { background: #fff; color: var(--brand-ink); }
.button.is-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.button.is-outline:hover { border-color: #fff; color: #fff; }

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text-2);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.icon-button:hover { border-color: var(--brand); color: var(--brand); }
.icon-button[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }

.badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
}
.badge.is-trusted { background: var(--trusted-bg); color: var(--trusted); }
.badge.is-newcomer { background: var(--newcomer-bg); color: var(--newcomer); }
.badge.is-scam { background: var(--scam-bg); color: var(--scam); }
.badge.is-free { background: var(--brand-soft); color: var(--brand); }

.rating { display: inline-flex; align-items: center; gap: 7px; }
.rating.is-empty { color: var(--text-3); font-size: .82rem; }

.rating-stars {
	--fill: 0%;
	position: relative;
	display: block;
	width: 82px;
	height: 15px;
	background: linear-gradient(90deg, var(--star) var(--fill), var(--line) var(--fill));
	-webkit-mask: repeat-x left center / 16.4px 15px
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.2 4.9 5.3.5-4 3.6 1.2 5.2L8 11.5 3.3 14.2l1.2-5.2-4-3.6 5.3-.5z'/%3E%3C/svg%3E");
	mask: repeat-x left center / 16.4px 15px
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.2 4.9 5.3.5-4 3.6 1.2 5.2L8 11.5 3.3 14.2l1.2-5.2-4-3.6 5.3-.5z'/%3E%3C/svg%3E");
}

.rating-value { font-size: .85rem; font-weight: 700; color: var(--text-2); }

.logo {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 10px;
	background: var(--card-2);
	border: 1px solid var(--line-soft);
	overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.logo.is-letter {
	/* Tile colour is derived from the broker name, so it stays stable across
	   pages without storing anything; only the lightness changes by scheme. */
	--tile-bg-l: 92%;
	--tile-fg-l: 30%;
	background: hsl(var(--hue) 58% var(--tile-bg-l));
	color: hsl(var(--hue) 52% var(--tile-fg-l));
	font-weight: 800;
	font-size: 1.05rem;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .logo.is-letter { --tile-bg-l: 22%; --tile-fg-l: 78%; }
}
:root[data-theme="dark"] .logo.is-letter { --tile-bg-l: 22%; --tile-fg-l: 78%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font-size: .88rem;
	font-weight: 500;
	transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover, .chip.is-current { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip-count { color: var(--text-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chip:hover .chip-count, .chip.is-current .chip-count { color: var(--brand); }

.empty, .notice, .fineprint, .form-note {
	padding: 16px 18px;
	background: var(--card);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--text-2);
	font-size: .9rem;
}
.empty p:last-child, .notice p:last-child, .fineprint p:last-child, .form-note p:last-child { margin: 0; }
.fineprint { border-style: solid; background: transparent; font-size: .82rem; color: var(--text-3); }

.section { padding: 46px 0; }
.section.is-alert { padding-top: 34px; }

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.section-head h2, .section-head h3 { margin: 0; }
.section-more { font-size: .88rem; font-weight: 600; }

/* ----------------------------------------------------------------- chrome - */

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

.ribbon {
	background: var(--brand-ink);
	color: rgba(255, 255, 255, .78);
	font-size: .76rem;
}
.ribbon .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 0; }
.ribbon p { margin: 0; }

.theme-toggle {
	flex: 0 0 auto;
	width: 34px; height: 24px;
	padding: 0;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	position: relative;
}
.theme-toggle span[aria-hidden] {
	position: absolute;
	top: 3px; left: 3px;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .18s ease;
}
.theme-toggle[aria-pressed="true"] span[aria-hidden] { transform: translateX(10px); background: #ffd88a; }

.masthead {
	position: sticky;
	top: 0;
	z-index: 40;
	/* Opaque on purpose: a translucent bar let the ranking rows show through
	   as it scrolled under, and the logo sat on whatever happened to pass. */
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
/* The search bar is positioned against this, so it covers the header rather
   than pushing the page down when it opens. */
.masthead .wrap { position: relative; }
.masthead .wrap {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 66px;
}

.brand { flex: 0 0 auto; }
.brand img, .brand .custom-logo { max-height: 38px; width: auto; }

/* The logo has no background of its own, so the navy wordmark needs a light
   counterpart once the header goes dark. Both files are in the markup and only
   one is ever displayed, which keeps the accessible name on whichever shows. */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { display: block; }
.brand-logo.has-dark .brand-logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand-logo.has-dark .brand-logo-light { display: none; }
	:root:not([data-theme="light"]) .brand-logo.has-dark .brand-logo-dark { display: block; }
}

:root[data-theme="dark"] .brand-logo.has-dark .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo.has-dark .brand-logo-dark { display: block; }
.brand-text { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.brand-text:hover { text-decoration: none; }

.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.primary-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-size: .92rem;
	font-weight: 500;
}
.primary-nav a:hover { background: var(--bg-sunk); color: var(--text); text-decoration: none; }
/* `current-menu-ancestor` is the section a single post sits under — see
   inc/nav.php. It reads the same as being on the archive itself. */
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current-post-ancestor > a { color: var(--brand); background: var(--brand-soft); }

.masthead-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
	display: none;
	width: 40px; height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	cursor: pointer;
	position: relative;
}
.nav-toggle span[aria-hidden] {
	position: absolute;
	inset: 50% 11px auto;
	height: 2px;
	background: var(--text);
	transition: transform .18s;
}
.nav-toggle span[aria-hidden]::before,
.nav-toggle span[aria-hidden]::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 2px;
	background: var(--text);
	transition: transform .18s;
}
.nav-toggle span[aria-hidden]::before { top: -6px; }
.nav-toggle span[aria-hidden]::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden] { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]::after { opacity: 0; }

.searchform { display: flex; align-items: center; gap: 0; }
.searchform input[type="search"] {
	width: 190px;
	padding: 9px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	color: var(--text);
	font: inherit;
	font-size: .9rem;
}
.searchform input[type="search"]:focus { outline: none; border-color: var(--brand); }
.searchform button {
	padding: 9px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 0;
	border-radius: 0 999px 999px 0;
	color: var(--text-2);
	cursor: pointer;
}
.searchform button:hover { color: var(--brand); }

/* The header search: an overlay inside the masthead, not a second field. */
.searchbar {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	background: var(--bg);
}
.searchbar[hidden] { display: none; }
.searchbar form {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}
.searchbar .icon { flex: none; color: var(--text-3); }
.searchbar input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 1.05rem;
}
.searchbar input[type="search"]:focus { outline: none; }
.searchbar input[type="search"]::placeholder { color: var(--text-3); }
.searchbar .icon-button { border-color: transparent; }

@media (max-width: 560px) {
	.searchbar form .button { display: none; }
}

@media (max-width: 900px) {
	/* Below this width the menu lives in the drawer, not in the bar. */
	.nav-toggle { display: block; order: 3; margin-left: auto; }
	.primary-nav { display: none; }
	.masthead-tools { order: 2; margin-left: auto; }
}

/* ---------------------------------------------------------------- drawer - */

.drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(8, 14, 26, .55);
	opacity: 0;
	transition: opacity .28s ease;
}
.drawer-backdrop.is-open { opacity: 1; }
.drawer-backdrop[hidden] { display: none; }

.drawer {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: min(330px, 86vw);
	background: var(--brand-ink);
	color: rgba(255, 255, 255, .82);
	transform: translateX(-102%);
	transition: transform .28s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.drawer.is-open { transform: none; box-shadow: var(--shadow-lg); }

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.drawer-head .brand img { max-height: 34px; width: auto; }
/* The drawer is dark in both schemes, so it always takes the light-ink logo. */
.drawer-head .brand-logo.has-dark .brand-logo-light { display: none; }
.drawer-head .brand-logo.has-dark .brand-logo-dark { display: block; }
.drawer-head .brand-text { color: #fff; }
.drawer .icon-button { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); }
.drawer .icon-button:hover { border-color: #fff; color: #fff; }

.drawer-search {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 16px 18px 4px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
}
.drawer-search .icon { flex: none; color: rgba(255, 255, 255, .5); }
.drawer-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: .95rem;
}
.drawer-search input::placeholder { color: rgba(255, 255, 255, .45); }
.drawer-search input:focus { outline: none; }

.drawer-nav { padding: 10px 18px 20px; }
.drawer-nav ul { display: grid; gap: 2px; }
.drawer-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 12px;
	border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, .86);
	font-size: .95rem;
	font-weight: 600;
}
.drawer-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.drawer-nav .current-menu-item > a,
.drawer-nav .current_page_item > a,
.drawer-nav .current-menu-ancestor > a { background: var(--brand); color: #fff; }

.drawer-nav .eyebrow {
	display: block;
	margin: 20px 0 8px;
	padding-left: 12px;
	color: rgba(255, 255, 255, .45);
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.drawer-nav-terms a { font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .7); }
.drawer-nav-terms .count { color: rgba(255, 255, 255, .4); font-size: .76rem; font-weight: 700; }

.drawer-foot {
	margin-top: auto;
	padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.drawer-foot .button { width: 100%; }

body.is-locked { overflow: hidden; }

@media (min-width: 901px) {
	.drawer, .drawer-backdrop { display: none; }
}

/* --------------------------------------------------------------- the hero - */

.hero {
	background:
		radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
		linear-gradient(160deg, var(--brand-ink), color-mix(in srgb, var(--brand-ink) 70%, #000));
	color: #fff;
	padding: 52px 0 46px;
}
.hero .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-copy > p { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.hero-updated p { margin: 0; color: rgba(255, 255, 255, .55); font-size: .8rem; }

.hero-stats dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stat {
	padding: 18px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--radius);
}
.stat dt { color: rgba(255, 255, 255, .7); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stat dd { margin: 4px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat.is-trusted dd { color: #6ee7b7; }
.stat.is-scam dd { color: #fda4af; }

@media (max-width: 900px) {
	.hero { padding: 36px 0 32px; }
	.hero .wrap { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 460px) {
	.stat dd { font-size: 1.6rem; }
}

/* -------------------------------------------------------------- the table - */

.toplist {
	/* The rank column holds three digits at most, so it is sized for them and
	   the width goes to the columns that carry words. */
	/* Broker names are short and the long ones truncate anyway; regulation
	   carries several licence numbers, so the spare width goes there rather
	   than into a gap after the broker name. */
	--cols: 30px minmax(150px, 1fr) 108px 92px minmax(120px, 1.35fr) 108px 96px 78px 96px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	/* The table reacts to the column it sits in, not to the window. On a
	   category page it shares the row with a 300px sidebar, where a viewport
	   query still called the layout wide and the last columns were cut off. */
	container-type: inline-size;
}
/* Every advisor value is short, so the slack is spread across the data columns
   instead of piling up behind the name. */
.toplist.is-advisors { --cols: 30px minmax(150px, 1fr) 104px 76px minmax(92px, 1fr) minmax(92px, 1fr) minmax(108px, 1fr) minmax(100px, 1fr) 92px; }

.toplist-head,
.toplist-row {
	display: grid;
	grid-template-columns: var(--cols);
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
}

.toplist-head {
	background: var(--card-2);
	border-bottom: 1px solid var(--line);
	color: var(--text-3);
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.toplist-row { border-bottom: 1px solid var(--line-soft); transition: background-color .12s; }
.toplist-row:last-child { border-bottom: 0; }
.toplist-row:hover { background: var(--card-2); }
.toplist-row[hidden] { display: none; }

.toplist-rank { color: var(--text-3); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.toplist-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.toplist-brand-text { min-width: 0; }
.toplist-brand-text a,
.toplist-brand-text b { display: block; color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist-brand-text a:hover { color: var(--brand); }
.toplist-brand-text small { display: block; color: var(--text-3); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toplist-cell { color: var(--text-2); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.toplist-cell em { color: var(--text-3); font-style: normal; }
.toplist-reviews a { font-weight: 650; font-variant-numeric: tabular-nums; }
.toplist-action { text-align: right; }
.toplist-action .button { padding: 7px 14px; font-size: .82rem; }

/* Medium: deposit and leverage go, because the review count is the column a
   reader actually follows and it is the one the table is named for. */
@container (max-width: 1000px) {
	.toplist:not(.is-advisors) .toplist-head,
	.toplist:not(.is-advisors) .toplist-row { --cols: 28px minmax(150px, 1fr) 104px 92px minmax(120px, 1.4fr) 78px 92px; }
	.toplist:not(.is-advisors) .toplist-head span:nth-child(6),
	.toplist:not(.is-advisors) .toplist-head span:nth-child(7),
	.toplist:not(.is-advisors) .toplist-head span:nth-child(9) { display: none; }
	.toplist:not(.is-advisors) .toplist-row .toplist-deposit,
	.toplist:not(.is-advisors) .toplist-row .toplist-lev { display: none; }

	/* The advisor table has no button to keep, so it drops to six. */
	.toplist.is-advisors .toplist-head,
	.toplist.is-advisors .toplist-row { --cols: 28px minmax(150px, 1fr) 104px 92px minmax(104px, 1.2fr) 104px; }
	.toplist.is-advisors .toplist-head span:nth-child(n+7),
	.toplist.is-advisors .toplist-row > :nth-child(n+7) { display: none; }
}

@media (max-width: 860px) {
	.toplist { border-radius: var(--radius); }
}

@container (max-width: 800px) {
	.toplist-head { display: none; }
	/* Card layout. The four identity cells are pinned to the first two rows;
	   everything after them spans the full width and auto-flows underneath in
	   document order, which puts the button last without naming an area. */
	.toplist-row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 12px;
		padding: 16px 16px 18px;
	}
	.toplist-row .toplist-brand { grid-column: 1; grid-row: 1; }
	.toplist-row .toplist-rank { grid-column: 2; grid-row: 1; justify-self: end; }
	.toplist-row .toplist-score { grid-column: 1; grid-row: 2; }
	.toplist-row .toplist-verdict { grid-column: 2; grid-row: 2; justify-self: end; }

	.toplist-row .toplist-cell,
	.toplist-row .toplist-reviews {
		grid-column: 1 / -1;
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 7px 0 0;
		border-top: 1px dashed var(--line-soft);
		font-size: .85rem;
	}
	.toplist-row .toplist-cell::before,
	.toplist-row .toplist-reviews::before {
		content: attr(data-label);
		color: var(--text-3);
		font-weight: 600;
		white-space: nowrap;
	}
	/* Columns dropped at the medium width come back on the card. These carry
	   the same weight as the rules that hid them, so they have to win on order. */
	.toplist:not(.is-advisors) .toplist-row .toplist-deposit,
	.toplist:not(.is-advisors) .toplist-row .toplist-lev,
	.toplist.is-advisors .toplist-row > :nth-child(n+7) { display: flex; }

	/* A dash tells the reader nothing on a card that is already tall. */
	.toplist .toplist-row .toplist-cell.is-empty { display: none; }

	.toplist-row .toplist-action { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
	.toplist-row .toplist-action .button { width: 100%; }
}

/* ---------------------------------------------------------------- filters - */

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 16px;
}
.filters-group { display: flex; flex-wrap: wrap; gap: 6px; }

.filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text-2);
	font-size: .88rem;
	font-weight: 600;
}
.filter-pill:hover { text-decoration: none; border-color: var(--text-3); color: var(--text); }
.filter-count { font-size: .76rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }

.filter-pill.is-current { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-pill.is-current .filter-count { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.filter-pill.is-trusted.is-current { background: var(--trusted); border-color: var(--trusted); color: #fff; }
.filter-pill.is-newcomer.is-current { background: var(--newcomer); border-color: var(--newcomer); color: #fff; }
.filter-pill.is-scam.is-current { background: var(--scam); border-color: var(--scam); color: #fff; }
.filter-pill.is-trusted.is-current .filter-count,
.filter-pill.is-newcomer.is-current .filter-count,
.filter-pill.is-scam.is-current .filter-count { color: rgba(255, 255, 255, .75); }

.filters-group.is-sort { margin-left: auto; gap: 2px; padding: 3px; background: var(--bg-sunk); border-radius: 999px; }
.filter-sort {
	padding: 7px 14px;
	border-radius: 999px;
	color: var(--text-2);
	font-size: .85rem;
	font-weight: 600;
}
.filter-sort:hover { text-decoration: none; color: var(--text); }
.filter-sort.is-current { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.filters-search input[type="search"] {
	width: 180px;
	padding: 9px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font: inherit;
	font-size: .88rem;
}

@media (max-width: 720px) {
	.filters-group.is-sort { margin-left: 0; overflow-x: auto; max-width: 100%; }
	.filters-search { flex: 1 0 100%; }
	.filters-search input[type="search"] { width: 100%; }
}

/* ------------------------------------------------------- home page blocks - */

.alert-grid,
.review-grid,
.news-grid,
.advisor-grid,
.compare-grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.alert-card a {
	display: grid;
	gap: 10px;
	height: 100%;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 3px solid var(--scam);
	border-radius: var(--radius);
	color: var(--text);
}
.alert-card a:hover { text-decoration: none; border-color: var(--scam); box-shadow: var(--shadow); }
.alert-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-card-name { font-weight: 700; }
.alert-card-why { color: var(--text-2); font-size: .86rem; }
.alert-card time { color: var(--text-3); font-size: .78rem; }

.review-card {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.review-card-broker { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.review-card-broker:hover { text-decoration: none; color: var(--brand); }
.review-card blockquote { margin: 0; color: var(--text-2); font-size: .92rem; }
.review-card blockquote p { margin: 0; }
.review-card-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: .78rem; }

.news-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.news-card-media img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.news-card-body { display: grid; gap: 8px; align-content: start; padding: 16px; }
.news-card-body h2, .news-card-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.news-card-body h2 a, .news-card-body h3 a { color: var(--text); }
.news-card-body h2 a:hover, .news-card-body h3 a:hover { color: var(--brand); }
.news-card-body p { margin: 0; color: var(--text-2); font-size: .88rem; }
.news-card-term { align-self: start; color: var(--brand); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.news-card-body time { color: var(--text-3); font-size: .78rem; }
.news-card-body .badge { justify-self: start; }

.advisor-card > * {
	display: grid;
	gap: 12px;
	height: 100%;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
}
.advisor-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.advisor-card-name { font-weight: 700; }
.advisor-card-figures { display: flex; gap: 18px; }
.figure { display: grid; }
.figure-value { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.figure-label { color: var(--text-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.advisor-card-type { color: var(--text-2); font-size: .84rem; }

.compare-card a {
	display: grid;
	gap: 8px;
	justify-items: start;
	height: 100%;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
}
.compare-card a:hover { text-decoration: none; border-color: var(--brand); }
.compare-card-head { display: flex; align-items: center; gap: 10px; }
.compare-card-name { font-weight: 700; }
.compare-card-deposit { color: var(--text-2); font-size: .84rem; }

/* `is-long`: reference copy that runs the full width of its container — a page,
   a section's intro, the home page's "How this rating works". It drops the card
   and sits directly on the background, because a page of text in a white box on
   a near-white background is a box for its own sake. Two columns once there is
   room, so full width does not mean a 1200px line.
   The card is kept only where `.prose` shares a row with the sidebar, on a
   review, where it is what separates the two columns. */
.prose.is-long {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.prose[data-collapsible] { position: relative; }
/* Full width — no measure cap on body copy anywhere. */

/* No multi-column text: a page of copy reads top-to-bottom in one column.
   Width is held by the measure on each block instead. */
.prose.is-clamped {
	max-height: 320px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
	mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
/* With the card gone, the rule is what separates this from the news grid
   above it — the same separator the closing copy on an archive uses. */
.is-longform .prose.is-long { border-top: 1px solid var(--line); padding-top: 28px; }
.is-longform [data-collapsible-toggle] { margin-top: 14px; }

/* ----------------------------------------------------------- review pages - */

.breadcrumbs { padding: 16px 0 0; font-size: .82rem; color: var(--text-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--text-2); }

.broker-hero {
	margin: 18px 0 0;
	padding: 26px 0 0;
}
.broker-hero .wrap {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 22px;
	position: relative;
	overflow: hidden;
}
.broker-hero .wrap::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--text-3);
}
.broker-hero.is-trusted .wrap::before { background: var(--trusted); }
.broker-hero.is-newcomer .wrap::before { background: var(--newcomer); }
.broker-hero.is-scam .wrap::before { background: var(--scam); }

.broker-hero-top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) auto auto;
	gap: 22px;
	align-items: center;
}
.broker-hero-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.broker-hero-identity .logo { width: 58px; height: 58px; flex-basis: 58px; }
.broker-hero-title h1 { margin: 0 0 6px; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
.broker-hero-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.broker-hero-domain { color: var(--text-3); font-size: .84rem; }

.broker-hero-scores { display: flex; gap: 26px; }
.score { display: grid; gap: 2px; }
.score-label { color: var(--text-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.score-value { font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.score a { font-size: .8rem; }

.broker-hero-actions { display: flex; flex-direction: column; gap: 8px; }

.broker-hero-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	margin: 22px -22px -22px;
	padding: 0;
	background: var(--line-soft);
	border-top: 1px solid var(--line);
}
.broker-hero-facts > div { padding: 14px 22px; background: var(--card-2); }
.broker-hero-facts dt { color: var(--text-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.broker-hero-facts dd { margin: 4px 0 0; font-weight: 650; font-size: .95rem; }

@media (max-width: 980px) {
	.broker-hero-top { grid-template-columns: 1fr; gap: 18px; }
	.broker-hero-actions { flex-direction: row; }
	.broker-hero-actions .button { flex: 1; }
}

.single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 36px;
	padding: 34px 0 10px;
	align-items: start;
}
.single.is-page .single-grid { grid-template-columns: minmax(0, 1fr); }

.single-aside { position: sticky; top: 86px; display: grid; gap: 18px; }

@media (max-width: 1040px) {
	.single-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.single-aside { position: static; }
}

.article-head { margin-bottom: 18px; }
.article-meta { display: flex; gap: 14px; color: var(--text-3); font-size: .84rem; }
.article-media { margin: 0 0 22px; }
.article-media img { border-radius: var(--radius); }

/* -------------------------------------------------------------- long copy - */

.prose {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 28px;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.75;
}
/* Pages run the full width of the grid, like every other long-form block. */
.single.is-page { padding-bottom: 20px; }
.single.is-page .prose + .reviews { margin-top: 34px; }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.32rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose p { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose img, .prose figure { margin: 1.4em 0; border-radius: var(--radius); }
.prose figure img { border-radius: var(--radius); }
.prose blockquote {
	margin: 1.4em 0;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--brand);
	color: var(--text-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--card-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .wp-block-spacer { display: none; }

.verdict {
	display: grid;
	gap: 10px;
	margin-top: 22px;
	padding: 20px 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--text-3);
	border-radius: var(--radius);
}
.verdict.is-trusted { border-left-color: var(--trusted); }
.verdict.is-newcomer { border-left-color: var(--newcomer); }
.verdict.is-scam { border-left-color: var(--scam); background: var(--scam-bg); }
.verdict-head { display: flex; align-items: center; gap: 12px; }
.verdict-head h2 { margin: 0; font-size: 1.1rem; }
.verdict p { margin: 0; }
.verdict-body { color: var(--text-2); font-size: .94rem; }
.verdict-body p:last-child { margin: 0; }

.single-terms { margin-top: 22px; }

/* ------------------------------------------------------------- fact sheet - */

.factsheet, .aside-picks {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.factsheet-group { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.factsheet-group:last-child { border-bottom: 0; }
.factsheet-group h2 {
	margin: 0 0 12px;
	color: var(--text-3);
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.factsheet-group dl { display: grid; gap: 10px; margin: 0; }
.factsheet-group dl > div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; align-items: baseline; }
.factsheet-group dt { color: var(--text-2); font-size: .85rem; }
.factsheet-group dd { margin: 0; font-size: .89rem; font-weight: 600; overflow-wrap: anywhere; }
.factsheet-group.is-features ul { display: flex; flex-wrap: wrap; gap: 6px; }
.factsheet-group.is-features li {
	padding: 5px 11px;
	background: var(--trusted-bg);
	border-radius: 999px;
	color: var(--trusted);
	font-size: .8rem;
	font-weight: 600;
}

.aside-picks { padding: 18px 20px; }
.aside-picks h2 { margin: 0 0 12px; font-size: 1rem; }
.aside-picks .button { width: 100%; margin-top: 14px; }

.picks { display: grid; gap: 12px; counter-reset: pick; }
.picks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.picks a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-weight: 600; font-size: .9rem; }
.picks a:hover { color: var(--brand); text-decoration: none; }
.picks a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picks .logo { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
.picks .rating-stars { width: 62px; height: 11px; -webkit-mask-size: 12.4px 11px; mask-size: 12.4px 11px; }
.picks .rating-value { font-size: .78rem; }

/* ---------------------------------------------------------------- reviews - */

.single-reviews { margin-top: 34px; }

.reviews {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 28px;
}
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.reviews-head h2 { margin: 0; font-size: 1.3rem; }
.reviews-score { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .85rem; }

.review-list { display: grid; gap: 14px; }
.review-list .children { display: grid; gap: 14px; margin: 14px 0 0 24px; }

.review { padding: 16px 18px; background: var(--card-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review-author { font-weight: 700; font-size: .92rem; }
.review-head time { color: var(--text-3); font-size: .78rem; margin-left: auto; }
.review-text { color: var(--text-2); font-size: .94rem; }
.review-text p:last-child { margin: 0; }
.review-foot { margin-top: 8px; font-size: .82rem; }
.review .notice { margin-top: 10px; }

.review-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.review-form h3, .comment-reply-title { font-size: 1.1rem; margin-bottom: 6px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: .84rem; font-weight: 600; color: var(--text-2); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	font: inherit;
	font-size: .94rem;
}
.comment-form textarea { resize: vertical; min-height: 130px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); }
.comment-form .form-submit { margin: 0; }
.comment-form .submit {
	padding: 11px 24px;
	background: var(--brand);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-weight: 650;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--brand-ink); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .comment-notes, .comment-form .logged-in-as { color: var(--text-3); font-size: .84rem; }

.comment-form-author, .comment-form-email, .comment-form-url { margin: 0; }

.rating-input { margin: 0; padding: 0; border: 0; }
.rating-input legend { margin-bottom: 6px; padding: 0; font-size: .84rem; font-weight: 600; color: var(--text-2); }
.rating-input-scale { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input-scale label {
	width: 28px; height: 28px;
	margin: 0;
	cursor: pointer;
	background: var(--line);
	-webkit-mask: center / contain no-repeat
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.2 4.9 5.3.5-4 3.6 1.2 5.2L8 11.5 3.3 14.2l1.2-5.2-4-3.6 5.3-.5z'/%3E%3C/svg%3E");
	mask: center / contain no-repeat
		url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.2 4.9 5.3.5-4 3.6 1.2 5.2L8 11.5 3.3 14.2l1.2-5.2-4-3.6 5.3-.5z'/%3E%3C/svg%3E");
	transition: background-color .12s;
}
.rating-input-scale label:hover,
.rating-input-scale label:hover ~ label,
.rating-input-scale input:checked ~ label,
.rating-input-scale input:checked + label { background: var(--star); }
.rating-input-scale input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --------------------------------------------------------------- archives - */

.archive-head { padding: 26px 0 0; }
.archive-head h1 { margin-bottom: .3em; }
/* A one-line count under the heading is supporting text and stays muted. */
.archive-head > .wrap > p { color: var(--text-2); }

/* A short archive description is a line of supporting text, not an article: it
   sits on the background. Anything longer is `.prose.is-long` — the same card
   the pages and the home page's reference copy use. */
.archive-intro { color: var(--text-2); }
.archive-intro p:last-child { margin: 0; }

.archive-head .prose { margin-top: 18px; }
.archive-head [data-collapsible-toggle] { margin: 14px 0 4px; }

/* The copy that closes a section, under the table. */
.archive-outro {
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	color: var(--text);
}
.archive-outro p:last-child { margin: 0; }

.archive-search { margin-top: 14px; max-width: 420px; }
.archive-search .searchform input[type="search"] { flex: 1; width: auto; }

.result-list { display: grid; gap: 14px; }
.result { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.result h3 { margin: 0 0 4px; font-size: 1.02rem; }
.result p { margin: 0; color: var(--text-2); font-size: .9rem; }

.pagination { margin-top: 24px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination .current, .pagination .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-size: .9rem;
	font-weight: 600;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination .dots { border-color: transparent; background: transparent; }

.page-links { display: flex; gap: 8px; margin-top: 18px; font-size: .9rem; }

.loadmore {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin: 30px 0 34px;
}
.loadmore[hidden] { display: none; }
/* `.button` sets display, so it has to opt back out of the hidden attribute. */
.button[hidden] { display: none; }

/* While a filter or sort is being fetched the list stays put and dims, rather
   than collapsing and throwing the page around under the reader. */
.is-toplist.is-loading .toplist { opacity: .45; pointer-events: none; transition: opacity .15s; }
.is-toplist.is-loading .filters { pointer-events: none; }
.loadmore .button {
	min-width: 280px;
	padding: 16px 30px;
	font-size: 1rem;
	box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 85%, transparent);
}
.loadmore .button .icon { transition: transform .15s; }
.loadmore .button:hover .icon { transform: translateY(2px); }
.loadmore .button[disabled] { opacity: .65; cursor: progress; transform: none; }
.loadmore-count { color: var(--text-3); font-size: .85rem; }
.loadmore-count p { margin: 0; }
.pagination[hidden] { display: none; }

/* ----------------------------------------------------------------- footer - */

.site-footer {
	margin-top: 46px;
	padding: 0 0 26px;
	background: var(--brand-ink);
	color: rgba(255, 255, 255, .72);
	font-size: .9rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr) 0.9fr;
	gap: 34px;
	padding: 40px 0 30px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer h2 {
	margin: 0 0 14px;
	color: #fff;
	font-size: .76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
}
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 8px; }

/* Editors' picks: one full-width band above the columns, the way the site it
   replaces had it — but the brokers and their scores are queried, not typed. */
.footer-picks {
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-picks h2 { margin-bottom: 12px; }

.picks-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px 24px;
}
.picks-strip a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: #fff;
}
.picks-strip a:hover { text-decoration: none; }
.picks-strip a:hover .picks-strip-name { text-decoration: underline; }
.picks-strip .logo {
	width: 34px; height: 34px; flex-basis: 34px;
	background: rgba(255, 255, 255, .92);
	border-color: rgba(255, 255, 255, .14);
}
.picks-strip-text { display: grid; min-width: 0; }
.picks-strip-name {
	font-size: .88rem;
	font-weight: 600;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.picks-strip-score {
	color: #6ee7b7;
	font-size: .84rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.picks-strip .rating-stars {
	width: 62px; height: 11px;
	-webkit-mask-size: 12.4px 11px; mask-size: 12.4px 11px;
	background: linear-gradient(90deg, var(--star) var(--fill), rgba(255, 255, 255, .2) var(--fill));
}
.picks-strip .rating-value { color: rgba(255, 255, 255, .7); font-size: .78rem; }

.footer-stats dl { display: grid; gap: 12px; margin: 0; }
.footer-stats dt { color: rgba(255, 255, 255, .55); font-size: .78rem; }
.footer-stats dd { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* The legal notice has to be readable, not merely present: at .5 alpha on this
   navy it fell to roughly 4:1 and disappeared. Full width — it is a wall of
   text either way, and a narrow column only makes it taller. */
.footer-legal { padding-top: 24px; color: rgba(255, 255, 255, .78); font-size: .8rem; line-height: 1.65; }
/* Only the copyright line, which is the one direct child; the notice above it
   lives inside .footer-note and keeps the brighter inherited colour. */
.footer-legal > p { margin: 18px 0 0; color: rgba(255, 255, 255, .58); }
.footer-note p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- page sections - */

.page-sections { padding-bottom: 28px; }
.page-sections > * + * { margin-top: 34px; }

.page-intro h2 { margin-bottom: .6em; }
.page-intro .prose { padding: 0; }

.page-cards > h2 { margin-bottom: 20px; }

/* Two cards per row, as on the page this replaces; one on a phone. */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px 48px;
}

@media (min-width: 880px) {
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card { display: flex; align-items: flex-start; gap: 18px; }
.card-media {
	flex: 0 0 48px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
}
.card-media img { width: 48px; height: 48px; object-fit: contain; }
.card-body { min-width: 0; }
.card-body h3 { margin: 0 0 .35em; font-size: 1.12rem; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.6; }

.page-callout {
	padding: 22px 26px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.page-callout h2 { margin: 0 0 .4em; font-size: 1.22rem; }
.page-callout p:last-child { margin: 0; }
.page-callout p { color: var(--text-2); }

/* Authors are people: a round portrait and a little more room per card. */
.is-authors .card-media {
	flex-basis: 64px;
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--card-2);
	border: 1px solid var(--line-soft);
	overflow: hidden;
}
.is-authors .card-media img { width: 100%; height: 100%; padding: 4px; }

@media (max-width: 560px) {
	.card-grid { gap: 22px; }
	.card { gap: 14px; }
}

/* ---------------------------------- closing bands (above the footer) - */

.featured { padding: 10px 0 4px; }
.featured-label {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
}
.featured-label::before,
.featured-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}
.featured-label h2 {
	margin: 0;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	white-space: nowrap;
}

.featured-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px 44px;
}
.featured-grid h3 { margin: 0 0 .5em; font-size: 1.32rem; line-height: 1.25; }
.featured-grid h3 a { color: var(--brand); }
.featured-grid p { margin: 0; color: var(--text-2); font-size: .94rem; }

.picks-band { padding: 26px 0 34px; }
.picks-band .wrap { padding-top: 22px; border-top: 1px solid var(--line); }
.picks-band .picks-strip a { color: var(--text); }
.picks-band .picks-strip .logo { background: var(--card); border-color: var(--line-soft); }
.picks-band .picks-strip-score { color: var(--brand); }
.picks-band .picks-strip .rating-stars { background: linear-gradient(90deg, var(--star) var(--fill), var(--line) var(--fill)); }
.picks-band .picks-strip .rating-value { color: var(--text-3); }

@media (min-width: 880px) {
	.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Expert advisor scores run 0-10, so they are a number rather than stars. */
.toplist-score.is-number { font-weight: 700; font-variant-numeric: tabular-nums; }
.toplist-cell.is-mark { font-weight: 700; }
.toplist-cell.is-mark.is-yes { color: var(--trusted); }
.toplist-cell.is-mark.is-no { color: var(--text-3); }

/* ------------------------------------------- category archive + sidebar - */

.archive-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
	padding: 20px 0 10px;
	align-items: start;
}
.archive-head.is-inline { padding: 0; }
.archive-main .section.is-toplist { padding: 22px 0 0; }

.archive-aside { display: grid; gap: 22px; }

.cat-list ul { display: grid; gap: 6px; }
.cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-size: .9rem;
}
.cat-list a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat-count {
	flex: none;
	min-width: 34px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: .76rem;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.cat-list .is-current a { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-list .is-current .cat-count { background: var(--scam); }

.ea-widget {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px 16px;
}
.ea-widget-head,
.ea-widget-rows li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) 62px 62px;
	align-items: center;
	gap: 8px;
}
.ea-widget-head {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line-soft);
	color: var(--text-3);
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.ea-widget-rows li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.ea-widget-rows li:last-child { border-bottom: 0; }
.ea-widget-rank {
	display: grid;
	place-items: center;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-size: .74rem;
	font-weight: 700;
}
.ea-widget-name { color: var(--text); font-weight: 600; }
.ea-widget-cell { color: var(--text-2); }
.ea-widget-yield { color: var(--brand); font-weight: 700; }
.ea-widget-actions { display: grid; gap: 8px; margin-top: 14px; }
.ea-widget-actions .button { width: 100%; }

@media (min-width: 1000px) {
	.archive-grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.archive-aside { position: sticky; top: 86px; }
}
