/* Readabler blog — templates of the "Blog (WordPress)" design. */
:root { --rdb-header-bg: #fff; --rdb-body: #2A3550; }
body { background: #fff; }
.rdb-main { display: block; }

/* ---------- Shared pieces ---------- */
.rdb-kicker {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rdb-blue);
}
.rdb-label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rdb-subtle);
}
.rdb-display {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 62px;
	line-height: 1.03;
	letter-spacing: -0.035em;
	color: var(--rdb-ink);
}
.rdb-display--md { font-size: 54px; line-height: 1.05; }
.rdb-display--sm { font-size: 46px; line-height: 1.06; letter-spacing: -0.03em; }
.rdb-display--post { font-size: 54px; line-height: 1.06; letter-spacing: -0.03em; }
.rdb-section-title {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 32px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--rdb-ink);
}
.rdb-more { font-weight: 600; color: var(--rdb-blue-dark); text-decoration: none; }
.rdb-more:hover { color: var(--rdb-ink); text-decoration: underline; }
.rdb-hash { color: var(--rdb-blue); }

.rdb-chip {
	align-self: flex-start;
	display: inline-flex;
	background: var(--chip-bg, #E3EDFF);
	color: var(--chip-fg, #1A5FD9);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.4;
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 8px;
}
.rdb-chip:hover { color: var(--chip-fg, #1A5FD9); box-shadow: inset 0 0 0 1px currentColor; }
.rdb-chip--lg { font-size: 13px; }

.rdb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 14px;
	color: var(--rdb-subtle);
}

.rdb-thumb {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	background: var(--rdb-tint);
	aspect-ratio: 3 / 2;
}
.rdb-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.rdb-thumb:hover img { transform: scale(1.03); }
.rdb-thumb__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #EAF1FE, #F3F7FD);
}
.rdb-thumb__placeholder img { width: 48px; height: 48px; opacity: .5; object-fit: contain; }

.rdb-crumbs { font-size: 14px; color: var(--rdb-subtle); }
.rdb-crumbs a { color: var(--rdb-muted); }
.rdb-crumbs a:hover { color: var(--rdb-ink); }

/* Search field */
.rdb-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--rdb-line-strong);
	border-radius: 14px;
	padding: 6px 6px 6px 16px;
	color: var(--rdb-subtle);
}
.rdb-search:focus-within { border-color: var(--rdb-blue); box-shadow: 0 0 0 3px rgba(36, 110, 243, .18); }
.rdb-search svg { flex: none; }
.rdb-search input {
	flex: 1;
	min-width: 0;
	min-height: 40px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	color: var(--rdb-ink);
}
.rdb-search input:focus { outline: none; }
.rdb-search button {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--rdb-blue);
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	cursor: pointer;
}
.rdb-search button:hover { background: var(--rdb-blue-dark); }
.rdb-search--lg {
	max-width: 760px;
	border-radius: 18px;
	padding: 8px 8px 8px 20px;
	box-shadow: 0 14px 40px rgba(14, 26, 51, .07);
}
.rdb-search--lg input { font-size: 18px; min-height: 52px; }
.rdb-search--lg button { font-size: 16px; border-radius: 12px; padding: 14px 22px; }

