/*
 * RBSEResult — main stylesheet.
 *
 * Mobile-first, written for a text-heavy result site: no framework, no web
 * fonts, no icon fonts, no animation libraries. Layout uses flexbox and grid
 * only, so there is nothing to shift while the page loads.
 *
 * Structure
 *   1. Custom properties
 *   2. Reset and base
 *   3. Accessibility helpers
 *   4. Layout
 *   5. Header and navigation
 *   6. Components (status, cards, facts, panels, FAQ, forms…)
 *   7. Content (prose, entries, comments)
 *   8. Footer
 *   9. Advertising slots
 *  10. Print
 *
 * Breakpoint styles live in responsive.css.
 */

/* =========================================================================
 * 1. Custom properties
 * ====================================================================== */

:root {
	/* Brand. Overridable from the Customizer via an inline block. */
	--rbse-primary: #7a1f3d;
	--rbse-primary-dark: #5c1029;
	--rbse-primary-tint: #fbeef2;
	--rbse-accent: #b45309;
	--rbse-accent-dark: #8c4007;
	--rbse-accent-tint: #fdf4e7;

	/* Neutrals: warm, so the maroon does not read as cold. */
	--rbse-ink: #1c1917;
	--rbse-body: #292524;
	--rbse-muted: #57534e;
	--rbse-line: #e7e5e4;
	--rbse-line-strong: #d6d3d1;
	--rbse-surface: #faf9f7;
	--rbse-surface-2: #f5f4f1;
	--rbse-base: #fff;

	/* Status tones. Each is always paired with a text label and a glyph. */
	--rbse-live: #15803d;
	--rbse-live-tint: #eefaf1;
	--rbse-soon: #b45309;
	--rbse-soon-tint: #fdf4e7;
	--rbse-wait: #44403c;
	--rbse-wait-tint: #f5f4f1;
	--rbse-closed: #57534e;
	--rbse-closed-tint: #f1f0ee;
	--rbse-error: #b91c1c;
	--rbse-error-tint: #fdf1f1;

	/* Metrics */
	--rbse-max: 1120px;
	--rbse-radius: 10px;
	--rbse-radius-sm: 6px;
	--rbse-gap: 1rem;
	--rbse-gap-lg: 1.75rem;
	--rbse-ad-min: 0px;

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

/* =========================================================================
 * 2. Reset and base
 * ====================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	margin: 0;
	background: var(--rbse-base);
	color: var(--rbse-body);
	font-family: var(--rbse-font);
	font-size: 1rem;
	line-height: 1.65;
	/* Long Hindi/English result terms must never push the layout sideways. */
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--rbse-ink);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

h1 {
	font-size: 1.6rem;
}

h2 {
	font-size: 1.3rem;
}

h3 {
	font-size: 1.1rem;
}

h4 {
	font-size: 1rem;
}

p,
ul,
ol,
dl,
figure,
table,
pre {
	margin: 0 0 1rem;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
	margin-bottom: 0;
}

a {
	color: var(--rbse-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--rbse-primary-dark);
}

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

img {
	/* Images always reserve their box, so nothing jumps as they arrive. */
	height: auto;
	vertical-align: middle;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

th,
td {
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--rbse-line);
	text-align: start;
	vertical-align: top;
}

th {
	background: var(--rbse-surface-2);
	font-weight: 600;
}

code,
kbd,
pre {
	font-family: var(--rbse-mono);
	font-size: 0.9em;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--rbse-surface-2);
	border-radius: var(--rbse-radius-sm);
}

hr {
	height: 1px;
	margin: 2rem 0;
	border: 0;
	background: var(--rbse-line);
}

/* Consistent, always-visible focus. Never removed anywhere in this file. */
:focus-visible {
	outline: 3px solid var(--rbse-accent);
	outline-offset: 2px;
}

/* =========================================================================
 * 3. Accessibility helpers
 * ====================================================================== */

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

.screen-reader-text:focus {
	display: block;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	clip-path: none;
	background: var(--rbse-base);
	color: var(--rbse-primary);
	font-size: 0.9rem;
}

