/*
Theme Name: Bankr
Description: Lightweight theme for Bankr.nl — replaces Astra + Elementor. Content is core blocks.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: bankr
*/

:root {
	--ink: #0b1324;
	--text: #334155;
	--muted: #64748b;
	--brand: #0e7fc4;
	--brand-strong: #0a6aa6;
	--brand-soft: #e8f4fc;
	--accent: #16a34a;
	--accent-strong: #15803d;
	--danger: #dc2626;
	--amber: #f59e0b;
	--amber-soft: #fffbeb;
	--amber-line: #fde68a;
	--line: #e2e8f0;
	--surface: #f8fafc;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgb(15 23 42 / .04), 0 4px 16px rgb(15 23 42 / .06);
	--shadow-lg: 0 2px 4px rgb(15 23 42 / .04), 0 12px 32px rgb(15 23 42 / .10);
	--content: 760px;
	--wide: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font: 400 1.0625rem/1.7 var(--font);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; letter-spacing: -0.015em; margin: 2em 0 .6em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1.15em; text-wrap: pretty; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .85);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgb(226 232 240 / .8);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand__logo { height: 36px; width: auto; display: block; }
.brand__word { font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.03em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav__list a {
	display: block; padding: 8px 12px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { background: var(--surface); color: var(--brand); }
.site-nav__list .sub-menu { display: none; }
.rating-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
	border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
	color: var(--ink); font-size: .8125rem; font-weight: 600; background: #fff;
}
.rating-pill small { color: var(--muted); font-weight: 500; }
.rating-pill__stars { color: var(--amber); letter-spacing: 1px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
		background: #fff; cursor: pointer; position: relative;
	}
	.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
		display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s;
	}
	.nav-toggle span:first-child::before, .nav-toggle span:first-child::after { content: ""; position: absolute; left: 0; }
	.nav-toggle span:first-child::before { top: -6px; }
	.nav-toggle span:first-child::after { top: 6px; }
	.nav-open .nav-toggle span:first-child { background: transparent; }
	.nav-open .nav-toggle span:first-child::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { padding: 12px; border-radius: 10px; font-size: 1rem; }
	.rating-pill { align-self: flex-start; }
}

/* ---------- Layout ---------- */
.site-main { min-height: 60vh; }
.article__header, .archive { max-width: var(--wide); margin: 0 auto; padding: 32px var(--gutter) 0; }
.article__header { max-width: calc(var(--content) + 2 * var(--gutter)); }
@media (min-width: 1100px) {
	.article__header { max-width: var(--wide); }
	.article__header > * { max-width: var(--content); }
}
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.article__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .9375rem; line-height: 1.4; }
.byline__avatar, .byline img { border-radius: 50%; width: 44px; height: 44px; }
.byline__name { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.byline__date { color: var(--muted); font-size: .875rem; }

.article__layout {
	max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) 0;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px;
}
.article__body { max-width: var(--content); width: 100%; margin: 0 auto; min-width: 0; }
.article__aside { display: none; }
@media (min-width: 1100px) {
	.article__layout { grid-template-columns: minmax(0, var(--content)) 280px; justify-content: space-between; }
	.article__body { margin: 0; }
	.article__aside { display: block; }
	.toc--inline { display: none; }
}

/* ---------- TOC ---------- */
.toc { font-size: .9375rem; line-height: 1.45; }
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a {
	display: grid; grid-template-columns: 28px 1fr; padding: 7px 10px; border-radius: 8px;
	color: var(--text); text-decoration: none;
}
.toc__list a::before { content: counter(toc) "."; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc__list a:hover { background: var(--surface); color: var(--ink); }
.toc__list a.is-active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.toc--aside { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: 4px 0 4px 20px; border-left: 1px solid var(--line); }
.toc__title { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 8px 10px; }
.toc--inline { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 32px; }
.toc--inline summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary span { color: var(--muted); font-weight: 500; font-size: .875rem; }
.toc--inline summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 12px; transition: transform .2s; }
.toc--inline[open] summary::after { transform: rotate(-135deg); }
.toc--inline .toc__list { padding: 0 8px 12px; }