/* Filter buttons (categories, tags, search filters) */
.rdb-filters ul,
.rdb-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.rdb-filter {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 10px;
	border: 1px solid var(--rdb-line-strong);
	background: #fff;
	color: var(--rdb-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.rdb-filter:hover { border-color: var(--rdb-ink); color: var(--rdb-ink); }
.rdb-filter[aria-current] { background: var(--rdb-ink); border-color: var(--rdb-ink); color: #fff; }
.rdb-filter__count { opacity: .6; font-weight: 500; }
.rdb-tags__hash { opacity: .55; margin-right: 1px; }

/* Pagination */
.rdb-pager { display: flex; justify-content: center; margin-top: 56px; }
.rdb-pager--start { justify-content: flex-start; }
.rdb-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rdb-pager .page-numbers {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 12px;
	border: 1px solid var(--rdb-line-strong);
	background: #fff;
	color: var(--rdb-ink);
	font-weight: 600;
	text-decoration: none;
}
.rdb-pager a.page-numbers:hover { border-color: var(--rdb-ink); }
.rdb-pager .page-numbers.current { background: var(--rdb-ink); border-color: var(--rdb-ink); color: #fff; font-weight: 700; }
.rdb-pager .page-numbers.dots { border: 0; min-width: 24px; padding: 0; }

/* Buttons used on blue */
.rdb-btn--white { background: #fff; color: var(--rdb-ink); font-weight: 700; }
.rdb-btn--white:hover { background: #EAF1FF; color: var(--rdb-ink); }

/* ---------- Blog home ---------- */
.rdb-home-hero { padding: 48px 0 80px; }
.rdb-home-hero__top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.rdb-home-hero__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.rdb-home-hero__row .rdb-display { max-width: 760px; }
.rdb-home-hero__row .rdb-search { max-width: 380px; }
.rdb-home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.rdb-featured { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rdb-featured__thumb { border-radius: 28px; aspect-ratio: 16 / 10; }
.rdb-featured__label { margin: 0; display: flex; gap: 10px; align-items: center; }
.rdb-featured__label .rdb-label { font-size: 12px; }
.rdb-featured__title {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 36px;
	line-height: 1.12;
	letter-spacing: -0.02em;
}
.rdb-featured__title a,
.rdb-pick__title a,
.rdb-row__title a,
.rdb-card__title a { color: var(--rdb-ink); text-decoration: none; }
.rdb-featured__title a:hover,
.rdb-pick__title a:hover,
.rdb-row__title a:hover,
.rdb-card__title a:hover { color: var(--rdb-blue-dark); }
.rdb-featured__text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rdb-muted); }

.rdb-picks { min-width: 0; }
.rdb-picks .rdb-box__title { margin-bottom: 4px; }
.rdb-pick { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--rdb-line); }
.rdb-pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rdb-pick__title {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: -0.015em;
}
.rdb-pick__thumb { flex: none; width: 96px; border-radius: 14px; aspect-ratio: 1; }
.rdb-picks .rdb-more { display: inline-flex; margin-top: 20px; }

.rdb-topics { padding: 0 0 88px; }
.rdb-topics .rdb-section-title { margin-bottom: 24px; }
.rdb-topics__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rdb-topic {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border-radius: 22px;
	background: var(--chip-bg);
	color: var(--rdb-ink);
	text-decoration: none;
	min-width: 0;
	transition: transform .2s ease, box-shadow .2s ease;
}
.rdb-topic:hover { color: var(--rdb-ink); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 26, 51, .08); }
.rdb-topic__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #fff;
	color: var(--chip-fg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.rdb-topic__name { font-family: var(--rdb-font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.rdb-topic__desc { font-size: 14px; line-height: 1.5; color: var(--rdb-muted); }
.rdb-topic__count { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--chip-fg); }

.rdb-latest { padding: 0 0 88px; }
.rdb-band + .rdb-latest { padding-top: 56px; }
.rdb-latest__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.rdb-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }

/* Rows and cards */
.rdb-row { display: flex; gap: 24px; align-items: center; min-width: 0; }
.rdb-row__thumb { flex: none; width: 220px; border-radius: 18px; aspect-ratio: 4 / 3; }
.rdb-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rdb-row__title {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.015em;
}
.rdb-row__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rdb-muted); }
.rdb-row--wide {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	padding: 28px 0;
	border-top: 1px solid var(--rdb-line);
}
.rdb-row--wide .rdb-row__thumb { width: auto; aspect-ratio: 3 / 2; }
.rdb-row--wide .rdb-row__title { font-size: 23px; line-height: 1.22; }
.rdb-row--wide .rdb-row__text { font-size: 16px; }
.rdb-row mark { background: #FFF1B8; color: inherit; border-radius: 4px; padding: 0 2px; }

.rdb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.rdb-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rdb-card__title {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.015em;
}
.rdb-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rdb-muted); }

/* Newsletter */
.rdb-news-wrap { padding: 0 0 96px; }
.rdb-news {
	border-radius: 32px;
	padding: 48px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
}
.rdb-news--light { background: var(--rdb-tint); }
.rdb-news--dark { background: var(--rdb-ink); color: #fff; }
.rdb-news__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rdb-news__title {
	margin: 0;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 32px;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: inherit;
}
.rdb-news--light .rdb-news__title { color: var(--rdb-ink); }
.rdb-news__text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--rdb-muted); }
.rdb-news--dark .rdb-news__text p { color: #C5CBD6; }
.rdb-news__form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rdb-news__form input {
	flex: 1 1 220px;
	min-width: 0;
	min-height: 52px;
	padding: 0 18px;
	border-radius: 14px;
	border: 1px solid var(--rdb-line-strong);
	background: #fff;
	color: var(--rdb-ink);
	font: inherit;
	font-size: 16px;
}
.rdb-news--dark .rdb-news__form input { border-color: #3A4766; background: #16223D; color: #fff; }
.rdb-news--dark .rdb-news__form input::placeholder { color: #8C97AE; }
.rdb-news--dark .rdb-btn--primary { box-shadow: none; }

/* ---------- Tinted header band (archives, author, page, search) ---------- */
.rdb-band { background: var(--rdb-tint); padding: 40px 0 48px; }
.rdb-band__inner { display: flex; flex-direction: column; gap: 24px; }
.rdb-band__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.rdb-band__text { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.rdb-band__text--wide { max-width: 860px; gap: 16px; }
.rdb-band__lead,
.rdb-band__lead p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--rdb-muted); }
.rdb-band--page .rdb-band__lead { font-size: 21px; }
.rdb-band--page { padding-bottom: 56px; }
.rdb-band__related { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rdb-band__related .rdb-small { font-weight: 600; color: var(--rdb-muted); }

/* Archive list + sidebar */
.rdb-archive { padding: 32px 0 96px; }
.rdb-archive__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.rdb-archive__main { min-width: 0; }
.rdb-archive__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; }
.rdb-list { border-bottom: 1px solid var(--rdb-line); }
.rdb-archive__aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }

.rdb-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--rdb-muted); }
.rdb-sort select {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--rdb-ink);
	min-height: 40px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid var(--rdb-line-strong);
	background: #fff;
}
.rdb-js .rdb-sort__go { display: none; }
.rdb-sort__go { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rdb-line-strong); background: #fff; cursor: pointer; }