.rbse-skip {
	position: absolute;
	top: -100vh;
	left: 0.5rem;
	z-index: 200;
	padding: 0.75rem 1rem;
	background: var(--rbse-primary);
	color: #fff;
	border-radius: 0 0 var(--rbse-radius-sm) var(--rbse-radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.rbse-skip:focus {
	top: 0;
	color: #fff;
}

/* =========================================================================
 * 4. Layout
 * ====================================================================== */

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

.rbse-wrap {
	width: 100%;
	max-width: var(--rbse-max);
	margin-inline: auto;
	padding-inline: 1rem;
}

.rbse-main {
	flex: 1 0 auto;
	padding-block: 1.5rem 2.5rem;
}

.rbse-main:focus {
	outline: none;
}

.rbse-layout {
	display: block;
}

.rbse-primary {
	min-width: 0;
}

.rbse-primary--narrow {
	max-width: 46rem;
}

.rbse-section {
	margin-block: 2rem;
}

.rbse-section__title {
	margin-bottom: 0.35em;
	font-size: 1.25rem;
}

.rbse-section__lede {
	margin-bottom: 1rem;
	color: var(--rbse-muted);
}

.rbse-grid {
	display: grid;
	gap: var(--rbse-gap);
	grid-template-columns: 1fr;
}

/* =========================================================================
 * 5. Header and navigation
 * ====================================================================== */

.rbse-strip {
	background: var(--rbse-primary-dark);
	color: #f7eef1;
	font-size: 0.8rem;
}

.rbse-strip__text {
	margin: 0;
	padding-block: 0.4rem;
	text-align: center;
}

.rbse-header {
	position: relative;
	background: var(--rbse-base);
	border-bottom: 1px solid var(--rbse-line);
}

.rbse-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.75rem;
}

.rbse-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-right: auto;
	min-width: 0;
}

