/* ==========================================================================
   RootJunky theme: Material-style surfaces, brand red + Android green,
   colour-coded topics. Dark by default; [data-scheme="light"] for light.
   ========================================================================== */

:root,
[data-scheme="dark"] {
	--bg: #0f1113;
	--bg-2: #14171a;
	--surface: #1a1d21;
	--surface-2: #22262b;
	--surface-3: #2b3036;
	--line: #30353c;
	--text: #e9ebee;
	--text-2: #a9b0b8;
	--text-3: #7d858e;
	--brand: #ff4b4b;
	--brand-ink: #ffffff;
	--brand-soft: rgba(255, 75, 75, .14);
	--droid: #3ddc84;
	--droid-soft: rgba(61, 220, 132, .14);
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
	--c-red: #ff6b6b;
	--c-green: #3ddc84;
	--c-blue: #6ea8ff;
	--c-amber: #ffc046;
	--c-purple: #b794ff;
	--c-teal: #33d1e0;
	--c-pink: #ff7eb6;
	--c-orange: #ff9a52;
	color-scheme: dark;
}

[data-scheme="light"] {
	--bg: #f5f6f8;
	--bg-2: #eceef2;
	--surface: #ffffff;
	--surface-2: #f1f3f6;
	--surface-3: #e5e8ed;
	--line: #dde1e7;
	--text: #15181c;
	--text-2: #4b535d;
	--text-3: #6b737d;
	--brand: #d61f1f;
	--brand-ink: #ffffff;
	--brand-soft: rgba(214, 31, 31, .09);
	--droid: #0f8a4c;
	--droid-soft: rgba(15, 138, 76, .1);
	--shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 6px 20px rgba(20, 24, 28, .07);
	--shadow-lg: 0 24px 60px rgba(20, 24, 28, .18);
	--c-red: #d32f2f;
	--c-green: #0f8a4c;
	--c-blue: #1f63d6;
	--c-amber: #a86500;
	--c-purple: #7442d8;
	--c-teal: #00808c;
	--c-pink: #c2185b;
	--c-orange: #c25200;
	color-scheme: light;
}

:root {
	--font: "Roboto Flex", Roboto, "Google Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--r-xl: 32px;
	--wrap: 1240px;
	--read: 780px;
	--header-h: 68px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* Topic colour hooks: .c-red etc. set --tc for any component (doubled class so it beats component defaults). */
.c-red.c-red { --tc: var(--c-red); }
.c-green.c-green { --tc: var(--c-green); }
.c-blue.c-blue { --tc: var(--c-blue); }
.c-amber.c-amber { --tc: var(--c-amber); }
.c-purple.c-purple { --tc: var(--c-purple); }
.c-teal.c-teal { --tc: var(--c-teal); }
.c-pink.c-pink { --tc: var(--c-pink); }
.c-orange.c-orange { --tc: var(--c-orange); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--droid); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
.rj-icon { flex: none; display: inline-block; vertical-align: middle; }
.rj-icon.flip { transform: scaleX(-1); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 999px;
}
.rj-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.rj-wrap--read { max-width: calc(var(--read) + 40px); }
.rj-main { min-height: 60vh; }
.rj-section { padding-top: 36px; padding-bottom: 8px; }
.rj-section--tight { padding-top: 8px; }

/* ---------- Buttons, chips, fields ---------- */
.rj-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
	font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
	transition: transform .15s var(--ease), background .15s, box-shadow .15s;
	white-space: nowrap;
}
.rj-btn:active { transform: scale(.97); }
.rj-btn--primary { background: var(--brand); color: var(--brand-ink); }
.rj-btn--primary:hover { box-shadow: 0 6px 18px var(--brand-soft); filter: brightness(1.06); }
.rj-btn--tonal { background: var(--surface-3); color: var(--text); }
.rj-btn--tonal:hover { background: var(--line); }

.rj-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--text);
}
.rj-iconbtn:hover { background: var(--surface-3); }