.rdb-box { padding: 24px; border-radius: 24px; border: 1px solid var(--rdb-line); }
.rdb-box--tint { background: var(--rdb-tint); border-color: transparent; }
.rdb-box__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rdb-subtle);
}
.rdb-box--blue { background: var(--rdb-blue); border-color: transparent; color: #fff; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.rdb-box--blue img { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.rdb-box__heading { margin: 0; font-family: var(--rdb-font-display); font-weight: 800; font-size: 24px; line-height: 1.2; color: #fff; }
.rdb-box--blue p { margin: 0; font-size: 15px; line-height: 1.55; color: #DCE8FF; }
.rdb-box--blue .rdb-btn { align-self: flex-start; }
.rdb-popular { list-style: none; margin: 0; padding: 0; }
.rdb-popular li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rdb-line); }
.rdb-popular__n { font-family: var(--rdb-font-display); font-weight: 800; font-size: 22px; color: #C9D6EE; line-height: 1; min-width: 16px; }
.rdb-popular a { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--rdb-ink); text-decoration: none; }
.rdb-popular a:hover { color: var(--rdb-blue-dark); }
.rdb-tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--rdb-muted); }
.rdb-tips strong { color: var(--rdb-ink); }
.rdb-tips--lg { font-size: 17px; gap: 10px; padding-left: 20px; }

/* ---------- Single post ---------- */
.rdb-post__head { padding: 40px 0; }
.rdb-post__head .rdb-crumbs { margin-bottom: 28px; }
.rdb-post__intro { max-width: 880px; display: flex; flex-direction: column; gap: 20px; }
.rdb-post__lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--rdb-muted); }
.rdb-byline { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.rdb-byline__text { display: flex; flex-direction: column; }
.rdb-byline__name { font-size: 15px; font-weight: 700; color: var(--rdb-ink); text-decoration: none; }
.rdb-byline__name:hover { color: var(--rdb-blue-dark); text-decoration: underline; }

.rdb-avatar {
	position: relative;
	display: inline-flex;
	flex: none;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #5E9BFF, #1550C9);
	color: #fff;
	align-items: center;
	justify-content: center;
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: calc(var(--size) * .36);
	letter-spacing: -0.03em;
}
.rdb-avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.rdb-post__cover { margin: 0 auto; }
.rdb-post__cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 28px; background: var(--rdb-tint); }
.rdb-post__cover figcaption { margin-top: 10px; font-size: 14px; color: var(--rdb-subtle); }
.rdb-post__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 720px);
	justify-content: center;
	gap: 80px;
	padding-top: 56px;
	padding-bottom: 72px;
}
.rdb-post__sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.rdb-post__sticky .rdb-box__title { margin: 16px 0 6px; font-size: 12px; }
.rdb-post__sticky nav .rdb-box__title { margin-top: 0; }
.rdb-post__body { min-width: 0; }