.rbse-brand__logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.rbse-brand__name {
	margin: 0;
	color: var(--rbse-primary);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.rbse-brand__name a {
	color: inherit;
	text-decoration: none;
}

.rbse-brand__tagline {
	margin: 0;
	color: var(--rbse-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.rbse-nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: var(--rbse-surface);
	color: var(--rbse-ink);
	border: 1px solid var(--rbse-line-strong);
	border-radius: var(--rbse-radius-sm);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.rbse-nav-toggle__bars,
.rbse-nav-toggle__bars::before,
.rbse-nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.rbse-nav-toggle__bars {
	position: relative;
}

.rbse-nav-toggle__bars::before {
	position: absolute;
	top: -6px;
}

.rbse-nav-toggle__bars::after {
	position: absolute;
	top: 6px;
}

/* Closed on small screens until the toggle is pressed. */
.rbse-nav {
	display: none;
	flex-basis: 100%;
}

.rbse-nav.is-open {
	display: block;
}

.rbse-menu {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.rbse-menu li {
	position: relative;
}

.rbse-menu a {
	display: block;
	padding: 0.6rem 0.5rem;
	color: var(--rbse-ink);
	border-radius: var(--rbse-radius-sm);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.rbse-menu a:hover,
.rbse-menu a:focus {
	background: var(--rbse-primary-tint);
	color: var(--rbse-primary-dark);
}

.rbse-menu .current-menu-item > a,
.rbse-menu .current_page_item > a,
.rbse-menu [aria-current="page"] {
	background: var(--rbse-primary-tint);
	color: var(--rbse-primary-dark);
	box-shadow: inset 3px 0 0 var(--rbse-primary);
}

.rbse-menu .sub-menu {
	margin: 0 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.rbse-menu .sub-menu a {
	font-weight: 500;
	font-size: 0.9rem;
}

.rbse-nav__search {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--rbse-line);
}

/* Site notice banner */
.rbse-banner {
	background: var(--rbse-accent-tint);
	border-bottom: 1px solid #f0dcbe;
}

.rbse-banner__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	padding-block: 0.65rem;
}

.rbse-banner__label {
	margin: 0;
	color: var(--rbse-accent-dark);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rbse-banner__body {
	margin: 0;
	font-size: 0.92rem;
}

.rbse-banner__body p {
	margin: 0;
}

/* =========================================================================
 * 6. Components
 * ====================================================================== */

/* --- Breadcrumbs --------------------------------------------------------- */

.rbse-crumbs {
	margin-bottom: 1rem;
	font-size: 0.82rem;
}

.rbse-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbse-crumbs__item {
	display: flex;
	gap: 0.35rem;
	align-items: center;
	color: var(--rbse-muted);
}

.rbse-crumbs__sep {
	color: var(--rbse-line-strong);
}

.rbse-crumbs__current {
	color: var(--rbse-muted);
}

/* --- Page head ---------------------------------------------------------- */

.rbse-page-head {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--rbse-primary-tint);
}

.rbse-page-head__eyebrow,
.rbse-hero__eyebrow,
.rbse-card__eyebrow {
	margin: 0 0 0.35rem;
	color: var(--rbse-accent-dark);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rbse-page-head__title {
	margin-bottom: 0.4rem;
	font-size: 1.55rem;
}

.rbse-page-head__lede {
	margin: 0;
	color: var(--rbse-muted);
	font-size: 1rem;
}

/* --- Hero --------------------------------------------------------------- */

.rbse-hero {
	margin-bottom: 1.75rem;
	padding: 1.25rem;
	background:
		linear-gradient(180deg, var(--rbse-primary-tint), var(--rbse-base));
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
}

.rbse-hero__title {
	margin-bottom: 0.5rem;
	font-size: 1.75rem;
	letter-spacing: -0.015em;
}

.rbse-hero__lede {
	margin-bottom: 0.75rem;
	font-size: 1.02rem;
}

.rbse-hero__note {
	margin: 0;
	color: var(--rbse-muted);
	font-size: 0.86rem;
}

/* --- Status pill -------------------------------------------------------- */

.rbse-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.rbse-pill__glyph {
	font-size: 0.7em;
	line-height: 1;
}

.rbse-pill--live {
	background: var(--rbse-live-tint);
	color: var(--rbse-live);
}

.rbse-pill--soon {
	background: var(--rbse-soon-tint);
	color: var(--rbse-soon);
}

.rbse-pill--wait {
	background: var(--rbse-wait-tint);
	color: var(--rbse-wait);
}

.rbse-pill--closed {
	background: var(--rbse-closed-tint);
	color: var(--rbse-closed);
}

/* --- Status block ------------------------------------------------------- */

.rbse-status {
	margin-block: 1.5rem;
	padding: 1.15rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line);
	border-left: 4px solid var(--rbse-wait);
	border-radius: var(--rbse-radius);
}

.rbse-status--live {
	border-left-color: var(--rbse-live);
	background: var(--rbse-live-tint);
}

.rbse-status--soon {
	border-left-color: var(--rbse-soon);
	background: var(--rbse-soon-tint);
}

.rbse-status--closed {
	border-left-color: var(--rbse-closed);
	background: var(--rbse-closed-tint);
}

.rbse-status--compact {
	padding: 0.9rem 1rem;
}

.rbse-status__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.rbse-status__title {
	margin: 0;
	font-size: 1.15rem;
}

.rbse-status__title--sub {
	font-size: 1.05rem;
}

.rbse-status__sentence {
	margin: 0 0 0.75rem;
	font-size: 1.02rem;
	font-weight: 500;
}

.rbse-status__when {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--rbse-ink);
}

.rbse-status__notice {
	margin-bottom: 0.9rem;
	padding: 0.75rem 0.85rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line-strong);
	border-radius: var(--rbse-radius-sm);
}

.rbse-status__notice-label {
	margin: 0 0 0.25rem;
	color: var(--rbse-accent-dark);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rbse-status__notice-body p:last-child {
	margin-bottom: 0;
}

.rbse-status__action {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: flex-start;
	margin-top: 0.9rem;
}

.rbse-status__action-note,
.rbse-status__refresh-note {
	margin: 0;
	color: var(--rbse-muted);
	font-size: 0.82rem;
}

.rbse-status__refresh {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px dashed var(--rbse-line-strong);
}

.rbse-status__live {
	margin: 0.5rem 0;
	min-height: 1.4em;
	font-size: 0.88rem;
	font-weight: 600;
}

.rbse-status__source {
	margin: 0.9rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--rbse-line);
	color: var(--rbse-muted);
	font-size: 0.85rem;
}

.rbse-status-pair {
	display: grid;
	gap: var(--rbse-gap);
	grid-template-columns: 1fr;
}

.rbse-status-pair .rbse-status {
	margin-block: 0;
}

/* --- Streams ----------------------------------------------------------- */

.rbse-streams {
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rbse-line-strong);
}

.rbse-streams__title {
	margin-bottom: 0.25rem;
	font-size: 1rem;
}

.rbse-streams__intro {
	margin-bottom: 0.75rem;
	color: var(--rbse-muted);
	font-size: 0.85rem;
}

.rbse-streams__list {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

.rbse-streams__item {
	padding: 0.75rem 0.85rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius-sm);
}

.rbse-streams__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.35rem;
}