/* ---------- Content ---------- */
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); margin-top: 2.2em; }
.entry-content h3 { font-size: 1.3125rem; margin-top: 1.8em; }
.entry-content h4 { font-size: 1.125rem; }
.entry-content strong { color: var(--ink); font-weight: 650; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--brand); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); font-size: 1.125em; }
.entry-content figure { margin: 1.8em 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figcaption { font-size: .875rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.entry-content .wp-block-embed__wrapper iframe, .entry-content iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }

/* Separator: the old coin dividers become quiet rules */
.entry-content hr, .wp-block-separator {
	border: 0; height: 1px; background: var(--line); margin: 2.5em auto; width: 100%; opacity: 1;
}

/* Tables */
.wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; min-width: 520px; }
.wp-block-table th, .wp-block-table thead td { background: var(--surface); color: var(--ink); font-weight: 650; text-align: left; }
.wp-block-table th, .wp-block-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr:hover td { background: #fbfdff; }
.wp-block-table td:first-child { font-weight: 600; color: var(--ink); }

/* Buttons: affiliate CTAs */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 12px; border: 0;
	background: var(--accent); color: #fff; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
	box-shadow: 0 1px 2px rgb(22 163 74 / .25), 0 6px 18px rgb(22 163 74 / .22);
	transition: transform .15s, background-color .15s, box-shadow .15s;
}
.wp-block-button__link::after { content: "→"; transition: transform .15s; }
.wp-block-button__link:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.wp-block-buttons.is-content-justification-stretch .wp-block-button, .wp-block-button.has-custom-width { flex: 1 1 100%; }
.wp-block-buttons.is-content-justification-stretch .wp-block-button__link { width: 100%; }