.rdb-toc { list-style: none; margin: 0; padding: 0; }
.rdb-toc a {
	display: block;
	padding: 8px 12px;
	border-left: 2px solid var(--rdb-line);
	color: var(--rdb-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}
.rdb-toc a:hover { color: var(--rdb-ink); }
.rdb-toc a.is-active { border-left-color: var(--rdb-blue); color: var(--rdb-ink); font-weight: 600; }

.rdb-share { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rdb-share a,
.rdb-share__copy {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 12px;
	border: 1px solid var(--rdb-line-strong);
	background: #fff;
	color: var(--rdb-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.rdb-share__copy { padding: 0 14px; }
.rdb-share a:hover,
.rdb-share__copy:hover { border-color: var(--rdb-ink); color: var(--rdb-ink); }

.rdb-inline-cta {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--rdb-line);
	box-shadow: 0 8px 24px rgba(14, 26, 51, .04);
}
.rdb-inline-cta img { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.rdb-inline-cta div { flex: 1 1 300px; min-width: 0; }
.rdb-inline-cta strong { display: block; font-size: 18px; color: var(--rdb-ink); }
.rdb-inline-cta span { font-size: 15px; color: var(--rdb-muted); }

.rdb-post__tags { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rdb-line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rdb-post__tags .rdb-small { margin-right: 6px; }
.rdb-post__tags a { font-size: 14px; color: var(--rdb-ink); text-decoration: none; padding: 6px 12px; border-radius: 10px; background: var(--rdb-tint); }
.rdb-post__tags a:hover { background: var(--rdb-blue-soft); }

.rdb-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.rdb-adjacent a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; border: 1px solid var(--rdb-line); text-decoration: none; }
.rdb-adjacent a:hover { border-color: var(--rdb-line-strong); box-shadow: 0 8px 24px rgba(14, 26, 51, .05); }
.rdb-adjacent span { font-size: 13px; color: var(--rdb-subtle); }
.rdb-adjacent strong { font-size: 16px; line-height: 1.35; color: var(--rdb-ink); }
.rdb-adjacent__next { text-align: right; }

.rdb-related { background: var(--rdb-tint); padding: 80px 0 88px; margin-bottom: 96px; }
.rdb-related__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.rdb-related .rdb-thumb { background: #fff; }

/* Content */
.rdb-prose { font-size: 18px; line-height: 1.75; color: var(--rdb-body); min-width: 0; }
.rdb-prose > * { margin: 0 0 22px; }
.rdb-prose > *:last-child { margin-bottom: 0; }
.rdb-prose h2,
.rdb-prose h3,
.rdb-prose h4 { font-family: var(--rdb-font-display); color: var(--rdb-ink); scroll-margin-top: 24px; }
.rdb-prose h2 { margin: 46px 0 18px; font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; }
.rdb-prose h3 { margin: 34px 0 14px; font-weight: 700; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.rdb-prose h4 { margin: 28px 0 10px; font-weight: 700; font-size: 18px; }
.rdb-prose > h2:first-child,
.rdb-prose > h3:first-child { margin-top: 0; }
.rdb-prose a { color: var(--rdb-blue-dark); text-underline-offset: 3px; }
.rdb-prose a:hover { color: var(--rdb-ink); }
.rdb-prose strong { color: var(--rdb-ink); }
.rdb-prose ul,
.rdb-prose ol { padding-left: 24px; }
.rdb-prose li + li { margin-top: 8px; }
.rdb-prose ul.is-style-checks,
.rdb-prose ul.rdb-checks { list-style: none; padding: 0; }
.rdb-prose ul.is-style-checks li,
.rdb-prose ul.rdb-checks li { position: relative; padding-left: 32px; }
.rdb-prose ul.is-style-checks li::before,
.rdb-prose ul.rdb-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #22A06B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.rdb-prose blockquote,
.rdb-prose .wp-block-quote {
	margin: 30px 0;
	padding: 24px 28px;
	border-radius: 20px;
	background: var(--rdb-tint);
	border-left: 4px solid var(--rdb-blue);
}
.rdb-prose blockquote p { margin: 0; font-family: var(--rdb-font-display); font-weight: 700; font-size: 22px; line-height: 1.4; color: var(--rdb-ink); }
.rdb-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--rdb-subtle); }
.rdb-prose figure { margin: 30px 0; }
.rdb-prose img { border-radius: 20px; }
.rdb-prose figcaption,
.rdb-prose .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--rdb-subtle); text-align: left; }
.rdb-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rdb-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--rdb-line); border-radius: 16px; }
.rdb-prose th,
.rdb-prose td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--rdb-line); vertical-align: top; }
.rdb-prose thead th { background: var(--rdb-tint); border-top: 0; color: var(--rdb-ink); }
.rdb-prose .wp-block-table th,
.rdb-prose .wp-block-table td { border-left: 0; border-right: 0; border-bottom: 0; }
.rdb-prose .wp-block-table thead { border-bottom: 0; }
.rdb-prose .wp-block-table table { margin: 0; }
.rdb-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--rdb-tint); padding: 2px 6px; border-radius: 6px; color: var(--rdb-ink); }
.rdb-prose pre { overflow-x: auto; padding: 20px 22px; border-radius: 18px; background: var(--rdb-ink); color: #E3EAF5; font-size: 15px; line-height: 1.6; }
.rdb-prose pre code { background: none; padding: 0; color: inherit; }
.rdb-prose hr { border: 0; border-top: 1px solid var(--rdb-line); margin: 40px 0; }
.rdb-prose .wp-block-button__link { background: var(--rdb-blue); color: #fff; border-radius: 14px; padding: 14px 22px; font-weight: 600; text-decoration: none; }
.rdb-prose .is-style-outline .wp-block-button__link { background: #fff; color: var(--rdb-ink); border: 1px solid var(--rdb-line-strong); }
.rdb-prose .has-tint-background-color { background: var(--rdb-tint); }
.rdb-prose .has-blue-color { color: var(--rdb-blue); }
.rdb-prose .wp-block-group.has-background,
.rdb-prose p.has-background { padding: 22px 24px; border-radius: 18px; }
.rdb-prose .alignwide { margin-left: -60px; margin-right: -60px; }
.rdb-prose .aligncenter { margin-left: auto; margin-right: auto; }
.rdb-prose .alignleft { float: left; margin: 6px 24px 16px 0; }
.rdb-prose .alignright { float: right; margin: 6px 0 16px 24px; }
.rdb-prose .wp-block-embed iframe { width: 100%; border-radius: 18px; }
.rdb-page-links { margin-top: 24px; font-weight: 600; }

/* Comments */
.rdb-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rdb-line); }
.rdb-comments__title,
.comment-reply-title { margin: 0 0 20px; font-family: var(--rdb-font-display); font-weight: 800; font-size: 26px; color: var(--rdb-ink); }
.rdb-comments__list,
.rdb-comments__list .children { list-style: none; margin: 0; padding: 0; }
.rdb-comments__list .children { padding-left: 32px; }
.rdb-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--rdb-line); }
.rdb-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--rdb-ink); }
.rdb-comments__list .comment-author img { border-radius: 50%; }
.rdb-comments__list .says { display: none; }
.rdb-comments__list .comment-metadata { font-size: 13px; margin: 4px 0 8px; }
.rdb-comments__list .comment-metadata a { color: var(--rdb-subtle); }
.rdb-comments__list .reply a { font-size: 14px; font-weight: 600; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; color: var(--rdb-ink); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rdb-line-strong); background: #fff; color: var(--rdb-ink); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 500; }