.rbse-streams__name {
	font-weight: 700;
}

.rbse-streams__sentence {
	margin: 0;
	font-size: 0.9rem;
}

.rbse-streams__when {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.rbse-streams__item .rbse-btn {
	margin-top: 0.6rem;
}

/* --- Result cards ------------------------------------------------------ */

.rbse-cards {
	display: grid;
	gap: var(--rbse-gap);
	grid-template-columns: 1fr;
}

.rbse-card {
	display: flex;
	flex-direction: column;
	padding: 1.15rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line);
	border-top: 4px solid var(--rbse-primary);
	border-radius: var(--rbse-radius);
}

.rbse-card--class12 {
	border-top-color: var(--rbse-accent);
}

.rbse-card__head {
	margin-bottom: 0.5rem;
}

.rbse-card__title {
	margin: 0;
	font-size: 1.3rem;
}

.rbse-card__title a {
	color: var(--rbse-ink);
	text-decoration: none;
}

.rbse-card__title a:hover,
.rbse-card__title a:focus {
	color: var(--rbse-primary);
	text-decoration: underline;
}

.rbse-card__status {
	margin-bottom: 0.6rem;
}

.rbse-card__sentence {
	margin: 0 0 0.75rem;
	font-size: 0.96rem;
}

.rbse-card__date {
	display: flex;
	flex-direction: column;
	margin: 0 0 0.9rem;
	padding: 0.6rem 0.75rem;
	background: var(--rbse-surface);
	border-radius: var(--rbse-radius-sm);
	font-weight: 700;
}

.rbse-card__date-label {
	color: var(--rbse-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rbse-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin-bottom: 0.9rem;
}

.rbse-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	margin: auto 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--rbse-line);
	list-style: none;
	font-size: 0.88rem;
}

.rbse-card__links a {
	text-decoration: none;
}

.rbse-card__links a:hover,
.rbse-card__links a:focus {
	text-decoration: underline;
}

/* --- Buttons and links ------------------------------------------------- */

.rbse-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	background: var(--rbse-primary);
	color: #fff;
	border: 1px solid var(--rbse-primary);
	border-radius: var(--rbse-radius-sm);
	font: inherit;
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.rbse-btn:hover,
.rbse-btn:focus {
	background: var(--rbse-primary-dark);
	border-color: var(--rbse-primary-dark);
	color: #fff;
}

.rbse-btn--primary {
	background: var(--rbse-primary);
}

.rbse-btn--ghost {
	background: var(--rbse-base);
	color: var(--rbse-primary);
	border-color: var(--rbse-primary);
}

.rbse-btn--ghost:hover,
.rbse-btn--ghost:focus {
	background: var(--rbse-primary-tint);
	color: var(--rbse-primary-dark);
}

.rbse-btn--quiet {
	min-height: 40px;
	padding: 0.5rem 0.9rem;
	background: var(--rbse-base);
	color: var(--rbse-ink);
	border-color: var(--rbse-line-strong);
	font-size: 0.9rem;
}

.rbse-btn--quiet:hover,
.rbse-btn--quiet:focus {
	background: var(--rbse-surface);
	color: var(--rbse-ink);
	border-color: var(--rbse-muted);
}

.rbse-btn--small {
	min-height: 38px;
	padding: 0.45rem 0.8rem;
	font-size: 0.88rem;
}

.rbse-link {
	font-weight: 600;
}

.rbse-inline-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin-top: 1rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.rbse-source-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	color: var(--rbse-muted);
	font-size: 0.9rem;
}

/* --- Notes ------------------------------------------------------------- */