.rj-chip {
	--tc: var(--text-2);
	display: inline-flex; align-items: center; gap: 7px; min-height: 38px;
	padding: 0 14px 0 10px; border-radius: 999px; white-space: nowrap;
	background: color-mix(in srgb, var(--tc) 13%, transparent);
	color: var(--tc); font-weight: 600; font-size: 14px; text-decoration: none;
	border: 1px solid color-mix(in srgb, var(--tc) 26%, transparent);
	transition: background .15s, transform .15s var(--ease);
}
.rj-chip:hover { background: color-mix(in srgb, var(--tc) 22%, transparent); }
.rj-chip.is-active { background: var(--tc); color: var(--bg); border-color: var(--tc); }
.rj-chip small { font-size: 12px; opacity: .75; font-weight: 500; }
.rj-chip--sm { min-height: 28px; font-size: 12.5px; padding: 0 10px 0 7px; gap: 5px; }
.rj-chip--sm .rj-icon { width: 15px; height: 15px; }
.rj-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.rj-pill {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
	color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.rj-pill:hover { border-color: var(--text-3); }
.rj-pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.rj-field {
	display: flex; align-items: center; gap: 10px; flex: 1;
	min-height: 52px; padding: 0 16px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.rj-field:focus-within { border-color: var(--droid); box-shadow: 0 0 0 3px var(--droid-soft); }
.rj-field input {
	flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--text);
	font: inherit; font-size: 16px; outline: none;
}
.rj-search { display: flex; gap: 10px; align-items: center; }
.rj-linkbtn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.rj-scroller {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	padding: 4px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity;
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.rj-scroller::-webkit-scrollbar { display: none; }
.rj-scroller > * { scroll-snap-align: start; }

/* ---------- Header ---------- */
.rj-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .rj-header { top: 32px; }
.rj-header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.rj-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.rj-brand__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.rj-brand__mark {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--brand); color: #fff; font-weight: 800; letter-spacing: -.04em;
}
.rj-brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.rj-brand__name span { color: var(--text-3); font-weight: 600; }

.rj-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.rj-nav__btn,
.rj-menu > li > a {
	display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
	border-radius: 999px; border: 0; background: transparent; color: var(--text);
	font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.rj-nav__btn .rj-icon { color: var(--droid); }
.rj-nav__btn:hover,
.rj-menu > li > a:hover,
.rj-menu > li.current-menu-item > a,
.rj-menu > li.current-menu-ancestor > a { background: var(--surface-3); }
.rj-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rj-menu > li { position: relative; display: flex; align-items: center; }
.rj-menu > li.menu-item-has-children > a { padding-right: 4px; }
.rj-sub-toggle {
	display: grid; place-items: center; width: 28px; height: 40px; border: 0; background: none;
	color: var(--text-2); cursor: pointer; border-radius: 999px; margin-right: 4px;
}
.rj-sub-toggle .rj-icon { transform: rotate(90deg); transition: transform .2s; }
.rj-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; z-index: 60;
	margin: 0; padding: 8px; list-style: none; border-radius: var(--r);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .15s, transform .15s var(--ease), visibility .15s;
}
.rj-menu > li:hover > .sub-menu,
.rj-menu > li:focus-within > .sub-menu,
.rj-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rj-menu > li.is-open .rj-sub-toggle .rj-icon { transform: rotate(-90deg); }
.rj-menu .sub-menu a {
	display: block; padding: 10px 12px; border-radius: var(--r-sm);
	color: var(--text); text-decoration: none; font-size: 15px;
}
.rj-menu .sub-menu a:hover { background: var(--surface-2); }

.rj-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.rj-scheme .i-moon { display: none; }
[data-scheme="light"] .rj-scheme .i-sun { display: none; }
[data-scheme="light"] .rj-scheme .i-moon { display: inline-block; }
.rj-dl { margin-left: 6px; }
.rj-menubtn { display: none !important; }

.rj-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.rj-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--droid)); }