/* ---------- Author ---------- */
.rdb-band--author { padding-bottom: 56px; }
.rdb-author { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.rdb-author > .rdb-avatar { box-shadow: 0 0 0 8px #fff, 0 20px 50px rgba(36, 110, 243, .25); }
.rdb-author__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rdb-author__role { margin: 0; font-size: 17px; font-weight: 600; color: var(--rdb-blue-dark); }
.rdb-author__bio { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rdb-muted); max-width: 720px; }
.rdb-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.rdb-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--rdb-line); min-width: 140px; }
.rdb-stats dd { margin: 0; font-family: var(--rdb-font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: var(--rdb-ink); }
.rdb-stats dt { font-size: 14px; color: var(--rdb-subtle); }

/* ---------- Page ---------- */
.rdb-page__grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 80px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.rdb-page__grid--single { grid-template-columns: minmax(0, 760px); }
.rdb-page__toc .rdb-toc a { font-size: 15px; padding-left: 14px; }

/* ---------- Search: nothing found ---------- */
.rdb-empty { padding: 56px 0 72px; }
.rdb-empty__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.rdb-empty__text { display: flex; flex-direction: column; gap: 18px; }
.rdb-topic-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rdb-topic-tiles a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--chip-bg); text-decoration: none; min-width: 0; }
.rdb-topic-tiles strong { font-family: var(--rdb-font-display); font-weight: 800; font-size: 18px; color: var(--rdb-ink); }
.rdb-topic-tiles span { font-size: 14px; font-weight: 600; color: var(--chip-fg); }