.rbse-note {
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.85rem;
	background: var(--rbse-surface);
	border-left: 3px solid var(--rbse-line-strong);
	border-radius: 0 var(--rbse-radius-sm) var(--rbse-radius-sm) 0;
	color: var(--rbse-muted);
	font-size: 0.9rem;
}

.rbse-note--pending {
	background: var(--rbse-wait-tint);
	border-left-color: var(--rbse-wait);
	color: var(--rbse-body);
}

.rbse-note--editor {
	background: var(--rbse-accent-tint);
	border-left-color: var(--rbse-accent);
	color: var(--rbse-accent-dark);
	font-weight: 600;
}

/* --- Fact lists -------------------------------------------------------- */

.rbse-facts {
	margin: 0 0 0.5rem;
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius-sm);
	overflow: hidden;
	background: var(--rbse-base);
}

.rbse-facts__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.1rem;
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--rbse-line);
}

.rbse-facts__row:last-child {
	border-bottom: 0;
}

.rbse-facts__key {
	margin: 0;
	color: var(--rbse-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rbse-facts__val {
	margin: 0;
	font-weight: 600;
}

/* --- Panels and grids -------------------------------------------------- */

.rbse-panel {
	padding: 1rem;
	background: var(--rbse-surface);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
}

.rbse-panel__title {
	margin-bottom: 0.4rem;
	font-size: 1.05rem;
}

.rbse-panel__text {
	margin: 0 0 0.75rem;
	font-size: 0.94rem;
}

.rbse-panel__fact {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--rbse-ink);
}

.rbse-panel--search {
	margin-block: 1.25rem;
}

.rbse-callout {
	padding: 1.1rem;
	background: var(--rbse-accent-tint);
	border: 1px solid #f0dcbe;
	border-radius: var(--rbse-radius);
}

.rbse-callout__title {
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
}

/* --- Steps, checklists, Q&A -------------------------------------------- */

.rbse-steps {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	counter-reset: rbse-step;
}

.rbse-steps__item {
	position: relative;
	margin-bottom: 0.65rem;
	padding: 0.15rem 0 0 2.25rem;
	counter-increment: rbse-step;
}

.rbse-steps__item::before {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	background: var(--rbse-primary-tint);
	color: var(--rbse-primary-dark);
	border-radius: 50%;
	font-size: 0.82rem;
	font-weight: 700;
	content: counter(rbse-step);
}

.rbse-steps--numbered .rbse-steps__item {
	margin-bottom: 1.1rem;
}

.rbse-steps__title {
	margin: 0 0 0.2rem;
	font-size: 1rem;
}

.rbse-steps__item p {
	margin: 0;
	font-size: 0.94rem;
}

.rbse-checklist {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.rbse-checklist li {
	position: relative;
	margin-bottom: 0.5rem;
	padding-left: 1.6rem;
	font-size: 0.96rem;
}

.rbse-checklist li::before {
	position: absolute;
	left: 0;
	color: var(--rbse-primary);
	font-weight: 700;
	content: "\2713";
}

.rbse-qa {
	margin: 0;
}

.rbse-qa__q {
	margin-top: 1rem;
	font-weight: 700;
	color: var(--rbse-ink);
}

.rbse-qa__q:first-child {
	margin-top: 0;
}

.rbse-qa__a {
	margin: 0.25rem 0 0;
	font-size: 0.96rem;
}

/* --- Official link list ------------------------------------------------ */

.rbse-links {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

.rbse-links__item {
	padding: 0.9rem 1rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius-sm);
}

.rbse-links__label {
	color: var(--rbse-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rbse-links__host {
	margin-bottom: 0.6rem;
	font-family: var(--rbse-mono);
	font-size: 0.92rem;
	font-weight: 600;
	word-break: break-all;
}

/* --- FAQ --------------------------------------------------------------- */

.rbse-faq {
	margin-block: 2rem;
}

.rbse-faq__title {
	font-size: 1.25rem;
}

.rbse-faq__list {
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
	overflow: hidden;
}

.rbse-faq__item {
	border-bottom: 1px solid var(--rbse-line);
	background: var(--rbse-base);
}

.rbse-faq__item:last-child {
	border-bottom: 0;
}

.rbse-faq__q {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	justify-content: space-between;
	padding: 0.85rem 1rem;
	background: var(--rbse-base);
	color: var(--rbse-ink);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

/* Hide the default disclosure triangle; a custom marker replaces it. */
.rbse-faq__q::-webkit-details-marker {
	display: none;
}

.rbse-faq__q::marker {
	content: "";
}

.rbse-faq__q:hover {
	background: var(--rbse-surface);
}

.rbse-faq__marker {
	position: relative;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.3rem;
}

.rbse-faq__marker::before,
.rbse-faq__marker::after {
	position: absolute;
	background: var(--rbse-primary);
	content: "";
}

.rbse-faq__marker::before {
	top: 50%;
	left: 0;
	width: 1rem;
	height: 2px;
	transform: translateY(-50%);
}

.rbse-faq__marker::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 1rem;
	transform: translateX(-50%);
}

.rbse-faq__item[open] .rbse-faq__marker::after {
	display: none;
}

.rbse-faq__a {
	padding: 0 1rem 1rem;
	font-size: 0.96rem;
}

/* --- Updates ----------------------------------------------------------- */

.rbse-updates {
	margin-block: 2rem;
}

.rbse-updates__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.rbse-updates__title {
	margin: 0;
	font-size: 1.25rem;
}

.rbse-updates__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rbse-line);
}

.rbse-updates__item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--rbse-line);
}