/* Check / cross lists */
.entry-content ul.is-style-checks, .entry-content ul.is-style-crosses { list-style: none; padding-left: 0; }
.is-style-checks li, .is-style-crosses li { position: relative; padding-left: 34px; margin: .55em 0; }
.is-style-checks li::before, .is-style-crosses li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--accent) no-repeat center / 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.is-style-crosses li::before {
	background-color: var(--danger);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* Groups */
.wp-block-group.is-style-highlight, .wp-block-group.is-style-card {
	border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin: 2em 0;
}
.wp-block-group.is-style-highlight { background: var(--amber-soft); border: 1px solid var(--amber-line); }
.wp-block-group.is-style-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.wp-block-group.is-style-highlight > :last-child, .wp-block-group.is-style-card > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-highlight > :first-child, .wp-block-group.is-style-card > :first-child { margin-top: 0; }
.wp-block-group.is-style-highlight ol { padding-left: 1.6em; }
.wp-block-group.is-style-highlight li { margin: .6em 0; }

/* Columns (pros/cons etc.) */
.wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 1.8em 0; }
.wp-block-column > :first-child { margin-top: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-columns .coin-widget { margin: 0; height: 100%; }
.wp-block-group.is-style-card > .wp-block-columns { margin: 0; }
.wp-block-group.is-style-card .coin-widget { box-shadow: none; }

/* Timeline */
.is-style-timeline { position: relative; padding-left: 28px; margin: 2em 0; }
.is-style-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.is-style-timeline > h3, .is-style-timeline > h4 { position: relative; margin-top: 1.4em; font-size: 1.0625rem; }
.is-style-timeline > h3::before, .is-style-timeline > h4::before {
	content: ""; position: absolute; left: -27px; top: .3em; width: 14px; height: 14px; border-radius: 50%;
	background: #fff; border: 3px solid var(--brand);
}
.is-style-timeline > h3:first-child, .is-style-timeline > h4:first-child { margin-top: 0; }

/* FAQ / accordions / tabs */
.wp-block-details {
	border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; background: #fff;
	transition: box-shadow .2s, border-color .2s;
}
.wp-block-details[open] { border-color: #cbd5e1; box-shadow: var(--shadow); }
.wp-block-details summary {
	cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
	font-weight: 600; color: var(--ink); line-height: 1.45;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
	background: var(--brand-soft) no-repeat center / 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7fc4' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { padding: 0 20px; }
.wp-block-details > :last-child { padding-bottom: 6px; }

/* Rating */
.bankr-rating { display: inline-flex; align-items: center; gap: 8px; margin: .4em 0 1em; font-weight: 650; color: var(--ink); }
.bankr-rating__stars { --pct: 100%; position: relative; display: inline-block; font-size: 1.25rem; letter-spacing: 2px; line-height: 1; color: #e2e8f0; }
.bankr-rating__stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: var(--amber); white-space: nowrap; }

/* Icon box → card */
.bankr-iconbox { display: block; }
.bankr-iconbox h3, .bankr-iconbox h4 { margin-top: 0; }

/* ---------- Crypto widgets ---------- */
.coin-widget { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; margin: 1.6em 0; box-shadow: var(--shadow); }
.coin-head { display: flex; align-items: center; gap: 14px; }
.coin-head img { border-radius: 50%; flex: none; }
.coin-head__name { display: block; font-weight: 650; color: var(--ink); line-height: 1.3; }
.coin-head__name small, .coin-name small { color: var(--muted); font-weight: 500; }
.coin-head__price { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.coin-head__price b { font-size: 1.375rem; color: var(--ink); letter-spacing: -0.01em; }
.coin-change { font-size: .8125rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coin-change--up { color: #15803d; background: #dcfce7; }
.coin-change--down { color: #b91c1c; background: #fee2e2; }
.spark { display: block; width: 100%; height: 48px; margin-top: 12px; }
.spark__line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark--up .spark__line { stroke: var(--accent); }
.spark--down .spark__line { stroke: var(--danger); }
.spark__area { opacity: .12; }
.spark--up .spark__area { fill: var(--accent); }
.spark--down .spark__area { fill: var(--danger); }
.coin-chart__plot .spark { height: clamp(140px, 22vw, 200px); margin-top: 18px; }
.coin-chart figcaption { font-size: .8125rem; color: var(--muted); text-align: left; margin-top: 10px; }
.coin-converter__title { font-weight: 650; color: var(--ink); margin: 0 0 12px; }
.coin-converter__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.coin-converter label span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.coin-converter input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface); }
.coin-converter input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.coin-converter__eq { padding-bottom: 12px; color: var(--muted); }
@media (max-width: 520px) { .coin-converter__row { grid-template-columns: 1fr; } .coin-converter__eq { display: none; } }
.coin-label { display: inline-flex; gap: 8px; align-items: baseline; }
.coin-table { margin: 2em 0; }
.coin-table figcaption { font-weight: 700; color: var(--ink); margin-bottom: 10px; text-align: left; font-size: 1.0625rem; }
.coin-table__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.coin-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.coin-table th { background: var(--surface); text-align: left; font-weight: 650; color: var(--ink); padding: 10px 14px; white-space: nowrap; }
.coin-table td { padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.coin-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.coin-name img { border-radius: 50%; }
.coin-table__spark .spark { width: 120px; height: 36px; margin: 0; }
@media (max-width: 720px) { .coin-table .hide-sm { display: none; } }

/* ---------- Author box ---------- */
.author-box {
	display: flex; gap: 18px; align-items: flex-start; margin: 48px 0 0; padding: 24px;
	border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box__label { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.author-box__name { font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
.author-box__bio { margin: 6px 0 0; font-size: .9375rem; }

/* ---------- Cards / archives ---------- */
.related { max-width: var(--wide); margin: 72px auto 0; padding: 0 var(--gutter); }
.related__title { font-size: 1.5rem; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
	display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-soft), #f1f5f9); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.card__placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 800; color: color-mix(in srgb, var(--brand) 35%, transparent); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.card__title { font-size: 1.125rem; margin: 0; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__excerpt { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.archive__header { margin-bottom: 32px; max-width: var(--content); }
.archive__eyebrow { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.archive__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.archive__desc { color: var(--muted); }
.archive__author { display: flex; gap: 20px; align-items: center; }
.archive__author img { border-radius: 50%; }
.pagination { margin: 48px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9375rem; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.notfound { text-align: center; max-width: 640px; padding-top: 80px; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.search-submit { padding: 12px 20px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: var(--ink); color: #cbd5e1; font-size: .9375rem; line-height: 1.65; }
.site-footer a { color: #fff; }
.site-footer__grid {
	max-width: var(--wide); margin: 0 auto; padding: 56px var(--gutter) 40px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; letter-spacing: 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin: 6px 0; }
.site-footer__links a { color: #cbd5e1; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.rg-badge span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 800; }
.site-footer__bottom {
	max-width: var(--wide); margin: 0 auto; padding: 20px var(--gutter) 32px; border-top: 1px solid rgb(255 255 255 / .1);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8125rem; color: #94a3b8;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal a { color: #94a3b8; text-decoration: none; }
.site-footer__legal a:hover { color: #fff; }

/* Editor parity */
.editor-styles-wrapper { font-family: var(--font); color: var(--text); }