/* ---------- Errors ---------- */
.rdb-error {
	position: relative;
	overflow: hidden;
	background: var(--rdb-tint);
	padding: 96px 0 104px;
}
.rdb-error::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at 50% 30%, transparent 0 200px, rgba(36, 110, 243, .07) 201px 202px, transparent 203px 320px, rgba(36, 110, 243, .06) 321px 322px, transparent 323px 440px, rgba(36, 110, 243, .05) 441px 442px, transparent 443px);
}
.rdb-error__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.rdb-error__inner .rdb-display { max-width: 760px; }
.rdb-error__code { position: relative; display: flex; align-items: center; justify-content: center; }
.rdb-error__code > span:first-child {
	font-family: var(--rdb-font-display);
	font-weight: 800;
	font-size: 180px;
	line-height: .9;
	letter-spacing: -0.06em;
	background: linear-gradient(180deg, var(--rdb-blue) 0%, #9DBEFF 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rdb-error__icon {
	position: absolute;
	right: -36px;
	top: -14px;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(14, 26, 51, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rdb-blue);
}
.rdb-error__text { margin: 0; font-size: 19px; line-height: 1.6; color: var(--rdb-muted); max-width: 620px; }
.rdb-error__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rdb-error .rdb-search { margin-top: 10px; }
.rdb-latest--popular { padding-top: 72px; padding-bottom: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.rdb-topics__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rdb-post__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.rdb-post__aside { order: 2; }
	.rdb-post__sticky { position: static; }
	.rdb-post__sticky nav { display: none; }
	.rdb-prose .alignwide { margin-left: 0; margin-right: 0; }
	.rdb-archive__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.rdb-archive__aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.rdb-page__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.rdb-page__toc .rdb-post__sticky { position: static; }
}

@media (max-width: 900px) {
	.rdb-display { font-size: 44px; }
	.rdb-display--md,
	.rdb-display--post { font-size: 40px; }
	.rdb-display--sm { font-size: 36px; }
	.rdb-home-hero__grid,
	.rdb-rows,
	.rdb-empty__grid { grid-template-columns: minmax(0, 1fr); }
	.rdb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rdb-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rdb-row--wide { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
	.rdb-featured__title { font-size: 30px; }
	.rdb-news { padding: 32px; border-radius: 24px; }
	.rdb-error__code > span:first-child { font-size: 130px; }
	.rdb-related { padding: 56px 0 64px; }
}

@media (max-width: 600px) {
	.rdb-display { font-size: 36px; }
	.rdb-display--md,
	.rdb-display--post,
	.rdb-display--sm { font-size: 32px; }
	.rdb-home-hero { padding: 32px 0 56px; }
	.rdb-cards,
	.rdb-topics__grid,
	.rdb-topic-tiles { grid-template-columns: minmax(0, 1fr); }
	.rdb-row,
	.rdb-row--wide { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
	.rdb-row__thumb,
	.rdb-row--wide .rdb-row__thumb { width: 100%; aspect-ratio: 3 / 2; }
	.rdb-adjacent { grid-template-columns: minmax(0, 1fr); }
	.rdb-adjacent__next { text-align: left; }
	.rdb-archive__bar { flex-direction: column; align-items: flex-start; }
	.rdb-search button { padding: 10px 12px; }
	.rdb-error { padding: 64px 0 72px; }
	.rdb-error__code > span:first-child { font-size: 104px; }
	.rdb-error__icon { right: -20px; width: 48px; height: 48px; border-radius: 14px; }
	.rdb-prose { font-size: 17px; }
	.rdb-prose h2 { font-size: 26px; }
	.rdb-prose .alignleft,
	.rdb-prose .alignright { float: none; margin: 24px 0; }
	.rdb-news { padding: 24px; }
	.rdb-news__title { font-size: 26px; }
}