.rbse-updates__link {
	font-weight: 600;
	text-decoration: none;
}

.rbse-updates__link:hover,
.rbse-updates__link:focus {
	text-decoration: underline;
}

.rbse-updates__meta,
.rbse-entry__meta,
.rbse-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin: 0.25rem 0 0;
	color: var(--rbse-muted);
	font-size: 0.82rem;
}

.rbse-updates__tag,
.rbse-entry__tag {
	padding: 0.1rem 0.5rem;
	background: var(--rbse-primary-tint);
	color: var(--rbse-primary-dark);
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.75rem;
}

/* --- Related ----------------------------------------------------------- */

.rbse-related {
	margin-block: 2rem;
	padding: 1.1rem;
	background: var(--rbse-surface);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
}

.rbse-related__title {
	margin-bottom: 0.6rem;
	font-size: 1.1rem;
}

.rbse-related__list {
	display: grid;
	gap: 0.4rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

.rbse-related__link {
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
}

.rbse-related__link:hover,
.rbse-related__link:focus {
	text-decoration: underline;
}

.rbse-related__item--cross .rbse-related__link {
	color: var(--rbse-accent-dark);
}

/* --- Sources ----------------------------------------------------------- */

.rbse-sources {
	margin-block: 2rem;
	padding: 1.1rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line-strong);
	border-radius: var(--rbse-radius);
}

.rbse-sources__title {
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
}

.rbse-sources__intro {
	margin-bottom: 0.85rem;
	font-size: 0.94rem;
}

.rbse-sources__list {
	display: grid;
	gap: 0.6rem;
	margin: 0 0 0.85rem;
	padding: 0;
	list-style: none;
}

.rbse-sources__item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px dashed var(--rbse-line);
}

.rbse-sources__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rbse-sources__label {
	color: var(--rbse-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rbse-sources__note {
	margin: 0.85rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--rbse-line);
	color: var(--rbse-muted);
	font-size: 0.86rem;
}

/* --- Disclaimer -------------------------------------------------------- */

.rbse-disclaimer {
	margin-block: 2rem;
	padding: 1.1rem;
	background: var(--rbse-surface-2);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
	font-size: 0.92rem;
}

.rbse-disclaimer__title {
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
}

.rbse-disclaimer--compact {
	margin-block: 1.5rem;
	padding: 0.85rem 1rem;
	color: var(--rbse-muted);
	font-size: 0.86rem;
}

/* --- Forms ------------------------------------------------------------- */

.rbse-form {
	margin-block: 1.5rem;
	padding: 1.25rem;
	background: var(--rbse-surface);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
}

.rbse-form__row {
	margin-bottom: 1rem;
}

.rbse-form__label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.92rem;
	font-weight: 700;
}

.rbse-form__required {
	color: var(--rbse-error);
}