/* ---------- Panels (devices / topics / search / menu) ---------- */
.rj-scrim {
	position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .2s;
}
.rj-scrim.is-on { opacity: 1; }
.rj-panel {
	position: fixed; z-index: 90; left: 50%; top: 80px; transform: translate(-50%, -8px);
	width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 110px);
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
	padding: 18px 22px 22px; opacity: 0; transition: opacity .18s, transform .22s var(--ease);
}
.rj-panel.is-on { opacity: 1; transform: translate(-50%, 0); }
.rj-panel--search, .rj-panel--menu { width: min(640px, calc(100vw - 32px)); }
.rj-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rj-panel__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.rj-panel__head h2 .rj-icon { color: var(--droid); }
.rj-panel__hint { margin: 20px 0 10px; color: var(--text-3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rj-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.rj-finder { display: flex; flex-direction: column; min-height: 0; gap: 14px; }
.rj-finder__brands { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rj-finder__brands::-webkit-scrollbar { display: none; }
.rj-finder__list { overflow-y: auto; min-height: 0; padding-right: 4px; overscroll-behavior: contain; }
.rj-finder__group { margin-bottom: 18px; }
.rj-finder__group h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.rj-finder__group h3 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.rj-finder__group h3 a:hover { color: var(--brand); }
.rj-finder__group ul {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px;
	margin: 0; padding: 0; list-style: none;
}
.rj-finder__group li a {
	display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-sm);
	background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
	border: 1px solid transparent;
}
.rj-finder__group li a:hover, .rj-finder__group li a:focus-visible { border-color: var(--droid); background: var(--droid-soft); }
.rj-finder__group li a mark { background: none; color: var(--droid); font-weight: 700; }
.rj-finder__empty { color: var(--text-2); padding: 12px 2px; }

.rj-topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; overflow-y: auto; }
.rj-topic-tile {
	--tc: var(--text-2);
	position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
	column-gap: 12px; align-items: center; padding: 14px; border-radius: var(--r);
	background: var(--surface-2); color: var(--text); text-decoration: none;
	border: 1px solid var(--line); transition: transform .15s var(--ease), border-color .15s;
}
.rj-topic-tile:hover { transform: translateY(-2px); border-color: var(--tc); }
.rj-topic-tile__icon {
	grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px;
	border-radius: 14px; color: var(--tc); background: color-mix(in srgb, var(--tc) 15%, transparent);
}
.rj-topic-tile__name { font-weight: 700; line-height: 1.25; }
.rj-topic-tile__count { color: var(--text-3); font-size: 13px; }
.rj-topic-tiles--page { overflow: visible; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rj-topic-tiles--page .rj-topic-tile { background: var(--surface); }

.rj-drawer-menu { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.rj-drawer-menu a {
	display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: var(--r-sm);
	color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600;
}
.rj-drawer-menu a:hover { background: var(--surface-2); }
.rj-drawer-menu .sub-menu { list-style: none; margin: 0 0 6px 14px; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.rj-drawer-menu .sub-menu a { min-height: 44px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.rj-drawer-menu .rj-sub-toggle { display: none; }

/* ---------- Hero ---------- */
.rj-hero {
	position: relative; overflow: hidden; padding: 56px 0 40px;
	background:
		radial-gradient(900px 420px at 85% 10%, var(--brand-soft), transparent 60%),
		radial-gradient(700px 380px at 10% 100%, var(--droid-soft), transparent 60%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}
.rj-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.rj-hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.rj-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px 6px 10px;
	border-radius: 999px; background: var(--droid-soft); color: var(--droid);
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.rj-hero__title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 800; }
.rj-hero__text { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 36em; margin: 0 0 28px; }
.rj-hero__finder {
	display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; min-height: 62px;
	padding: 0 10px 0 22px; border-radius: 999px; cursor: text; text-align: left;
	background: var(--surface); border: 1px solid var(--line); color: var(--text-3);
	box-shadow: var(--shadow); font-size: 17px; transition: border-color .15s, box-shadow .15s;
}
.rj-hero__finder:hover { border-color: var(--droid); box-shadow: 0 0 0 4px var(--droid-soft), var(--shadow); }
.rj-hero__finder > span { flex: 1; }
.rj-hero__finder .rj-icon { color: var(--droid); }
.rj-hero__finder small {
	padding: 8px 14px; border-radius: 999px; background: var(--surface-3);
	color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.rj-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.rj-hero__device { display: flex; justify-content: center; }
.rj-phone {
	width: 300px; padding: 12px; border-radius: 44px; background: linear-gradient(160deg, #2c3138, #121417);
	box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
	transform: rotate(4deg);
}
.rj-phone__screen { border-radius: 34px; background: #0a0c0e; min-height: 500px; padding: 14px 18px; overflow: hidden; }
.rj-phone__status { display: flex; justify-content: space-between; align-items: center; color: #c8ccd2; font: 600 12px var(--font); margin-bottom: 26px; }
.rj-phone__dots { display: flex; gap: 4px; }
.rj-phone__dots i { width: 6px; height: 6px; border-radius: 50%; background: #c8ccd2; }
.rj-phone__dots::before { content: ""; position: absolute; left: 50%; width: 12px; height: 12px; margin: -3px 0 0 -6px; border-radius: 50%; background: #1b1f24; }
.rj-term { font: 500 12.5px/1.75 var(--mono); color: #d9dde2; }
.rj-term p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rj-term b { color: #3ddc84; font-weight: 700; margin-right: 6px; }
.rj-term .o { color: #8a929b; }
.rj-term .ok { color: #3ddc84; }
.rj-term .g { color: #3ddc84; font-weight: 700; margin-top: 10px; }
.rj-caret { display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -3px; background: #3ddc84; animation: rj-blink 1s steps(2) infinite; }
@keyframes rj-blink { 50% { opacity: 0; } }

/* ---------- Section heads ---------- */
.rj-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rj-section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 24px; margin: 0; }
.rj-section-title > .rj-icon { color: var(--brand); }
.rj-more {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0;
	background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.rj-more:hover { background: var(--surface-3); }
.rj-section--chips { padding-top: 20px; padding-bottom: 0; }

/* ---------- Cards ---------- */
.rj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.rj-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rj-grid--feature { grid-template-columns: repeat(3, 1fr); }
.rj-grid--feature > .rj-card--wide { grid-column: span 2; grid-row: span 2; }
.rj-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.rj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--text) 18%, var(--line)); }
.rj-card__link { display: block; }
.rj-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.rj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.rj-card:hover .rj-card__media img { transform: scale(1.04); }
.rj-card__ph {
	--tc: var(--brand);
	display: grid; place-items: center; width: 100%; height: 100%; color: var(--tc);
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 60%),
		color-mix(in srgb, var(--tc) 10%, var(--surface-2));
}
.rj-card__vid {
	position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff;
	font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
}
.rj-card__vid .rj-icon { color: #ff4b4b; }
.rj-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.rj-card__title { font-size: 19px; line-height: 1.3; margin: 0; }
.rj-card__title a { color: var(--text); text-decoration: none; }
.rj-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rj-card .rj-chip { position: relative; z-index: 2; }
.rj-card__title a:hover { color: var(--brand); }
.rj-card__excerpt { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rj-card__meta { margin: auto 0 0; color: var(--text-3); font-size: 13px; }
.rj-card--wide .rj-card__title { font-size: clamp(22px, 2.4vw, 30px); }
.rj-card--wide .rj-card__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.rj-card--wide .rj-card__link { display: flex; flex: 1; flex-direction: column; }
.rj-card--wide .rj-card__body { flex: none; }
.rj-card--compact .rj-card__title { font-size: 17px; }
.rj-card--page .rj-card__body { padding: 20px; }

/* Video cards / rail */
.rj-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px;
	overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin;
	scrollbar-color: var(--surface-3) transparent;
}
.rj-rail > * { scroll-snap-align: start; }
.rj-vcard { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.rj-vcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.rj-vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease), opacity .2s; }
.rj-vcard:hover .rj-vcard__thumb img { transform: scale(1.05); opacity: .85; }
.rj-vcard__play {
	position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px;
	margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 75, 75, .94); color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .2s var(--ease);
}
.rj-vcard__play .rj-icon { margin-left: 3px; }
.rj-vcard:hover .rj-vcard__play { transform: scale(1.1); }
.rj-vcard__title { font-weight: 650; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rj-vcard:hover .rj-vcard__title { color: var(--brand); }
.rj-vcard__date { margin-top: -6px; color: var(--text-3); font-size: 13px; }
.rj-grid--videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }

/* Brand tiles */
.rj-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rj-brand-tile {
	position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; overflow: hidden;
	border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
	color: var(--text); text-decoration: none; transition: transform .15s var(--ease), border-color .15s;
}
a.rj-brand-tile:hover { transform: translateY(-2px); border-color: var(--droid); }
.rj-brand-tile::after {
	content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 112px; border-radius: 16px;
	border: 2px solid color-mix(in srgb, var(--droid) 30%, transparent); transform: rotate(18deg);
}
.rj-brand-tile__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.rj-brand-tile__count { color: var(--droid); font-size: 13px; font-weight: 700; }
.rj-brand-tile__list { color: var(--text-3); font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Device grid on brand pages */
.rj-devgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.rj-devcard {
	display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px 16px;
	border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
	color: var(--text); text-decoration: none; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.3;
	transition: transform .15s var(--ease), border-color .15s;
}
.rj-devcard:hover { transform: translateY(-2px); border-color: var(--droid); }
.rj-devcard__img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); color: var(--text-3); overflow: hidden; }
.rj-devcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* ---------- Page heads ---------- */
.rj-pagehead {
	--tc: var(--brand);
	padding: 26px 0 24px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 9%, var(--bg)), var(--bg));
	border-bottom: 1px solid var(--line);
}
.rj-pagehead__row { display: flex; align-items: center; gap: 18px; }
.rj-pagehead__icon {
	display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 20px;
	background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc);
}
.rj-pagehead__title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.rj-pagehead__meta { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.rj-pagehead__desc { color: var(--text-2); margin-top: 6px; }
.rj-pagehead__desc p { margin: 0; }
.rj-pagehead__chips { margin-top: 18px; }
.rj-pagehead .rj-search { margin-top: 18px; max-width: 640px; }
.rj-pagehead--post .rj-chips { margin-top: 14px; }

.rj-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.rj-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.rj-crumbs li + li::before { content: "›"; margin: 0 4px; color: var(--text-3); }
.rj-crumbs a, .rj-crumbs .rj-linkbtn { color: var(--text-2); text-decoration: none; }
.rj-crumbs a:hover, .rj-crumbs .rj-linkbtn:hover { color: var(--brand); }
.rj-crumbs [aria-current] span { color: var(--text-3); }

.rj-postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 0; color: var(--text-2); font-size: 14px; }
.rj-postmeta span, .rj-postmeta a { display: inline-flex; align-items: center; gap: 6px; }
.rj-postmeta__video { color: var(--brand); font-weight: 700; text-decoration: none; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--brand-soft); }

/* ---------- Single / page body ---------- */
.rj-single__layout { display: grid; grid-template-columns: minmax(0, var(--read)); justify-content: center; gap: 40px; padding-top: 30px; }
.has-sidebar .rj-single__layout { grid-template-columns: minmax(0, var(--read)) 300px; }
.rj-single__image { margin: 0 0 28px; border-radius: var(--r-lg); overflow: hidden; }
.rj-single__image img { display: block; width: 100%; }
.rj-page .rj-single__image { margin-top: 30px; }
.rj-page .rj-prose { padding-top: 26px; }
.rj-sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 20px; }

.rj-prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.rj-prose > * { max-width: 100%; }
.rj-prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.rj-prose h3 { font-size: 22px; margin: 1.4em 0 .45em; }
.rj-prose h4 { font-size: 19px; margin: 1.3em 0 .4em; }
.rj-prose h2:first-child, .rj-prose h3:first-child { margin-top: 0; }
.rj-prose p { margin: 0 0 1.15em; }
.rj-prose ul, .rj-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.rj-prose li { margin: .35em 0; }
.rj-prose li::marker { color: var(--brand); font-weight: 700; }
.rj-prose b, .rj-prose strong { color: var(--text); font-weight: 700; }
.rj-prose img { border-radius: var(--r); }
.rj-prose a img { transition: opacity .15s; }
.rj-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rj-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.rj-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.rj-prose .wp-caption, .rj-prose figure { margin: 1.6em 0; max-width: 100%; }
.rj-prose .wp-caption-text, .rj-prose figcaption { color: var(--text-3); font-size: 14px; text-align: center; margin-top: 8px; }
.rj-prose blockquote {
	margin: 1.6em 0; padding: 16px 22px; border-radius: var(--r); background: var(--surface);
	border-left: 4px solid var(--droid); color: var(--text-2);
}
.rj-prose blockquote p:last-child { margin-bottom: 0; }
.rj-prose code, .rj-prose kbd {
	font-family: var(--mono); font-size: .86em; padding: .15em .45em; border-radius: 6px;
	background: var(--surface-3); color: var(--droid);
}
.rj-prose pre {
	position: relative; margin: 1.5em 0; padding: 18px 20px; border-radius: var(--r); overflow-x: auto;
	background: #0a0c0e; color: #d9dde2; font: 14px/1.7 var(--mono); border: 1px solid var(--line);
}
.rj-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.rj-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.rj-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rj-prose th, .rj-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.rj-prose th { color: var(--text); background: var(--surface); }
.rj-table { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--r); }
.rj-table table { margin: 0; }
/* Old content colours its own text (red titles, black text). Keep it readable in both schemes. */
.rj-prose span[style*="color: #000"], .rj-prose span[style*="color:#000"], .rj-prose span[style*="color: rgb(0, 0, 0)"],
.widget span[style*="color: #000"], .widget span[style*="color:#000"],
font[color="#000000"], font[color="#000"], font[color="black"], font[color="#333333"] { color: inherit !important; }
.rj-prose .wp-block-columns { gap: 20px; margin: 1.5em 0; }
.rj-prose .wp-block-button__link { border-radius: 999px; }
.rj-prose--wide { max-width: none; }
.rj-content-error { padding: 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.rj-prose::after { content: ""; display: table; clear: both; }

/* Ad slots from Advanced Ads: give them breathing room, no layout jump. */
.rj-prose [class*="-entity-placement"], .rj-prose [id^="rootj-"] { margin: 0 auto 1.6em; }
.rj-prose [id^="rootj-"] + br { display: none; }

/* ---------- Videos ---------- */
.rj-video {
	position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 1.8em 0; overflow: hidden;
	border-radius: var(--r-lg); background: #000;
	box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.rj-video iframe, .rj-video video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.rj-video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.rj-video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.rj-video__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .55) 100%); }
.rj-video__title {
	position: absolute; left: 22px; right: 22px; top: 18px; color: #fff; text-align: left;
	font-weight: 700; font-size: clamp(15px, 2vw, 19px); line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rj-video__play {
	position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 78px; height: 78px; margin: -39px 0 0 -39px;
	border-radius: 50%; background: #ff3d3d; color: #fff; box-shadow: 0 0 0 10px rgba(255, 61, 61, .22), 0 10px 30px rgba(0, 0, 0, .45);
	transition: transform .25s var(--ease), box-shadow .25s;
}
.rj-video__play .rj-icon { margin-left: 4px; }
.rj-video__badge {
	position: absolute; right: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.rj-video__btn:hover .rj-video__thumb, .rj-video__btn:focus-visible .rj-video__thumb { transform: scale(1.03); filter: brightness(.85); }
.rj-video__btn:hover .rj-video__play, .rj-video__btn:focus-visible .rj-video__play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 61, 61, .2), 0 10px 30px rgba(0, 0, 0, .45); }
.rj-video__btn:focus-visible { outline: 3px solid var(--droid); outline-offset: -3px; }
.rj-video.is-loading .rj-video__play { animation: rj-pulse 1s infinite; }
@keyframes rj-pulse { 50% { transform: scale(.92); } }
/* Block embeds already reserve 16:9 space with ::before; the frame does it now. */
.wp-block-embed .wp-block-embed__wrapper::before { display: none !important; }
.wp-block-embed .wp-block-embed__wrapper { position: static !important; }
.wp-block-embed.is-type-video { margin: 1.8em 0; }
.wp-block-embed.is-type-video .rj-video { margin: 0; }
/* Two videos side by side in old column layouts. */
.wp-block-column .rj-video { margin: .6em 0 1em; border-radius: var(--r); }
.wp-block-column .rj-video__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.rj-prose video { width: 100%; border-radius: var(--r-lg); background: #000; }

/* ---------- Post bottom ---------- */
.rj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.rj-tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 14px; text-decoration: none; }
.rj-tags a:hover { color: var(--text); background: var(--surface-3); }
.rj-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0; }
.rj-postnav a {
	display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r);
	background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; line-height: 1.35;
}
.rj-postnav a:hover { border-color: var(--brand); }
.rj-postnav small { color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.rj-postnav__next { grid-column: 2; text-align: right; }
.rj-related { margin: 20px 0 10px; padding-top: 34px; border-top: 1px solid var(--line); }
.rj-related .rj-section-title { margin-bottom: 18px; }
.rj-siblings { margin: 34px 0; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rj-siblings .rj-section-title { font-size: 19px; margin-bottom: 14px; }
.rj-pagelinks { margin: 20px 0; }

/* ---------- Pagination ---------- */
.pagination { margin: 36px 0 10px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--text-3); }
.pagination .dots { background: none; border: 0; }

/* ---------- Comments ---------- */
.rj-comments { margin: 40px 0; padding-top: 30px; border-top: 1px solid var(--line); }
.rj-comment-list, .rj-comment-list .children { list-style: none; margin: 18px 0; padding: 0; }
.rj-comment-list .children { padding-left: 22px; border-left: 2px solid var(--line); }
.rj-comment-list .comment-body { padding: 16px 18px; margin-bottom: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.rj-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rj-comment-list .avatar { border-radius: 50%; }
.rj-comment-list .says { display: none; }
.rj-comment-list .comment-metadata { font-size: 13px; margin: 2px 0 8px 50px; }
.rj-comment-list .comment-metadata a { color: var(--text-3); text-decoration: none; }
.rj-comment-list .reply a { font-size: 14px; font-weight: 600; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px;
}
.comment-form textarea { min-height: 140px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Empty / 404 ---------- */
.rj-empty { max-width: 560px; margin: 30px auto 40px; text-align: center; color: var(--text-2); }
.rj-empty > .rj-icon { color: var(--droid); }
.rj-empty h1, .rj-empty h2 { color: var(--text); margin-top: 10px; }
.rj-empty .rj-search { margin: 20px 0; text-align: left; }
.rj-empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.rj-404 { margin: 0; font: 800 clamp(80px, 16vw, 150px)/1 var(--font); letter-spacing: -.06em; background: linear-gradient(120deg, var(--brand), var(--droid)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Widgets ---------- */
.widget { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.widget-title { font-size: 16px; margin: 0 0 12px; }
.widget ul { margin: 0; padding-left: 1.1em; }
.widget img { border-radius: var(--r-sm); }
.widget select, .widget input[type="search"], .widget input[type="text"] {
	max-width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px;
}
.widget center { display: block; }

/* ---------- Footer ---------- */
.rj-footer { margin-top: 60px; padding: 40px 0 30px; background: var(--bg-2); border-top: 1px solid var(--line); }
.rj-footer__widgets { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.rj-footer__col { flex: 1 1 240px; min-width: 0; }
.rj-footer__widgets .widget { height: 100%; text-align: center; }
/* Unclosed tags in widget HTML (e.g. <font>) get moved here by the browser: don't let them take a column. */
.rj-footer__widgets > :not(.rj-footer__col) { display: contents; }
.rj-footer__topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.rj-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.rj-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.rj-footer__menu a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.rj-footer__menu a:hover { color: var(--text); }
.rj-footer__note { margin: 0; color: var(--text-3); font-size: 14px; }

/* ---------- Bottom bar (phones) ---------- */
.rj-bottombar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.rj-nav .rj-menu { display: none; }
	.rj-menubtn { display: inline-grid !important; }
	.has-sidebar .rj-single__layout { grid-template-columns: minmax(0, var(--read)); }
	.rj-sidebar { position: static; }
	.rj-grid--feature { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	:root { --header-h: 60px; }
	body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
	.rj-nav, .rj-dl { display: none; }
	.rj-actions .rj-iconbtn[data-open="search"], .rj-menubtn { display: none !important; }
	.rj-hero { padding: 34px 0 28px; }
	.rj-hero__inner { grid-template-columns: 1fr; }
	.rj-hero__device { display: none; }
	.rj-grid--feature { grid-template-columns: 1fr; }
	.rj-grid--feature > .rj-card--wide { grid-column: auto; grid-row: auto; }
	.rj-card--wide .rj-card__media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
	.rj-grid { grid-template-columns: 1fr; gap: 16px; }
	.rj-grid--videos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
	.rj-prose { font-size: 17px; }
	.rj-prose .alignleft, .rj-prose .alignright { float: none; margin: 1em auto; display: block; }
	.rj-postnav { grid-template-columns: 1fr; }
	.rj-postnav__next { grid-column: auto; }
	.rj-pagehead__icon { width: 54px; height: 54px; border-radius: 16px; }
	.rj-pagehead__icon .rj-icon { width: 28px; height: 28px; }
	.rj-video { border-radius: var(--r); margin-left: -4px; margin-right: -4px; width: calc(100% + 8px); }
	.rj-video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.rj-video__badge { display: none; }

	/* Panels become bottom sheets. */
	.rj-panel {
		left: 0; right: 0; top: auto; bottom: 0; width: 100% !important; max-height: 88vh;
		transform: translateY(24px); border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0;
		padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
	}
	.rj-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: var(--surface-3); }
	.rj-panel.is-on { transform: none; }
	.rj-panel--devices { height: 88vh; }
	.rj-finder__group ul { grid-template-columns: 1fr 1fr; }
	.rj-topic-tiles { grid-template-columns: 1fr 1fr; }

	.rj-bottombar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
		display: grid; grid-template-columns: repeat(5, 1fr);
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--surface) 92%, transparent);
		backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		border-top: 1px solid var(--line);
	}
	.rj-bottombar > a, .rj-bottombar > button {
		display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px;
		border: 0; background: none; color: var(--text-2); text-decoration: none; font-size: 12px; font-weight: 600; cursor: pointer;
	}
	.rj-bottombar .rj-icon { width: 56px; height: 30px; padding: 3px 16px; border-radius: 999px; transition: background .2s; }
	.rj-bottombar .is-active, .rj-bottombar [aria-expanded="true"] { color: var(--text); }
	.rj-bottombar .is-active .rj-icon, .rj-bottombar [aria-expanded="true"] .rj-icon { background: var(--droid-soft); color: var(--droid); }
}

@media (max-width: 520px) {
	.rj-wrap { padding: 0 16px; }
	.rj-brand__name { font-size: 18px; }
	.rj-hero__finder small { display: none; }
	.rj-hero__actions .rj-btn { flex: 1; }
	.rj-finder__group ul { grid-template-columns: 1fr; }
	.rj-topic-tiles { grid-template-columns: 1fr; }
	.rj-brands { grid-template-columns: 1fr 1fr; }
	.rj-brand-tile { padding: 14px; }
	.rj-brand-tile__name { font-size: 17px; }
	.rj-brand-tile__list { display: none; }
	.rj-devgrid { grid-template-columns: repeat(2, 1fr); }
	.rj-section-title { font-size: 21px; }
	.rj-search { flex-direction: column; align-items: stretch; }
}

@media (max-width: 782px) { .admin-bar .rj-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rj-header { top: 0; } }

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

body.rj-locked { overflow: hidden; }