.rbse-form__input,
.rbse-search__input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	padding: 0.6rem 0.7rem;
	background: var(--rbse-base);
	color: var(--rbse-ink);
	border: 1px solid var(--rbse-line-strong);
	border-radius: var(--rbse-radius-sm);
	font: inherit;
	font-size: 1rem;
}

textarea,
.rbse-form__textarea {
	min-height: 8rem;
	resize: vertical;
}

.rbse-form__row--error .rbse-form__input {
	border-color: var(--rbse-error);
	background: var(--rbse-error-tint);
}

.rbse-form__error {
	margin: 0.3rem 0 0;
	color: var(--rbse-error);
	font-size: 0.86rem;
	font-weight: 600;
}

.rbse-form__note {
	margin-bottom: 1rem;
	color: var(--rbse-muted);
	font-size: 0.86rem;
}

/* Honeypot: off-screen rather than display:none, and aria-hidden in markup. */
.rbse-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rbse-alert {
	margin-block: 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--rbse-line-strong);
	border-left-width: 4px;
	border-radius: var(--rbse-radius-sm);
	background: var(--rbse-surface);
}

.rbse-alert--success {
	background: var(--rbse-live-tint);
	border-left-color: var(--rbse-live);
}

.rbse-alert--error {
	background: var(--rbse-error-tint);
	border-left-color: var(--rbse-error);
}

.rbse-alert p:last-child {
	margin-bottom: 0;
}

.rbse-alert__list {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

/* --- Search form ------------------------------------------------------- */

.rbse-search__label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.rbse-search__row {
	display: flex;
	gap: 0.5rem;
}

.rbse-search__submit {
	flex: 0 0 auto;
}

/* =========================================================================
 * 7. Content
 * ====================================================================== */

.rbse-prose > *:first-child {
	margin-top: 0;
}

.rbse-prose h2 {
	margin-top: 1.75rem;
}

.rbse-prose h3 {
	margin-top: 1.5rem;
}

.rbse-prose ul,
.rbse-prose ol {
	padding-left: 1.35rem;
}

.rbse-prose li {
	margin-bottom: 0.35rem;
}

.rbse-prose blockquote {
	margin: 1.25rem 0;
	padding: 0.5rem 0 0.5rem 1rem;
	border-left: 3px solid var(--rbse-line-strong);
	color: var(--rbse-muted);
}

.rbse-prose figure {
	margin: 1.5rem 0;
}

.rbse-prose figcaption,
.wp-caption-text {
	margin-top: 0.4rem;
	color: var(--rbse-muted);
	font-size: 0.85rem;
}

.rbse-prose table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignleft,
.alignright {
	display: block;
	margin-inline: auto;
	float: none;
}

.rbse-entries {
	display: grid;
	gap: var(--rbse-gap);
	grid-template-columns: 1fr;
}

.rbse-entry {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--rbse-line);
}

.rbse-entry__thumb img {
	display: block;
	width: 100%;
	border-radius: var(--rbse-radius-sm);
}

.rbse-entry__title {
	margin: 0;
	font-size: 1.15rem;
}

.rbse-entry__title a {
	color: var(--rbse-ink);
	text-decoration: none;
}

.rbse-entry__title a:hover,
.rbse-entry__title a:focus {
	color: var(--rbse-primary);
	text-decoration: underline;
}

.rbse-entry__excerpt {
	font-size: 0.95rem;
}

.rbse-post__figure {
	margin: 0 0 1.5rem;
}

.rbse-post__figure img {
	border-radius: var(--rbse-radius);
}

/* Pagination (core markup + the theme's own list) */
.rbse-pagination__list,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.rbse-pagination__item {
	list-style: none;
}

.page-numbers,
.rbse-pagination__item > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.4rem 0.7rem;
	background: var(--rbse-base);
	border: 1px solid var(--rbse-line-strong);
	border-radius: var(--rbse-radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.page-numbers.current {
	background: var(--rbse-primary);
	color: #fff;
	border-color: var(--rbse-primary);
}

.rbse-post-nav {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rbse-line);
}

.rbse-post-nav .nav-links {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
	margin: 0;
}

.rbse-post-nav a {
	display: block;
	padding: 0.85rem 1rem;
	background: var(--rbse-surface);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.rbse-nav-label {
	display: block;
	color: var(--rbse-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rbse-page-links {
	margin-top: 1rem;
	font-weight: 600;
}

/* Comments */
.rbse-comments {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--rbse-primary-tint);
}

.rbse-comments__title {
	font-size: 1.15rem;
}

.rbse-comments__list,
.rbse-comments__list .children {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.rbse-comments__list .children {
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 2px solid var(--rbse-line);
}

.rbse-comments__list .comment-body {
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--rbse-surface);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius-sm);
}

.comment-meta {
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
}

.comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 0.4rem;
}

.comment-form-comment textarea {
	max-width: 100%;
}

/* Sidebar widgets */
.rbse-sidebar {
	margin-top: 2.5rem;
}

.rbse-widget {
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: var(--rbse-surface);
	border: 1px solid var(--rbse-line);
	border-radius: var(--rbse-radius);
}

.rbse-widget__title {
	margin-bottom: 0.6rem;
	font-size: 1rem;
}

.rbse-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbse-widget li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--rbse-line);
	font-size: 0.92rem;
}

.rbse-widget li:last-child {
	border-bottom: 0;
}

/* =========================================================================
 * 8. Footer
 * ====================================================================== */

.rbse-footer {
	margin-top: auto;
	padding-block: 2rem 1.5rem;
	background: var(--rbse-surface-2);
	border-top: 3px solid var(--rbse-primary);
	font-size: 0.92rem;
}

.rbse-footer__widgets {
	display: grid;
	gap: var(--rbse-gap);
	margin-bottom: 1.5rem;
	grid-template-columns: 1fr;
}

.rbse-footer__grid {
	display: grid;
	gap: var(--rbse-gap-lg);
	grid-template-columns: 1fr;
}

.rbse-footer__brand {
	margin: 0 0 0.35rem;
	color: var(--rbse-primary);
	font-size: 1.1rem;
	font-weight: 800;
}

.rbse-footer__lede {
	margin: 0;
	color: var(--rbse-muted);
	font-size: 0.88rem;
}

.rbse-footer__title {
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rbse-muted);
}

.rbse-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbse-footer__links li {
	margin-bottom: 0.35rem;
}

.rbse-footer__links a {
	color: var(--rbse-body);
	text-decoration: none;
	font-weight: 600;
}

.rbse-footer__links a:hover,
.rbse-footer__links a:focus {
	color: var(--rbse-primary);
	text-decoration: underline;
}

.rbse-footer__nav {
	margin-top: 1.5rem;
}

.rbse-menu--footer {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

.rbse-menu--footer a {
	padding: 0.3rem 0;
	font-size: 0.9rem;
}

.rbse-menu--footer a:hover,
.rbse-menu--footer a:focus {
	background: none;
	text-decoration: underline;
}

.rbse-footer__note {
	margin-top: 1.25rem;
	color: var(--rbse-muted);
	font-size: 0.88rem;
}

.rbse-footer__copy {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--rbse-line-strong);
	color: var(--rbse-muted);
	font-size: 0.85rem;
}

/* =========================================================================
 * 9. Advertising slots
 * ====================================================================== */

.rbse-ad {
	margin-block: 1.5rem;
	text-align: center;
}

.rbse-ad-row {
	padding-inline: 1rem;
}

.rbse-ad__label {
	margin: 0 0 0.35rem;
	color: var(--rbse-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rbse-ad__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	/* Never allow an ad to exceed its column or overlay result controls. */
	max-width: 100%;
}

.rbse-ad--reserved .rbse-ad__inner {
	min-height: var(--rbse-ad-min);
}

.rbse-ad--mobile {
	display: block;
}

/* =========================================================================
 * 10. Print — a result page should print cleanly for records
 * ====================================================================== */

@media print {
	.rbse-strip,
	.rbse-nav,
	.rbse-nav-toggle,
	.rbse-ad,
	.rbse-ad-row,
	.rbse-sidebar,
	.rbse-footer__nav,
	.rbse-skip,
	.rbse-status__refresh,
	.rbse-search,
	.rbse-comments {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	.rbse-wrap {
		max-width: none;
		padding: 0;
	}

	.rbse-status,
	.rbse-card,
	.rbse-panel,
	.rbse-sources {
		border: 1px solid #999;
		background: #fff;
		break-inside: avoid;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}
}
