/* ==========================================================================
   RAIED TECH — main stylesheet
   Dark-first, RTL-first. Editorial design system: one accent color, flat
   surfaces, hairline borders. [data-scheme] switches the tokens.
   ========================================================================== */

:root {
	--accent: #f59e0b;
	--accent-2: #f59e0b;
	--hot: #ef4444;
	--ok: #10b981;

	--radius: 12px;
	--radius-sm: 8px;
	--container: 1240px;
	--gutter: 16px;
	--header-h: 68px;

	--font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

	--ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
[data-scheme="dark"] {
	color-scheme: dark;
	--bg: #0b0e13;
	--bg-2: #0e131a;
	--surface: #121822;
	--surface-2: #182030;
	--card: rgba(255, 255, 255, .02);
	--line: rgba(148, 163, 184, .13);
	--line-2: rgba(148, 163, 184, .26);
	--ink: #e8ecf3;
	--ink-2: #c2cddd;
	--muted: #8a97ab;
	--glass: rgba(11, 14, 19, .78);
	--shadow: 0 18px 44px -18px rgba(0, 0, 0, .55);
	--glow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
	--on-accent: #221602;
}

[data-scheme="light"] {
	color-scheme: light;
	--bg: #f6f5f1;
	--bg-2: #efede6;
	--surface: #ffffff;
	--surface-2: #f2f0ea;
	--card: #ffffff;
	--line: #e3e1d7;
	--line-2: #cfccc0;
	--ink: #151a22;
	--ink-2: #2b3442;
	--muted: #5f6b7d;
	--glass: rgba(255, 255, 255, .85);
	--shadow: 0 14px 34px -18px rgba(21, 26, 34, .22);
	--glow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
	--on-accent: #221602;
}
[data-scheme="light"] { --accent-ink: #b45309; }
[data-scheme="dark"], :root { --accent-ink: var(--accent); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	overflow-x: hidden;
	overflow-x: clip;
	max-width: 100vw;
	width: 100%;
}
body {
	margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-x: hidden;
	overflow-x: clip;
	max-width: 100vw;
	width: 100%;
	position: relative; -webkit-tap-highlight-color: transparent;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
/* No letter-spacing: it breaks Arabic letter joining. */
h1, h2, h3, h4, h5, h6 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; word-break: break-word; overflow-wrap: break-word; }
p, li, summary { margin: 0 0 1em; word-break: break-word; overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.screen-reader-text, .rt-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rt-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 999; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; }
.rt-skip:focus { top: 12px; }

.rt-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); min-width: 0; }
.rt-container--narrow { max-width: 860px; }
.rt-center { text-align: center; margin-top: 28px; }
.rt-mt { margin-top: 40px; }

.rt-i { flex: none; width: 1.1em; height: 1.1em; vertical-align: -.18em; }

/* ---------- Buttons & chips ---------- */
.rt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2);
	background: var(--surface-2); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; white-space: nowrap;
}
.rt-btn:hover { color: var(--ink); transform: translateY(-1px); border-color: var(--accent); }
.rt-btn--glow {
	border-color: var(--accent); color: var(--on-accent); background: var(--accent);
}
.rt-btn--glow:hover { color: var(--on-accent); background: color-mix(in srgb, var(--accent) 88%, #fff); }
.rt-btn--ghost { background: transparent; }
.rt-btn--sm { padding: 6px 14px; font-size: 13px; }

.rt-icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
	background: var(--card); color: var(--ink-2); transition: .2s;
}
.rt-icon-btn:hover { color: var(--accent-ink); border-color: var(--line-2); }

.rt-chip {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
	color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.rt-chip--hot { color: #fff; background: var(--hot); border-color: transparent; }
.rt-ai-badge {
	display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px;
	color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.rt-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.rt-badge {
	font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
	border: 1px solid var(--line);
}
.rt-badge--free { color: #10b981; border-color: color-mix(in srgb, #10b981 40%, transparent); }
.rt-badge--freemium { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.rt-badge--paid { color: #d97706; border-color: color-mix(in srgb, #d97706 40%, transparent); }
.rt-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.rt-rating .rt-i { fill: currentColor; }

.rt-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; }
.rt-meta span { display: inline-flex; align-items: center; gap: 5px; }

.rt-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); display: inline-block; position: relative; flex: none; }
.rt-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: rt-ping 1.6s infinite; }
@keyframes rt-ping { 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Reading progress ---------- */
.rt-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; }
.rt-progress span { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: var(--accent); }
[dir="ltr"] .rt-progress span { transform-origin: left; }

/* ---------- Ticker ---------- */
.rt-ticker { border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13.5px; }
.rt-ticker__inner { display: flex; align-items: center; gap: 14px; height: 40px; }
.rt-ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 700; padding: 4px 12px; border-radius: 999px;
	background: color-mix(in srgb, var(--hot) 14%, transparent); color: var(--hot);
}
.rt-ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rt-ticker__items { display: flex; gap: 40px; width: max-content; animation: rt-marquee 60s linear infinite; }
.rt-ticker__track:hover .rt-ticker__items { animation-play-state: paused; }
.rt-ticker__items a { color: var(--ink-2); white-space: nowrap; position: relative; }
.rt-ticker__items a::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-inline-end: 10px; vertical-align: 2px; }
@keyframes rt-marquee { to { transform: translateX(50%); } }
[dir="ltr"] .rt-ticker__items { animation-name: rt-marquee-ltr; }
@keyframes rt-marquee-ltr { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.rt-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
.rt-header .rt-container { max-width: 1400px; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile drawer inside the header box. */
.rt-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass);
	backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.admin-bar .rt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rt-header { top: 0; } }
.rt-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.rt-header__burger { display: none; }
.rt-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-shrink: 0; }

.rt-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.rt-brand__logo { max-height: 44px; width: auto; }
.rt-brand__mark {
	width: 34px; height: 34px; border-radius: 8px; position: relative; background: var(--accent);
}
.rt-brand__mark::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; background: var(--bg); }
.rt-brand__text { font: 700 20px/1 var(--mono); letter-spacing: .02em; direction: ltr; display: inline-flex; gap: 4px; }
.rt-brand__text b { color: var(--ink); }
.rt-brand__text i { font-style: normal; color: var(--accent); }

.rt-nav { display: flex; align-items: center; min-width: 0; }
.rt-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rt-nav__list > li { position: relative; }
.rt-nav__list a {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px;
	color: var(--ink-2); font-weight: 600; font-size: 14.5px; line-height: 1.2;
	white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease);
}
.rt-nav__list a:hover, .rt-nav__list .current-menu-item > a, .rt-nav__list .current-cat > a {
	color: var(--ink); background: rgba(255, 255, 255, .06);
}
[data-scheme="light"] .rt-nav__list a:hover,
[data-scheme="light"] .rt-nav__list .current-menu-item > a,
[data-scheme="light"] .rt-nav__list .current-cat > a {
	background: rgba(0, 0, 0, .05);
}
.rt-nav__hl > a, .rt-nav__list .menu-highlight > a {
	color: var(--accent) !important;
	background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
}
.rt-nav__hl > a:hover {
	background: color-mix(in srgb, var(--accent) 20%, transparent) !important;
}

.rt-nav__arrow {
	display: inline-block; font-size: 10px; margin-inline-start: 4px; opacity: .7;
	transition: transform .2s var(--ease);
}
.rt-nav__list li:hover > a .rt-nav__arrow,
.rt-nav__list .menu-item-has-children:hover > a .rt-nav__arrow {
	transform: rotate(180deg);
}
.rt-nav__list .menu-item-has-children > a:not(:has(.rt-nav__arrow))::after {
	content: "▾"; display: inline-block; font-size: 10px; margin-inline-start: 4px; opacity: .7;
	transition: transform .2s var(--ease);
}
.rt-nav__list .menu-item-has-children:hover > a:not(:has(.rt-nav__arrow))::after {
	transform: rotate(180deg);
}

.rt-nav__list .sub-menu {
	position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px; list-style: none;
	margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line-2);
	border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 120;
}
.rt-nav__list li:hover > .sub-menu, .rt-nav__list li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.rt-nav__list .sub-menu a {
	display: block; padding: 9px 14px; font-size: 13.5px; font-weight: 500; border-radius: 8px; white-space: nowrap;
}
.rt-nav__list .sub-menu a:hover {
	background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}

.rt-header.is-scrolled {
	box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45);
	border-bottom-color: var(--line-2);
}

.rt-scheme .rt-i--sun { display: none; }
[data-scheme="light"] .rt-scheme .rt-i--sun { display: block; }
[data-scheme="light"] .rt-scheme .rt-i--moon { display: none; }

@media (max-width: 1180px) {
	.rt-header__burger { display: inline-grid; }
	.rt-header__cta { display: none; }
	.rt-nav {
		display: none;
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: auto;
		width: min(320px, 86vw); background: var(--surface); z-index: 150;
		padding: 70px 16px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
		border-inline-start: 1px solid var(--line); box-shadow: var(--shadow);
		visibility: hidden; pointer-events: none;
	}
	.rt-nav.is-open {
		display: flex; visibility: visible; pointer-events: auto;
		animation: rt-drawer-slide .25s var(--ease) forwards;
	}
	@keyframes rt-drawer-slide {
		from { transform: translateX(100%); opacity: 0; }
		to { transform: translateX(0); opacity: 1; }
	}
	[dir="ltr"] .rt-nav.is-open {
		animation-name: rt-drawer-slide-ltr;
	}
	@keyframes rt-drawer-slide-ltr {
		from { transform: translateX(-100%); opacity: 0; }
		to { transform: translateX(0); opacity: 1; }
	}
	.rt-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.rt-nav__list a { padding: 12px 14px; font-size: 15px; width: 100%; }
	.rt-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		padding: 4px 14px 8px; margin: 4px 0 6px; background: rgba(255, 255, 255, .03); border-radius: 8px;
		display: none;
	}
	.rt-nav__list .menu-item-has-children.is-expanded > .sub-menu {
		display: block;
	}
	.rt-nav__list .menu-item-has-children.is-expanded > a .rt-nav__arrow {
		transform: rotate(180deg);
	}
	body.rt-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 120; }
	body.rt-nav-open .rt-header { z-index: 130; }
}

@media (max-width: 768px) {
	:root {
		--header-h: 56px;
		--gutter: 14px;
	}
	.rt-header .rt-container {
		padding-inline: 12px;
	}
	.rt-header__inner {
		gap: 8px;
		height: var(--header-h);
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.rt-header__burger {
		width: 38px;
		height: 38px;
		padding: 7px;
		border-radius: 9px;
		flex: none;
	}
	.rt-brand {
		gap: 8px;
		min-width: 0;
		flex-shrink: 1;
		justify-content: flex-start;
	}
	.rt-brand__mark {
		width: 28px;
		height: 28px;
		border-radius: 7px;
		flex: none;
	}
	.rt-brand__mark::after {
		inset: 7px;
	}
	.rt-brand__text {
		font-size: 15px;
	}
	.rt-header__actions {
		gap: 4px;
		margin-inline-start: 0;
		flex: none;
	}
	.rt-header__actions .rt-icon-btn {
		width: 36px;
		height: 36px;
		padding: 7px;
		border-radius: 9px;
	}
	.rt-header__actions .rt-saved-btn,
	.rt-header__actions .rt-pwa-btn,
	.rt-header__actions .rt-header__cta {
		display: none !important;
	}
	.rt-ticker {
		display: none !important;
	}
}

/* ---------- Search overlay ---------- */
.rt-search { position: fixed; inset: 0; z-index: 300; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rt-search__panel { padding-top: 14vh; }
.rt-search__form {
	display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
	padding: 10px 14px 10px 10px; box-shadow: var(--shadow);
}
.rt-search__form > .rt-i { width: 24px; height: 24px; color: var(--muted); margin-inline-start: 6px; }
.rt-search__form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: clamp(18px, 3vw, 24px); padding: 10px 0; outline: none; }
.rt-search__hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; align-items: center; }
.rt-search__hints a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- Ads ---------- */
.rt-ad { max-width: var(--container); margin: 20px auto; padding-inline: var(--gutter); text-align: center; position: relative; }
.rt-ad__label { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.rt-prose .rt-ad { padding: 0; }

/* ---------- Generated cover ---------- */
.rt-cover {
	position: relative; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 16 / 10; overflow: hidden;
	background:
		linear-gradient(150deg, hsl(var(--h) 42% 22%), hsl(calc(var(--h) + 40) 45% 13%));
	display: grid; place-items: center;
}
.rt-cover__grid {
	position: absolute; inset: 0; opacity: .3;
	background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.rt-cover__orb {
	position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%;
	border: 2px solid hsl(var(--h) 75% 62% / .85);
	box-shadow: inset 0 0 0 10px hsl(var(--h) 75% 62% / .12);
}
.rt-cover__label { position: absolute; bottom: 12px; inset-inline-start: 14px; font: 600 12px var(--mono); color: rgba(255, 255, 255, .65); letter-spacing: .04em; }

/* ---------- Hero ---------- */
.rt-hero { padding-top: 28px; }
.rt-hero__grid {
	display: grid; gap: 16px; grid-template-columns: 1.9fr 1fr 1.05fr;
	grid-template-areas: "lead s1 trend" "lead s2 trend";
}
.rt-hero__item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 220px; isolation: isolate; }
.rt-hero__item--lead { grid-area: lead; min-height: 480px; }
.rt-hero__item:nth-of-type(2) { grid-area: s1; }
.rt-hero__item:nth-of-type(3) { grid-area: s2; }
.rt-hero__media, .rt-hero__media img, .rt-hero__media .rt-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.rt-hero__media img { transition: transform .8s var(--ease); }
.rt-hero__item:hover .rt-hero__media img { transform: scale(1.04); }
.rt-hero__item::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 25%, rgba(3, 6, 14, .55) 55%, rgba(3, 6, 14, .95)); pointer-events: none; }
.rt-hero .rt-cover__label { display: none; }
.rt-hero__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 22px; color: #f1f5f9; }
.rt-hero__body .rt-meta { color: rgba(226, 232, 240, .75); }
.rt-hero__title { font-size: 18px; margin: 10px 0 8px; }
.rt-hero__item--lead .rt-hero__title { font-size: clamp(24px, 3vw, 36px); line-height: 1.3; }
.rt-hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.rt-hero__excerpt { color: rgba(226, 232, 240, .85); max-width: 640px; font-size: 16px; }
.rt-card__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.rt-trending { grid-area: trend; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; }
.rt-trending__title { font-size: 16px; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin: 0; border-bottom: 1px solid var(--line); }
.rt-trending__title .rt-i { color: var(--hot); }

.rt-mini { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rt-mini:last-child { border-bottom: 0; }
.rt-mini__num {
	font: 700 26px/1 var(--mono); color: var(--line-2); flex: none; min-width: 34px;
}
.rt-mini__title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; }

@media (max-width: 1100px) {
	.rt-hero__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "lead lead" "s1 s2" "trend trend"; }
	.rt-hero__item--lead { min-height: 420px; }
}
@media (max-width: 640px) {
	.rt-hero { padding-top: 16px; }
	.rt-hero__grid { grid-template-columns: 1fr; grid-template-areas: "lead" "s1" "s2" "trend"; }
	.rt-hero__item--lead { min-height: 400px; }
	.rt-hero__body { padding: 16px; }
}

/* ---------- Pulse strip ---------- */
.rt-pulse-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; }
.rt-pulse-strip > div {
	display: flex; align-items: baseline; gap: 8px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line);
}
.rt-pulse-strip > div:first-child { border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm); }
.rt-pulse-strip > div:last-child { border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); }
.rt-pulse-strip b { font: 700 22px/1 var(--mono); color: var(--accent-ink); }
.rt-pulse-strip span { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
	.rt-pulse-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
	.rt-pulse-strip > div { border-radius: var(--radius-sm) !important; }
}

/* ---------- Sections ---------- */
.rt-section { padding-block: 44px 8px; }
.rt-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rt-section__title { font-size: clamp(20px, 2.4vw, 26px); margin: 0; display: flex; align-items: center; gap: 10px; }
.rt-section__title::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); flex: none; }
.rt-link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 14px; }

.rt-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-filters button {
	border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: 13.5px; transition: .2s;
}
.rt-filters button small { color: var(--muted); font-size: 11px; }
.rt-filters button:hover { border-color: var(--line-2); color: var(--ink); }
.rt-filters button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rt-filters button.is-active small { color: inherit; opacity: .6; }

.rt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .rt-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rt-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.rt-card {
	display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.rt-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.rt-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.rt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rt-card:hover .rt-card__media img { transform: scale(1.05); }
.rt-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rt-card__title { font-size: 17.5px; margin: 0; line-height: 1.5; }
.rt-card__excerpt { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.rt-card.is-hidden { display: none; }

.rt-card--row { flex-direction: row; align-items: stretch; }
.rt-card--row .rt-card__media { width: 38%; flex: none; aspect-ratio: auto; min-height: 110px; }
.rt-card--row .rt-card__media .rt-cover { aspect-ratio: auto; height: 100%; }
.rt-card--row .rt-card__body { padding: 12px 14px; }
.rt-card--row .rt-card__title { font-size: 15.5px; }
.rt-list { display: grid; gap: 12px; }

.rt-catblock__grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(3, auto); gap: 14px; }
.rt-catblock__grid > :first-child { grid-row: span 3; }
@media (max-width: 860px) { .rt-catblock__grid { grid-template-columns: 1fr; } .rt-catblock__grid > :first-child { grid-row: auto; } }

/* ---------- Tools ---------- */
.rt-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rt-tool {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px;
	transition: .25s var(--ease);
}
.rt-tool:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.rt-tool.is-hidden { display: none; }
.rt-tool__link { display: flex; gap: 12px; align-items: center; }
.rt-tool__link:hover { color: inherit; }
.rt-tool__logo {
	width: 52px; height: 52px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden;
	background: var(--surface-2); font-weight: 700; font-size: 22px; color: var(--accent-ink); border: 1px solid var(--line);
}
.rt-tool__logo img { width: 100%; height: 100%; object-fit: cover; }
.rt-tool__logo--lg { width: 88px; height: 88px; border-radius: 16px; font-size: 36px; }
.rt-tool__info { display: flex; flex-direction: column; min-width: 0; }
.rt-tool__name { font-size: 16px; }
.rt-tool__tagline { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt-tool__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }

.rt-tool-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.rt-tool-hero > div { flex: 1; min-width: 240px; }
.rt-tool-hero__cta { margin-inline-start: auto; }

.rt-dir-search {
	display: flex; align-items: center; gap: 10px; max-width: 620px; margin-top: 22px; padding: 6px 16px; border-radius: 12px;
	background: var(--surface); border: 1px solid var(--line-2);
}
.rt-dir-search:focus-within { box-shadow: var(--glow); }
.rt-dir-search .rt-i { color: var(--muted); }
.rt-dir-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: 16px; min-width: 0; }
.rt-dir-bar { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.rt-dir-bar select { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* ---------- Glossary & prompts ---------- */
.rt-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rt-term { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rt-term h2 { font-size: 17px; margin-bottom: 6px; }
.rt-term p { color: var(--muted); font-size: 14px; margin: 0; }
.rt-term.is-hidden, .rt-prompt.is-hidden { display: none; }

.rt-prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .rt-prompts { grid-template-columns: 1fr; } }
.rt-prompt { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rt-prompt header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rt-prompt h2 { font-size: 16.5px; margin: 0; }
.rt-prompt .rt-btn { align-self: flex-start; }
.rt-prompt--single { margin-bottom: 28px; }
.rt-prompt__text {
	margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed var(--line-2);
	font: 14px/1.8 var(--font); white-space: pre-wrap; color: var(--ink-2); max-height: 220px; overflow: auto;
}
.rt-prompt--single .rt-prompt__text { max-height: none; font-size: 15.5px; }

/* ---------- Daily cards ---------- */
.rt-daily { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .rt-daily { grid-template-columns: 1fr; } }
.rt-daily__card {
	padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--accent);
	background: var(--surface); display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.rt-daily__card--code { border-top-color: var(--line-2); }
.rt-daily__card h3 { font-size: 22px; margin: 0; }
.rt-daily__card p { color: var(--ink-2); margin: 0; }
.rt-daily__card .rt-prompt__text { width: 100%; }

/* ---------- Newsletter ---------- */
.rt-newsletter { margin-top: 64px; padding-block: 56px; border-block: 1px solid var(--line); background: var(--bg-2); }
.rt-newsletter__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; position: relative; }
.rt-newsletter h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0; }
.rt-newsletter p { color: var(--ink-2); margin: 0; }
.rt-newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-newsletter__form input[type=email] {
	flex: 1; min-width: 220px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); outline: none;
}
.rt-newsletter__form input[type=email]:focus { box-shadow: var(--glow); }
.rt-newsletter__msg { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; min-height: 1.5em; }
.rt-newsletter__msg.is-ok { color: var(--ok); }
.rt-newsletter__msg.is-err { color: #f87171; }
@media (max-width: 800px) { .rt-newsletter__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.rt-footer { padding-top: 56px; background: var(--bg); }
.rt-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.rt-footer__about p { color: var(--muted); margin: 16px 0; max-width: 380px; font-size: 14.5px; }
.rt-footer__title { font-size: 15px; margin-bottom: 14px; }
.rt-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rt-footer__links a { color: var(--muted); font-size: 14.5px; }
.rt-footer__links a:hover { color: var(--accent-ink); }
.rt-social { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.rt-social a:hover { color: var(--accent-ink); border-color: var(--accent); }
.rt-footer__bottom { border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: 13px; }
.rt-footer__bottom .rt-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .rt-footer__grid { grid-template-columns: 1fr 1fr; } .rt-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rt-footer__grid { grid-template-columns: 1fr; } }

.rt-totop {
	position: fixed; bottom: 24px; inset-inline-end: 24px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
	background: var(--surface); color: var(--ink); display: grid; place-items: center; z-index: 80; box-shadow: var(--shadow);
}

/* ---------- Page head / archive ---------- */
.rt-page-head { padding-block: 48px 36px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.rt-page-head > .rt-container { position: relative; }
.rt-page-head__title { font-size: clamp(26px, 4vw, 42px); margin: 8px 0; }
.rt-page-head__desc { color: var(--ink-2); max-width: 720px; font-size: 17px; }
.rt-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.rt-crumbs a:hover { color: var(--accent-ink); }
.rt-inline-search { display: flex; gap: 8px; max-width: 520px; margin-top: 18px; }
.rt-inline-search input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }

.rt-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.rt-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 8px;
	border: 1px solid var(--line); background: var(--surface); font-weight: 600;
}
.rt-pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.rt-empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.rt-empty .rt-btn { margin-top: 12px; }

.rt-404 { text-align: center; padding-block: 80px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rt-404__code { font: 700 clamp(90px, 18vw, 180px)/1 var(--mono); color: var(--accent); }
.rt-404 .rt-inline-search { width: 100%; }

/* ---------- Article ---------- */
.rt-article__head { padding-top: 36px; }
.rt-article__title { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.3; margin: 14px 0 12px; }
.rt-article__lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.8; }
.rt-article__byline { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-block: 1px solid var(--line); margin-top: 18px; }
.rt-article__author { font-weight: 600; }
.rt-avatar { border-radius: 50%; }
.rt-article__media { margin-block: 28px; }
.rt-article__media img, .rt-article__media .rt-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.rt-article__media figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }

.rt-article__layout { display: grid; grid-template-columns: 56px minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.rt-article__main { min-width: 0; max-width: 760px; }
.rt-share { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 8px; }
.rt-share a, .rt-share button {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
	color: var(--ink-2); transition: .2s;
}
.rt-share a:hover, .rt-share button:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.rt-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.rt-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rt-widget__title { font-size: 16px; display: flex; gap: 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rt-widget__title .rt-i { color: var(--hot); }
.rt-widget ul { margin: 0; padding-inline-start: 18px; }

@media (max-width: 1100px) {
	.rt-article__layout { grid-template-columns: minmax(0, 1fr); }
	.rt-article__main { max-width: 760px; margin-inline: auto; width: 100%; }
	.rt-sidebar { position: static; max-width: 760px; margin-inline: auto; width: 100%; }
	.rt-share {
		position: fixed; top: auto; bottom: 0; inset-inline: 0; z-index: 90; flex-direction: row; justify-content: center; padding: 8px;
		background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
	}
	.rt-share a, .rt-share button { width: 42px; height: 42px; }
	body.single-post { padding-bottom: 60px; }
	body.single-post .rt-totop, body.single-post .rt-chat__fab { bottom: 76px; }
}

.rt-tldr {
	border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px;
	background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent);
}
.rt-tldr__title { font-size: 16px; display: flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.rt-tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rt-tldr li { position: relative; padding-inline-start: 26px; color: var(--ink); }
.rt-tldr li::before {
	content: "✓"; position: absolute; inset-inline-start: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; font-size: 11px;
	display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; line-height: 1;
}

.rt-toc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 28px; background: var(--surface); }
.rt-toc summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.rt-toc summary::-webkit-details-marker { display: none; }
.rt-toc ol { margin: 10px 0 4px; padding-inline-start: 22px; display: grid; gap: 4px; }
.rt-toc a { color: var(--ink-2); font-size: 15px; }
.rt-toc a.is-active { color: var(--accent-ink); font-weight: 600; }
.rt-toc .is-sub { margin-inline-start: 16px; font-size: 14px; }

/* Prose */
.rt-prose { font-size: 18px; line-height: 2; color: var(--ink-2); }
.rt-prose > * { margin-block: 0 1.2em; }
.rt-prose h2 { font-size: 1.45em; color: var(--ink); margin-top: 1.8em; padding-top: .2em; }
.rt-prose h3 { font-size: 1.2em; color: var(--ink); margin-top: 1.5em; }
.rt-prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rt-prose strong { color: var(--ink); }
.rt-prose ul, .rt-prose ol { padding-inline-start: 1.4em; }
.rt-prose li { margin-bottom: .4em; }
.rt-prose li::marker { color: var(--accent); }
.rt-prose blockquote {
	margin-inline: 0; padding: 16px 22px; border-inline-start: 3px solid var(--accent); background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-size: 1.05em;
}
[dir="rtl"] .rt-prose blockquote { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.rt-prose img, .rt-prose figure img { border-radius: var(--radius-sm); }
.rt-prose figure { margin-inline: 0; }
.rt-prose figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.rt-prose code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.rt-prose pre { background: #0a0f1e; color: #e2e8f0; padding: 18px; border-radius: var(--radius-sm); overflow: auto; direction: ltr; text-align: left; font-size: 14px; line-height: 1.7; }
.rt-prose pre code { background: none; padding: 0; }
.rt-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.rt-prose th, .rt-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.rt-prose th { background: var(--surface); color: var(--ink); }
.rt-prose hr { border: 0; border-top: 1px solid var(--line); }
.rt-prose .wp-block-embed, .rt-prose iframe { border-radius: var(--radius-sm); }
@media (max-width: 640px) { .rt-prose { font-size: 17px; line-height: 1.95; } }

.rt-faq { margin-top: 36px; }
.rt-faq h2 { font-size: 22px; }
.rt-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.rt-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.rt-faq summary::-webkit-details-marker { display: none; }
.rt-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent-ink); transition: transform .2s; }
.rt-faq details[open] summary::after { transform: rotate(45deg); }
.rt-faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

.rt-source { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 24px; }
.rt-source a { color: var(--accent-ink); }
.rt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rt-tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.rt-tags a::before { content: "#"; color: var(--accent); margin-inline-end: 2px; }

.rt-ask-inline {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding: 16px 20px;
	border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.rt-ask-inline span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.rt-author-box { display: flex; gap: 16px; margin-top: 32px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rt-author-box h3 { margin: 2px 0 6px; font-size: 18px; }
.rt-author-box p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Comments */
.rt-comments { margin-top: 40px; }
.rt-comments__list, .rt-comments__list .children { list-style: none; padding: 0; margin: 0; }
.rt-comments__list .children { padding-inline-start: 28px; }
.rt-comments .comment-body { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; }
.rt-comments .comment-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.rt-comments .comment-meta img { border-radius: 50%; }
.rt-comments .reply a { font-size: 13px; color: var(--accent-ink); }
.comment-respond { margin-top: 24px; }
.comment-form { display: grid; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink-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(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); outline: none;
}
.comment-form textarea:focus, .comment-form input:focus { box-shadow: var(--glow); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.comment-form-cookies-consent label { margin: 0; }

/* ---------- Chat widget ---------- */
.rt-chat { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 110; }
.rt-chat__fab {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px;
	background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: var(--shadow);
}
[dir="rtl"] .rt-chat__fab { padding: 8px 8px 8px 18px; }
.rt-chat__fab-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .16); color: inherit; }
.rt-chat__fab-icon .rt-i { width: 22px; height: 22px; }
.rt-chat.is-open .rt-chat__fab { display: none; }
.rt-chat__panel {
	width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.rt-chat__panel[hidden] { display: none; }
.rt-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.rt-chat__head strong { display: block; font-size: 15px; }
.rt-chat__head small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.rt-chat__head small .rt-pulse { background: var(--ok); }
.rt-chat__head .rt-icon-btn { margin-inline-start: auto; }
.rt-chat__avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.rt-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rt-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; word-wrap: break-word; }
.rt-msg--bot { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.rt-msg--me { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-start-end-radius: 4px; }
.rt-msg__sources { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); white-space: normal; }
.rt-msg__sources a { font-size: 13px; color: var(--accent-ink); }
.rt-msg__sources a::before { content: "↗ "; }
.rt-typing { display: inline-flex; gap: 4px; }
.rt-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: rt-blink 1.2s infinite; }
.rt-typing i:nth-child(2) { animation-delay: .2s; }
.rt-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes rt-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.rt-chat__chips { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.rt-chat__chips button { flex: none; border: 1px solid var(--line); background: var(--card); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.rt-chat__chips button:hover { border-color: var(--accent); color: var(--ink); }
.rt-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.rt-chat__form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none; }
.rt-chat__form input:focus { border-color: var(--accent); }
.rt-chat__send { border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 0; }
.rt-chat__send:hover { color: var(--on-accent); }
[dir="rtl"] .rt-chat__send .rt-i { transform: scaleX(-1); }
@media (max-width: 640px) {
	.rt-chat { bottom: 16px; inset-inline-start: 16px; }
	.rt-chat__fab-text { display: none; }
	.rt-chat__fab, [dir="rtl"] .rt-chat__fab { padding: 6px; }
	.rt-chat.is-open { inset: 0; }
	.rt-chat.is-open .rt-chat__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
	.rt-totop { bottom: 16px; inset-inline-end: 16px; }
}

/* ---------- Toast ---------- */
.rt-toast {
	position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 400;
	background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: .25s var(--ease);
	pointer-events: none;
}
.rt-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 13px; color: var(--muted); }
.bypostauthor > .comment-body { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ---------- Live search results ---------- */
.rt-search__results { margin-top: 14px; display: grid; gap: 6px; }
.rt-search__hit {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s;
}
.rt-search__hit:hover { border-color: var(--line-2); color: var(--ink); }
.rt-search__hit strong { font-size: 15px; font-weight: 600; }
.rt-search__hit span { flex: none; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.rt-search__none { margin: 0; padding: 8px 4px; color: var(--muted); font-size: 14px; }

/* ---------- Saved articles ---------- */
.rt-saved-btn { position: relative; }
.rt-saved-btn__count {
	position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--mono); text-align: center;
}
.rt-saved { position: fixed; inset: 0; z-index: 290; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rt-saved__panel { padding-top: 10vh; max-width: 640px; }
.rt-saved__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rt-saved__head h2 { margin: 0; font-size: 22px; }
.rt-saved__list { display: grid; gap: 8px; }
.rt-saved__item {
	display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-sm); padding: 8px 16px; padding-inline-end: 8px;
}
.rt-saved__item a { flex: 1; min-width: 0; padding: 8px 0; font-weight: 600; font-size: 15px; }
.rt-saved__empty { color: var(--muted); }
[data-rt-save].is-on { color: var(--accent-ink); border-color: var(--accent); }
[data-rt-save].is-on .rt-i { fill: currentColor; }

/* ---------- Code copy ---------- */
.rt-pre { position: relative; }
.rt-pre pre { margin: 0; }
.rt-pre__copy {
	position: absolute; top: 8px; inset-inline-end: 8px; padding: 4px 12px; border-radius: 6px;
	border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
	font-size: 12px; font-weight: 600; opacity: 0; transition: .2s;
}
.rt-pre:hover .rt-pre__copy, .rt-pre__copy:focus-visible { opacity: 1; }

/* ---------- Quote selection popover ---------- */
.rt-quote-pop {
	position: absolute; z-index: 250; display: flex; gap: 6px; padding: 6px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow);
}
.rt-quote-pop button { border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.rt-quote-pop button:hover { background: var(--surface-2); color: var(--accent-ink); }

/* ---------- Article Helpful Rating Widget ---------- */
.rt-feedback {
	margin: 28px 0;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
	position: relative;
	overflow: hidden;
}
.rt-feedback::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 100%;
	background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
	pointer-events: none;
}
.rt-feedback__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.rt-feedback__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.rt-feedback__title {
	font-weight: 700;
	font-size: 16px;
	color: var(--ink);
}
.rt-feedback__desc {
	font-size: 13px;
	color: var(--muted);
}
.rt-feedback__actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.rt-feedback__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--line-2);
	background: var(--surface-2);
	color: var(--ink);
	transition: all .2s var(--ease);
}
.rt-feedback__btn:hover:not(:disabled) {
	transform: translateY(-2px);
	border-color: var(--accent);
}
.rt-feedback__btn--yes:hover:not(:disabled),
.rt-feedback__btn--yes.is-active {
	background: color-mix(in srgb, var(--ok) 18%, transparent);
	border-color: var(--ok);
	color: #34d399;
}
.rt-feedback__btn--no:hover:not(:disabled),
.rt-feedback__btn--no.is-active {
	background: color-mix(in srgb, #ef4444 18%, transparent);
	border-color: #ef4444;
	color: #f87171;
}
.rt-feedback__btn:disabled {
	cursor: default;
	opacity: .75;
}
.rt-feedback__btn.is-active {
	opacity: 1;
	font-weight: 700;
}
.rt-feedback__count {
	font-variant-numeric: tabular-nums;
	background: rgba(255, 255, 255, .08);
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
}
.rt-feedback__status {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--line);
	font-size: 13px;
	color: var(--ok);
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ---------- Chronological Timeline Archive ---------- */
.rt-timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding-inline-start: 32px;
}
.rt-timeline::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 20px;
	inset-inline-start: 12px;
	width: 2px;
	background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 40%, transparent) 80%, transparent 100%);
}
.rt-timeline-nav {
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.rt-timeline-nav__title {
	font-size: 13px;
	color: var(--muted);
	font-weight: 600;
}
.rt-timeline-nav__scroller {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.rt-timeline__year {
	margin-bottom: 40px;
}
.rt-timeline__year-badge {
	position: relative;
	margin-inline-start: -32px;
	margin-bottom: 24px;
	display: inline-flex;
}
.rt-timeline__year-badge span {
	padding: 6px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), #fbbf24);
	color: #0b1020;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
}
.rt-timeline__month {
	margin-bottom: 32px;
}
.rt-timeline__month-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 10px;
}
.rt-timeline__month-title small {
	font-size: 13px;
	color: var(--muted);
	font-weight: 400;
}
.rt-timeline__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
	margin-inline-start: -26px;
	margin-inline-end: 14px;
	flex-shrink: 0;
}
.rt-timeline__items {
	display: grid;
	gap: 16px;
}
.rt-timeline__item {
	display: flex;
	gap: 16px;
	position: relative;
}
.rt-timeline__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 14px;
	width: 48px;
	flex-shrink: 0;
	text-align: center;
}
.rt-timeline__date b {
	font-size: 20px;
	line-height: 1;
	font-weight: 800;
	color: var(--accent);
}
.rt-timeline__date span {
	font-size: 11px;
	color: var(--muted);
	text-transform: uppercase;
}
.rt-timeline__card {
	flex: 1;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 20px;
	transition: border-color .2s, transform .2s;
}
.rt-timeline__card:hover {
	border-color: var(--line-2);
	transform: translateX(-4px);
}
.rt-timeline__item-title {
	margin: 8px 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}
.rt-timeline__item-title a {
	color: var(--ink);
	text-decoration: none;
}
.rt-timeline__item-title a:hover {
	color: var(--accent);
}
.rt-timeline__item-excerpt {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: var(--ink-2);
	line-height: 1.55;
}
.rt-timeline__readmore {
	margin-inline-start: auto;
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}
.rt-timeline__readmore:hover {
	text-decoration: underline;
}

/* ---------- AI Tool Comparison Page ---------- */
.rt-compare-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 14px 20px;
	border-radius: 999px;
	box-shadow: var(--shadow);
	flex-wrap: wrap;
	max-width: 820px;
	margin-inline: auto;
}
.rt-compare-bar__select {
	display: flex;
	align-items: center;
	gap: 8px;
}
.rt-compare-bar__select label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 600;
}
.rt-compare-bar__select select {
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	border-radius: 8px;
	padding: 6px 12px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
}
.rt-compare-bar__vs {
	font-weight: 800;
	font-size: 14px;
	color: var(--accent);
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(245, 158, 11, .12);
}

.rt-compare-cards {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 20px;
	align-items: center;
	margin-bottom: 32px;
}
@media (max-width: 800px) {
	.rt-compare-cards { grid-template-columns: 1fr; }
	.rt-compare-cards__badge { margin: 8px auto; }
}
.rt-compare-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
	position: relative;
	overflow: hidden;
}
.rt-compare-card--1 { border-color: rgba(34, 211, 238, .3); }
.rt-compare-card--2 { border-color: rgba(245, 158, 11, .3); }
.rt-compare-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}
.rt-compare-card h2 {
	margin: 0 0 4px;
	font-size: 20px;
}
.rt-compare-card h2 a {
	color: var(--ink);
	text-decoration: none;
}
.rt-compare-card h2 a:hover {
	color: var(--accent);
}
.rt-compare-card__desc {
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 18px;
}
.rt-compare-card__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.rt-compare-cards__badge {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--surface-2);
	border: 2px solid var(--accent);
	color: var(--accent);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 16px;
	box-shadow: 0 0 16px rgba(245, 158, 11, .3);
}

.rt-compare-table-wrap {
	overflow-x: auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 32px;
}
.rt-compare-table {
	width: 100%;
	border-collapse: collapse;
	text-align: right;
	font-size: 14px;
}
.rt-compare-table th,
.rt-compare-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
}
.rt-compare-table thead th {
	background: var(--surface-2);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
}
.rt-compare-table thead th:first-child { width: 25%; }
.rt-compare-table thead th:nth-child(2),
.rt-compare-table thead th:nth-child(3) { width: 37.5%; }
.rt-compare-table tbody tr:last-child td { border-bottom: none; }
.rt-compare-table tbody tr:hover td { background: rgba(255, 255, 255, .015); }

.rt-status.is-ok { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.rt-status.is-warn { color: var(--muted); }

.rt-card--verdict {
	background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
	border-color: var(--line-2);
	margin-bottom: 32px;
}
.rt-verdict-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 14px;
}
@media (max-width: 700px) { .rt-verdict-grid { grid-template-columns: 1fr; } }
.rt-verdict-col h3 {
	font-size: 15px;
	margin: 0 0 8px;
	color: var(--accent);
}
.rt-verdict-col p {
	margin: 0;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.6;
}

.rt-compare-section-box {
	margin-bottom: 32px;
	padding: 24px;
}
.rt-compare-dual-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 18px;
}
@media (max-width: 768px) {
	.rt-compare-dual-grid { grid-template-columns: 1fr; }
}
.rt-compare-dual-col {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px;
}
.rt-compare-dual-col__head h3 {
	font-size: 16px;
	margin: 0 0 14px;
	color: var(--ink);
	padding-bottom: 10px;
	border-bottom: 1px dashed var(--line);
}
.rt-compare-ai-callout {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 26px;
	margin-bottom: 32px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, var(--surface) 100%);
	border: 1px solid var(--accent);
	box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}
@media (max-width: 768px) {
	.rt-compare-ai-callout { flex-direction: column; text-align: center; }
}
.rt-compare-ai-callout__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 24px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.rt-compare-ai-callout__body {
	flex-grow: 1;
}
.rt-compare-ai-callout__body h3 {
	font-size: 17px;
	margin: 0 0 6px;
	color: var(--ink);
}
.rt-compare-ai-callout__body p {
	font-size: 13.5px;
	color: var(--ink-2);
	margin: 0;
}

.rt-popular-compares h3 {
	font-size: 15px;
	color: var(--muted);
	margin: 0 0 12px;
}
.rt-popular-compares__links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.rt-tool__compare-btn {
	margin-inline-start: auto;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	color: var(--muted);
	transition: color .2s, background .2s;
}
.rt-tool__compare-btn:hover {
	color: var(--accent);
	background: rgba(255, 255, 255, .06);
}

.rt-tool-hero__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-inline-start: auto;
}

/* ==========================================================================
   AI Tools Directory & Aggregator Platform (TheresAnAIForThat & Toolify)
   ========================================================================== */

/* Directory Hero & Counters */
.rt-dir-hero { text-align: center; padding-bottom: 40px; }
.rt-dir-hero__badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
	background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .25);
	color: var(--accent); font-size: 13.5px; font-weight: 600; margin-bottom: 16px;
}
.rt-pulse-dot {
	width: 8px; height: 8px; border-radius: 50%; background: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); animation: rt-pulse 2s infinite;
}
@keyframes rt-pulse {
	0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); }
	70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
	100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.rt-dir-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 720px;
	margin: 24px auto 0; padding: 12px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--line);
}
@media (max-width: 600px) {
	.rt-dir-stats { grid-template-columns: repeat(2, 1fr); }
}
.rt-dir-stat { display: flex; flex-direction: column; align-items: center; padding: 8px; }
.rt-dir-stat__val { font-size: 22px; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.rt-dir-stat__lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Intent Search Wrap & Assistant Button */
.rt-dir-search-wrap { max-width: 720px; margin: 26px auto 0; }
.rt-dir-search {
	display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 18px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--line-2);
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); transition: border-color .25s, box-shadow .25s;
}
.rt-dir-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.rt-dir-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: 16px; color: var(--ink); }
.rt-dir-ai-assistant-toggle {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
	background: linear-gradient(135deg, rgba(245, 158, 11, .2), rgba(16, 185, 129, .2));
	border: 1px solid rgba(245, 158, 11, .4); color: var(--ink); font-weight: 700; font-size: 13.5px;
	cursor: pointer; transition: transform .2s, border-color .2s; flex: none;
}
.rt-dir-ai-assistant-toggle:hover { transform: translateY(-1px); border-color: var(--accent); }

.rt-dir-quick-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rt-dir-quick-label { font-size: 12.5px; color: var(--muted); }
.rt-quick-tag {
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	padding: 4px 12px; font-size: 12px; color: var(--ink-2); cursor: pointer; transition: .2s;
}
.rt-quick-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Smart AI Matcher Drawer (TheresAnAIForThat) */
.rt-ai-matcher-box {
	max-width: 720px; margin: 24px auto 0; padding: 22px; border-radius: 16px; text-align: start;
	background: color-mix(in srgb, var(--surface) 95%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
	box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .6); animation: rt-slide-down .3s var(--ease);
}
@keyframes rt-slide-down {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
.rt-ai-matcher-box__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rt-ai-matcher-box__title { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--accent); }
.rt-ai-matcher-box__close { background: none; border: none; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
.rt-ai-matcher-box__close:hover { color: var(--ink); }
.rt-ai-matcher-box__sub { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.rt-ai-matcher-box__form { display: flex; gap: 10px; }
.rt-ai-matcher-box__form input {
	flex: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
	padding: 10px 14px; font-size: 14.5px; color: var(--ink); outline: none;
}
.rt-ai-matcher-box__form input:focus { border-color: var(--accent); }
.rt-matcher-loading { padding: 18px 0; text-align: center; color: var(--accent); font-size: 14px; }
.rt-matcher-results { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.rt-matcher-summary {
	background: rgba(16, 185, 129, .08); border-right: 3px solid #10b981; padding: 12px 16px;
	border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.6; margin-bottom: 16px;
}
.rt-matcher-grid { display: grid; gap: 12px; }
.rt-matcher-tool-card {
	display: flex; gap: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2);
	border: 1px solid var(--line); align-items: center;
}
.rt-matcher-tool-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.rt-matcher-tool-info { flex: 1; min-width: 0; }
.rt-matcher-tool-why { font-size: 13px; color: #10b981; margin-top: 4px; }

/* Faceted Directory Toolbar */
.rt-dir-toolbar {
	display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; padding: 16px;
	border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.rt-dir-categories {
	display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.rt-dir-categories button {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
	font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: .2s;
}
.rt-dir-categories button small {
	font-size: 11px; opacity: .7; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 999px;
}
.rt-dir-categories button:hover,
.rt-dir-categories button.is-active {
	background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700;
}
.rt-dir-categories button.is-active small { background: rgba(0, 0, 0, .2); color: inherit; }

.rt-dir-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rt-dir-controls select {
	background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
	padding: 7px 14px; font-size: 13px; color: var(--ink); outline: none; cursor: pointer;
}
.rt-toggle-btn {
	background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
	padding: 7px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .2s;
}
.rt-toggle-btn:hover { border-color: var(--line-2); }
.rt-toggle-btn.is-active {
	background: rgba(16, 185, 129, .15); border-color: #10b981; color: #10b981; font-weight: 600;
}
.rt-dir-actions { display: flex; gap: 8px; margin-inline-start: auto; }

.rt-dir-active-bar {
	display: flex; justify-content: space-between; align-items: center; padding: 8px 14px;
	border-radius: 10px; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .2);
	font-size: 13px; margin-bottom: 18px;
}
.rt-reset-filters-btn {
	background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.rt-reset-filters-btn:hover { text-decoration: underline; }

/* Enhanced Tool Card */
.rt-tool {
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
	display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
	position: relative;
}
.rt-tool:hover {
	transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
}
.rt-tool.is-hidden { display: none !important; }

.rt-tool__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rt-tool__header-link { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.rt-tool__logo {
	width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
	overflow: hidden; background: var(--surface-2); font-weight: 800; font-size: 20px;
	color: var(--accent); border: 1px solid var(--line);
}
.rt-tool__logo img { width: 100%; height: 100%; object-fit: cover; }
.rt-tool__title-wrap { display: flex; flex-direction: column; min-width: 0; }
.rt-tool__title-row { display: flex; align-items: center; gap: 6px; }
.rt-tool__name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-badge-verified {
	display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
	border-radius: 50%; background: #10b981; color: #fff; font-size: 11px; flex: none;
}
.rt-badge-verified--lg {
	width: auto; height: auto; border-radius: 999px; padding: 4px 10px; gap: 4px; font-size: 12px; font-weight: 600;
}
.rt-tool__cat-tag { font-size: 12px; color: var(--muted); margin-top: 2px; }

.rt-tool__bookmark-btn {
	background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
	border-radius: 6px; transition: color .2s, transform .2s; line-height: 1;
}
.rt-tool__bookmark-btn:hover { color: var(--accent); transform: scale(1.15); }
.rt-tool__bookmark-btn.is-bookmarked { color: var(--accent); }

.rt-tool__tagline {
	font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.rt-tool__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rt-badge--arabic { background: rgba(16, 185, 129, .15); color: #10b981; border: 1px solid rgba(16, 185, 129, .3); }
.rt-badge--opensource { background: rgba(59, 130, 246, .15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, .3); }

.rt-tool__foot {
	display: flex; justify-content: space-between; align-items: center; margin-top: auto;
	padding-top: 10px; border-top: 1px solid var(--line);
}
.rt-tool__details-btn { font-size: 12.5px; color: var(--accent); font-weight: 600; text-decoration: none; }
.rt-tool__details-btn:hover { text-decoration: underline; }
.rt-tool__actions { display: flex; align-items: center; gap: 6px; }
.rt-tool__compare-toggle {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
	background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
	cursor: pointer; transition: .2s;
}
.rt-tool__compare-toggle:hover,
.rt-tool__compare-toggle.is-active {
	background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.rt-tool__visit-btn {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
	background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
	text-decoration: none; transition: .2s;
}
.rt-tool__visit-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Sticky Floating Comparison Dock */
.rt-compare-dock {
	position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999;
	width: calc(100% - 32px); max-width: 640px; border-radius: 16px;
	background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, .7); animation: rt-dock-up .25s var(--ease);
}
@keyframes rt-dock-up {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}
.rt-compare-dock__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px;
}
.rt-compare-dock__info { display: flex; flex-direction: column; font-size: 13px; }
.rt-compare-dock__badge { font-weight: 700; color: var(--accent); }
.rt-compare-dock__slots { display: flex; gap: 8px; align-items: center; }
.rt-compare-dock__chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
	background: var(--surface-2); border: 1px solid var(--line); font-size: 12px;
}
.rt-compare-dock__chip button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; }
.rt-compare-dock__actions { display: flex; gap: 8px; align-items: center; }
.rt-compare-dock__clear { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.rt-compare-dock__clear:hover { color: #ef4444; }

/* Single Tool Profile Styles */
.rt-tool-single-hero { padding-bottom: 30px; }
.rt-tool-hero-main { display: flex; gap: 24px; align-items: flex-start; margin-top: 18px; flex-wrap: wrap; }
.rt-tool-hero-content { flex: 1; min-width: 280px; }
.rt-tool-hero-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rt-tool__badges-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.rt-rating--hero {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
	background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px;
}
.rt-tool-hero-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.rt-tool-hero-sub-actions { display: flex; gap: 8px; }
.rt-tool-hero-sub-actions .rt-btn { flex: 1; }

.rt-tool-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .rt-tool-layout { grid-template-columns: 1fr; } }
.rt-tool-layout__main { display: grid; gap: 20px; }
.rt-tool-card-box { padding: 24px; border-radius: 14px; }

.rt-features-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rt-features-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.rt-feature-icon { color: #10b981; flex: none; margin-top: 3px; }

.rt-pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
@media (max-width: 600px) { .rt-pros-cons-grid { grid-template-columns: 1fr; } }
.rt-pros-box, .rt-cons-box { padding: 18px; border-radius: 12px; }
.rt-pros-box { background: rgba(16, 185, 129, .07); border: 1px solid rgba(16, 185, 129, .25); }
.rt-cons-box { background: rgba(239, 68, 68, .07); border: 1px solid rgba(239, 68, 68, .25); }
.rt-pros-box__head, .rt-cons-box__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.rt-pros-box ul, .rt-cons-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.rt-pros-box li::before { content: "✓ "; color: #10b981; font-weight: 700; }
.rt-cons-box li::before { content: "✕ "; color: #ef4444; font-weight: 700; }

.rt-vote-box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.rt-stars-picker { display: flex; align-items: center; gap: 4px; }
.rt-star-btn {
	background: none; border: none; font-size: 26px; color: var(--line-2); cursor: pointer;
	transition: color .15s, transform .15s; padding: 2px 4px; line-height: 1;
}
.rt-star-btn:hover, .rt-star-btn.is-hover, .rt-star-btn.is-active { color: #f59e0b; transform: scale(1.2); }
.rt-vote-feedback { font-size: 13px; color: #10b981; margin-inline-start: 10px; }

/* Sidebar Specs & Share */
.rt-tool-layout__side { display: grid; gap: 20px; }
.rt-facts-card { padding: 22px; border-radius: 14px; }
.rt-facts-card__title { font-size: 17px; margin-bottom: 16px; }
.rt-facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; margin: 0 0 20px; font-size: 13.5px; }
.rt-facts-list dt { color: var(--muted); font-weight: 500; }
.rt-facts-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: end; }
.rt-btn--block { width: 100%; justify-content: center; }

.rt-share-card { padding: 18px; border-radius: 14px; text-align: center; }
.rt-share-card__title { font-size: 15px; margin-bottom: 12px; }
.rt-share-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rt-share-btn {
	display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px;
	border-radius: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: .2s;
}
.rt-share-btn:hover { border-color: var(--accent); color: var(--accent); }
.rt-share-btn--x:hover { background: #000; color: #fff; }
.rt-share-btn--wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.rt-share-btn--tg:hover { background: #229ed9; color: #fff; border-color: #229ed9; }

/* Public Submit Page */
.rt-submit-tool-container { max-width: 760px; margin: 0 auto; }
.rt-submit-form {
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
	padding: 32px; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .rt-submit-form { padding: 20px; } }
.rt-submit-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .rt-submit-form__grid { grid-template-columns: 1fr; } }
.rt-form-group--full { grid-column: 1 / -1; }
.rt-form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.rt-form-group label .required { color: #ef4444; }
.rt-form-group input[type="text"],
.rt-form-group input[type="url"],
.rt-form-group input[type="email"],
.rt-form-group select,
.rt-form-group textarea {
	width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
	padding: 10px 14px; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .2s;
}
.rt-form-group input:focus,
.rt-form-group select:focus,
.rt-form-group textarea:focus { border-color: var(--accent); }
.rt-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.rt-checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }
.rt-form-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.rt-submit-form__foot { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rt-btn--lg { padding: 12px 28px; font-size: 16px; }
.rt-submit-feedback { font-size: 14px; padding: 12px 18px; border-radius: 10px; width: 100%; }
.rt-submit-feedback.is-success { background: rgba(16, 185, 129, .15); color: #10b981; border: 1px solid rgba(16, 185, 129, .3); }
.rt-submit-feedback.is-error { background: rgba(239, 68, 68, .15); color: #ef4444; border: 1px solid rgba(239, 68, 68, .3); }

/* PWA specific button */
.rt-pwa-btn {
	position: relative;
	color: var(--accent);
}
/* ==========================================================================
   Native Mobile App-Like Experience & Layout Optimization
   ========================================================================== */
.rt-app-bottom-bar {
	display: none;
}

@media (max-width: 768px) {
	/* Push body content above bottom app dock */
	body {
		padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
	}

	/* Ultra-premium glassmorphic bottom navigation dock */
	.rt-app-bottom-bar {
		display: grid !important;
		grid-template-columns: repeat(5, 1fr) !important;
		position: fixed !important;
		bottom: 0 !important;
		inset-inline: 0 !important;
		z-index: 250 !important;
		height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
		background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
		backdrop-filter: blur(20px) saturate(180%) !important;
		-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
		border-top: 1px solid var(--line-2) !important;
		box-shadow: 0 -10px 30px -5px rgba(0, 0, 0, .5) !important;
		padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px)) !important;
		gap: 2px !important;
		box-sizing: border-box !important;
	}

	.rt-app-bar-item {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 3px !important;
		padding: 4px 2px !important;
		border-radius: 10px !important;
		color: var(--muted) !important;
		font-size: 10.5px !important;
		font-weight: 600 !important;
		text-decoration: none !important;
		border: none !important;
		background: transparent !important;
		cursor: pointer !important;
		position: relative !important;
		transition: color .2s var(--ease), transform .15s var(--ease) !important;
		-webkit-tap-highlight-color: transparent !important;
	}

	.rt-app-bar-item svg,
	.rt-app-bar-item .rt-i {
		width: 20px !important;
		height: 20px !important;
		flex: none !important;
		transition: transform .2s var(--ease), color .2s !important;
	}

	.rt-app-bar-item:active {
		transform: scale(.92) !important;
	}

	.rt-app-bar-item.is-active {
		color: var(--accent) !important;
		font-weight: 700 !important;
	}

	.rt-app-bar-item.is-active svg,
	.rt-app-bar-item.is-active .rt-i {
		transform: translateY(-2px) !important;
		stroke-width: 2.2 !important;
	}

	.rt-app-bar-item.is-active::after {
		content: "";
		position: absolute;
		top: 1px;
		width: 14px;
		height: 2px;
		border-radius: 2px;
		background: var(--accent);
		box-shadow: 0 0 8px var(--accent);
	}

	/* Center / Accent Tab (Ask AI) */
	.rt-app-bar-item--accent {
		color: var(--accent) !important;
	}
	.rt-app-bar-item--accent .rt-i {
		color: var(--accent) !important;
		filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)) !important;
	}

	/* Counter on bookmark tab */
	.rt-app-bar-item .rt-saved-btn__count {
		top: 0 !important;
		inset-inline-end: 12px !important;
		min-width: 16px !important;
		height: 16px !important;
		font-size: 10px !important;
		line-height: 16px !important;
	}

	/* Reposition floating widgets above app bottom bar */
	.rt-totop {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
		inset-inline-end: 14px !important;
		width: 40px !important;
		height: 40px !important;
		border-radius: 10px !important;
		z-index: 200 !important;
	}

	.rt-chat {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
		inset-inline-start: 14px !important;
		z-index: 200 !important;
	}

	.rt-chat__fab {
		padding: 6px !important;
		border-radius: 50% !important;
	}
	.rt-chat__fab-text {
		display: none !important;
	}

	.rt-compare-dock {
		bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
		width: calc(100% - 20px) !important;
		border-radius: 14px !important;
	}

	/* Social share buttons on mobile: convert from fixed bottom row to clean inline card */
	.rt-share {
		position: static !important;
		width: 100% !important;
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 10px !important;
		padding: 14px 12px !important;
		margin: 24px 0 16px !important;
		background: var(--surface) !important;
		border: 1px solid var(--line) !important;
		border-radius: var(--radius) !important;
		box-shadow: none !important;
		box-sizing: border-box !important;
	}
	.rt-share a, .rt-share button {
		width: 38px !important;
		height: 38px !important;
		border-radius: 9px !important;
		background: var(--surface-2) !important;
		border: 1px solid var(--line-2) !important;
		flex: none !important;
	}

	/* Directory horizontal scrolling filter chips */
	.rt-dir-filters {
		display: flex !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		scrollbar-width: none !important;
		padding: 10px 0 !important;
		margin-inline: -14px !important;
		padding-inline: 14px !important;
		flex-wrap: nowrap !important;
		gap: 8px !important;
	}
	.rt-dir-filters::-webkit-scrollbar {
		display: none;
	}
	.rt-dir-filters .rt-filter-chip {
		flex: none !important;
		white-space: nowrap !important;
	}
	.rt-dir-stats {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 8px !important;
		padding: 10px !important;
	}
	.rt-dir-search-wrap {
		margin-top: 18px !important;
	}
	.rt-dir-search {
		flex-direction: column !important;
		align-items: stretch !important;
		padding: 10px 14px !important;
		gap: 10px !important;
	}
	.rt-dir-ai-assistant-toggle {
		justify-content: center !important;
		width: 100% !important;
	}
}

@media (max-width: 640px) {
	/* Article Headings and Typography */
	.rt-article__head {
		padding-top: 20px;
	}
	.rt-article__title {
		font-size: clamp(21px, 5.2vw, 26px) !important;
		line-height: 1.4 !important;
		margin: 12px 0 10px !important;
		word-break: break-word !important;
	}
	.rt-article__lead {
		font-size: 15px !important;
		line-height: 1.75 !important;
	}
	.rt-article__byline {
		padding-block: 12px;
		gap: 10px;
	}
	.rt-article__media {
		margin-block: 18px;
		margin-inline: -14px;
		width: calc(100% + 28px);
		max-width: none;
	}
	.rt-article__media img,
	.rt-article__media .rt-cover {
		border-radius: 0;
	}

	/* Feedback Rating Box */
	.rt-feedback {
		padding: 18px 16px !important;
		margin: 24px 0 !important;
		border-radius: 14px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	.rt-feedback__inner {
		flex-direction: column !important;
		align-items: stretch !important;
		text-align: center !important;
		gap: 14px !important;
	}
	.rt-feedback__text {
		align-items: center !important;
	}
	.rt-feedback__title {
		font-size: 16px !important;
	}
	.rt-feedback__desc {
		font-size: 12.5px !important;
		line-height: 1.5 !important;
	}
	.rt-feedback__actions {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px !important;
		width: 100% !important;
	}
	.rt-feedback__btn {
		justify-content: center !important;
		padding: 10px 14px !important;
		font-size: 13.5px !important;
		border-radius: 12px !important;
	}

	/* Author Box */
	.rt-author-box {
		padding: 16px !important;
		gap: 12px !important;
		align-items: flex-start !important;
		border-radius: 14px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	.rt-author-box .rt-avatar {
		width: 52px !important;
		height: 52px !important;
		flex: none !important;
	}
	.rt-author-box h3 {
		font-size: 16px !important;
		margin-bottom: 4px !important;
	}
	.rt-author-box p {
		font-size: 13px !important;
		line-height: 1.6 !important;
	}

	/* FAQ */
	.rt-faq {
		width: 100% !important;
		box-sizing: border-box !important;
	}
	.rt-faq summary {
		padding: 12px 14px !important;
		font-size: 14px !important;
		gap: 10px !important;
	}
	.rt-faq details p {
		padding: 0 14px 14px !important;
		font-size: 13.5px !important;
		line-height: 1.7 !important;
	}

	/* TLDR */
	.rt-tldr {
		padding: 16px 18px !important;
		margin-bottom: 20px !important;
	}
	.rt-tldr__title {
		font-size: 15px !important;
	}
	.rt-tldr li {
		font-size: 13.5px !important;
		line-height: 1.6 !important;
	}

	/* Prose & Tables */
	.rt-prose pre {
		padding: 14px !important;
		font-size: 13px !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

/* ==========================================================================
   Interactive Reader Bar & Text-to-Speech Player
   ========================================================================== */
.rt-reader-bar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
	padding: 12px 18px; margin: 20px 0 28px; background: var(--surface); border: 1px solid var(--line-2);
	border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.rt-reader-bar__audio { display: flex; align-items: center; gap: 10px; }
.rt-reader-audio-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--ink); border: 1px solid var(--accent);
	font-weight: 600; font-size: 13.5px; transition: all .2s var(--ease); cursor: pointer;
}
.rt-reader-audio-btn:hover { background: var(--accent); color: var(--on-accent); }
.rt-reader-audio-btn.is-playing { background: var(--accent); color: var(--on-accent); animation: rt-pulse-glow 1.8s infinite; }
@keyframes rt-pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.rt-reader-audio-ctrls { display: inline-flex; align-items: center; gap: 6px; }
.rt-reader-audio-ctrls select {
	background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
	padding: 4px 8px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.rt-reader-audio-stop {
	background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 50%;
	width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer;
}
.rt-reader-audio-stop:hover { color: var(--hot); border-color: var(--hot); }

.rt-reader-bar__tools { display: flex; align-items: center; gap: 10px; }
.rt-font-sizer { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.rt-font-sizer button {
	background: transparent; border: 0; color: var(--ink-2); padding: 5px 10px; font-size: 12px; font-weight: 600;
	cursor: pointer; transition: background .15s;
}
.rt-font-sizer button:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.rt-zen-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer;
}
.rt-zen-btn:hover, body.rt-zen-mode .rt-zen-btn { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Zen Reading Mode */
body.rt-zen-mode .rt-sidebar,
body.rt-zen-mode .rt-share,
body.rt-zen-mode .rt-ticker,
body.rt-zen-mode .rt-author-box,
body.rt-zen-mode .rt-feedback,
body.rt-zen-mode #comments { display: none !important; }
body.rt-zen-mode .rt-article__layout { max-width: 820px !important; margin: 0 auto !important; }
body.rt-zen-mode .rt-prose { font-size: 19px !important; line-height: 1.9 !important; }

/* ==========================================================================
   Article Reactions System
   ========================================================================== */
.rt-reactions {
	margin: 36px 0 24px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); text-align: center;
}
.rt-reactions__title { font-size: 16px; margin: 0 0 16px; color: var(--ink); }
.rt-reactions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rt-reaction-btn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
	color: var(--ink-2); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.rt-reaction-btn:hover { transform: translateY(-3px); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rt-reaction-btn.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--ink); font-weight: 700; transform: scale(1.04); }
.rt-reaction-btn__emoji { font-size: 26px; transition: transform .2s var(--ease); }
.rt-reaction-btn:hover .rt-reaction-btn__emoji { transform: scale(1.25); }
.rt-reaction-btn__label { font-size: 13px; font-weight: 600; }
.rt-reaction-btn__count { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.rt-reaction-btn.is-active .rt-reaction-btn__count { color: var(--accent); }

@media (max-width: 600px) {
	.rt-reactions__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Interactive Prompt Studio
   ========================================================================== */
.rt-prompt-studio {
	margin: 32px 0 10px; padding: 26px; background: var(--surface); border: 1px solid var(--line-2);
	border-radius: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.rt-prompt-studio::before {
	content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
	background: linear-gradient(90deg, var(--accent), #10b981, var(--accent));
}
.rt-prompt-studio__header { margin-bottom: 22px; text-align: center; }
.rt-prompt-studio__badge {
	display: inline-block; padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent); font-size: 12.5px; font-weight: 700; margin-bottom: 8px;
}
.rt-prompt-studio__header h2 { font-size: 22px; margin: 0 0 6px; }
.rt-prompt-studio__header p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 680px; margin-inline: auto; }
.rt-prompt-studio__controls {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px;
}
@media (max-width: 820px) { .rt-prompt-studio__controls { grid-template-columns: 1fr; } }
.rt-prompt-field { display: flex; flex-direction: column; gap: 6px; }
.rt-prompt-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rt-prompt-field select {
	background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
	color: var(--ink); font-size: 13.5px; cursor: pointer;
}
.rt-prompt-studio__input-wrap {
	display: flex; gap: 10px; margin-bottom: 16px;
}
@media (max-width: 640px) { .rt-prompt-studio__input-wrap { flex-direction: column; } }
.rt-prompt-studio__input-wrap input {
	flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
	padding: 12px 16px; color: var(--ink); font-size: 14.5px;
}
.rt-prompt-studio__input-wrap input:focus { border-color: var(--accent); outline: 0; }
.rt-prompt-studio__output {
	background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; margin-top: 14px;
}
.rt-prompt-studio__output pre {
	white-space: pre-wrap; font-family: var(--font); font-size: 14px; line-height: 1.7; color: var(--ink);
	margin: 0 0 14px; direction: rtl; text-align: start; max-height: 360px; overflow-y: auto;
}
.rt-prompt-studio__output-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rt-success-msg { color: var(--ok); font-size: 13px; font-weight: 600; }

/* ==========================================================================
   AI Time & Cost Saver ROI Calculator
   ========================================================================== */
.rt-calc-hero { text-align: center; }
.rt-calc-card {
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
	padding: 32px; box-shadow: var(--shadow); margin-bottom: 40px;
}
.rt-calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .rt-calc-grid { grid-template-columns: 1fr; } }
.rt-calc-title { font-size: 20px; margin: 0 0 20px; }
.rt-calc-group { margin-bottom: 22px; }
.rt-calc-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rt-calc-select {
	width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
	padding: 12px 14px; color: var(--ink); font-size: 14px; cursor: pointer;
}
.rt-calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rt-calc-val { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 15px; }
.rt-calc-range {
	width: 100%; height: 6px; border-radius: 999px; background: var(--line); outline: 0; cursor: pointer;
	accent-color: var(--accent);
}

.rt-calc-results {
	background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px;
}
.rt-calc-results__head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 15px; }
.rt-calc-stats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.rt-calc-stat-box {
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.rt-calc-stat-box--highlight {
	border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.rt-calc-stat-num { font-size: 28px; font-weight: 800; font-family: var(--mono); color: var(--ink); display: block; line-height: 1.2; }
.rt-calc-stat-box--highlight .rt-calc-stat-num { color: var(--accent); }
.rt-calc-stat-unit { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.rt-calc-stat-box small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.rt-calc-tools-rec h4 { font-size: 14px; margin: 0 0 10px; }
.rt-calc-tools-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rt-calc-chip {
	display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface);
	border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.rt-calc-dir-btn { width: 100%; text-align: center; }

/* ==========================================================================
   AI Model API & Tokens Comparison Calculator
   ========================================================================== */
.rt-tokens-calc-wrap {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.rt-tokens-calc-controls {
	padding: 28px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	box-shadow: var(--shadow);
}
.rt-tokens-slider-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 18px;
	margin-bottom: 22px;
}
@media (max-width: 768px) {
	.rt-tokens-slider-grid {
		grid-template-columns: 1fr;
	}
}
.rt-tokens-slider-item--full {
	grid-column: 1 / -1;
}
.rt-tokens-hint {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-top: 6px;
}
.rt-tokens-quick-reqs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.rt-quick-req-btn {
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
	transition: all .2s ease;
}
.rt-quick-req-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.rt-quick-req-btn.is-active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
	box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}
.rt-tokens-volume-ribbon {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.rt-tokens-volume-ribbon strong {
	font-size: 20px;
	font-family: var(--mono);
	color: var(--accent);
	margin-inline: 8px;
}
.rt-tokens-volume-ribbon small {
	color: var(--muted);
	font-size: 13px;
}
.rt-tokens-results-head {
	margin-top: 10px;
}
.rt-tokens-results-head h3 {
	font-size: 20px;
	margin-bottom: 6px;
}
.rt-tokens-results-head p {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
}
.rt-tokens-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 18px;
}
.rt-tokens-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rt-tokens-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	border-color: var(--line-2);
}
.rt-tokens-card--best {
	border-color: #10b981;
	background: linear-gradient(180deg, color-mix(in srgb, #10b981 6%, var(--surface)) 0%, var(--surface) 100%);
	box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}
.rt-tokens-card--free {
	border-color: #6366f1;
	background: linear-gradient(180deg, color-mix(in srgb, #6366f1 6%, var(--surface)) 0%, var(--surface) 100%);
}
.rt-tokens-card__badge {
	position: absolute;
	top: -11px;
	inset-inline-end: 16px;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.rt-tokens-card--best .rt-tokens-card__badge {
	background: #10b981;
}
.rt-tokens-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.rt-tokens-card__provider {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .5px;
}
.rt-tokens-card__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ink);
	margin: 2px 0 0;
}
.rt-tokens-card__cost {
	margin: 14px 0;
	padding: 14px;
	background: var(--bg);
	border-radius: 12px;
	border: 1px solid var(--line);
	text-align: center;
}
.rt-tokens-cost-label {
	display: block;
	font-size: 11.5px;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 2px;
}
.rt-tokens-cost-amount {
	display: block;
	font-size: 28px;
	font-weight: 900;
	font-family: var(--mono);
	color: var(--ink);
	line-height: 1.1;
}
.rt-tokens-card--best .rt-tokens-cost-amount {
	color: #10b981;
}
.rt-tokens-cost-period {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.rt-tokens-cost-annual {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-top: 4px;
}
.rt-tokens-card__rates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	font-size: 11.5px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line);
}
.rt-tokens-rate-item {
	background: var(--surface-2);
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--ink-2);
}
.rt-tokens-rate-item strong {
	display: block;
	font-family: var(--mono);
	color: var(--ink);
	font-size: 12px;
}
.rt-tokens-card__desc {
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.5;
	margin: 0;
	flex-grow: 1;
}

/* ==========================================================================
   AI Tool Single Page - Dynamic Prompt Starters
   ========================================================================== */
.rt-tool-prompts-box {
	margin-top: 24px;
	border: 1px solid var(--line-2);
}
.rt-tool-prompts-box__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.rt-tool-prompt-samples {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 16px;
}
.rt-tool-prompt-item {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color .2s ease;
}
.rt-tool-prompt-item:hover {
	border-color: var(--accent);
}
.rt-tool-prompt-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.rt-tool-prompt-item__head strong {
	font-size: 13.5px;
	color: var(--ink);
}
.rt-tool-prompt-item__text {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: var(--font);
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink-2);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 0;
	direction: auto;
	user-select: all;
}

/* ==========================================================================
   AI Models Benchmark Arena & Leaderboard
   ========================================================================== */
.rt-leaderboard-hero {
	text-align: center;
	padding-bottom: 24px;
}
.rt-champions-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 32px;
	text-align: start;
}
@media (max-width: 992px) {
	.rt-champions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
	.rt-champions-grid { grid-template-columns: 1fr; }
}
.rt-champion-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px 20px;
	position: relative;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.rt-champion-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}
.rt-champion-card__crown {
	font-size: 22px;
	margin-bottom: 4px;
}
.rt-champion-card__label {
	font-size: 11.5px;
	color: var(--muted);
	font-weight: 700;
	text-transform: uppercase;
}
.rt-champion-card strong {
	font-size: 16px;
	color: var(--ink);
}
.rt-champion-card small {
	font-size: 12px;
	color: var(--accent);
	font-weight: 600;
}
.rt-champion-card--coding {
	border-color: color-mix(in srgb, #6366f1 35%, var(--line));
	background: linear-gradient(180deg, color-mix(in srgb, #6366f1 8%, var(--surface)) 0%, var(--surface) 100%);
}
.rt-champion-card--math {
	border-color: color-mix(in srgb, #8b5cf6 35%, var(--line));
	background: linear-gradient(180deg, color-mix(in srgb, #8b5cf6 8%, var(--surface)) 0%, var(--surface) 100%);
}
.rt-champion-card--value {
	border-color: color-mix(in srgb, #10b981 35%, var(--line));
	background: linear-gradient(180deg, color-mix(in srgb, #10b981 8%, var(--surface)) 0%, var(--surface) 100%);
}
.rt-champion-card--speed {
	border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
	background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 8%, var(--surface)) 0%, var(--surface) 100%);
}

.rt-leaderboard-toolbar {
	margin-bottom: 24px;
}
.rt-arena-search-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 16px;
	width: 320px;
}
@media (max-width: 768px) {
	.rt-arena-search-wrap { width: 100%; }
}
.rt-arena-search-wrap svg {
	color: var(--muted);
	flex-shrink: 0;
}
.rt-arena-search-wrap input {
	border: 0;
	background: transparent;
	outline: 0;
	color: var(--ink);
	font-size: 13.5px;
	width: 100%;
}

.rt-leaderboard-table-wrap {
	overflow-x: auto;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 18px;
	box-shadow: var(--shadow);
	margin-bottom: 32px;
}
.rt-leaderboard-table {
	width: 100%;
	border-collapse: collapse;
	text-align: right;
	font-size: 13.5px;
	white-space: nowrap;
}
.rt-leaderboard-table th,
.rt-leaderboard-table td {
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}
.rt-leaderboard-table thead th {
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
}
.rt-leaderboard-table tbody tr:hover td {
	background: color-mix(in srgb, var(--accent) 3%, transparent);
}
.rt-leaderboard-table tbody tr:last-child td {
	border-bottom: none;
}

.rt-col-rank {
	width: 50px;
	text-align: center;
}
.rt-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-weight: 800;
	font-family: var(--mono);
	color: var(--ink);
}
.rt-rank-badge--top {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.rt-model-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 220px;
}
.rt-model-cell__info {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.rt-model-name {
	font-size: 15px;
	color: var(--ink);
}
.rt-model-company {
	font-size: 11.5px;
	color: var(--muted);
}
.rt-model-badge {
	font-size: 11px;
	font-weight: 600;
	color: var(--accent);
}

.rt-metric-elo {
	font-family: var(--mono);
	font-size: 15px;
	color: var(--ink);
}

.rt-bar-metric {
	min-width: 130px;
}
.rt-bar-metric__top {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 12.5px;
	margin-bottom: 5px;
	color: var(--ink);
}
.rt-bar-track {
	height: 6px;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}
.rt-bar-fill {
	height: 100%;
	border-radius: 999px;
}
.rt-bar-fill--code {
	background: linear-gradient(90deg, #6366f1, #3b82f6);
}
.rt-bar-fill--math {
	background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.rt-arabic-score {
	font-size: 13px;
	color: var(--ink);
}
.rt-arabic-score strong {
	font-family: var(--mono);
	font-size: 14px;
	color: #10b981;
}

.rt-ctx-pill,
.rt-speed-val {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--ink-2);
	background: var(--surface-2);
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid var(--line);
}

.rt-cost-pill {
	display: flex;
	flex-direction: column;
	font-family: var(--mono);
}
.rt-cost-pill strong {
	color: var(--ink);
	font-size: 13.5px;
}
.rt-cost-pill small {
	font-size: 10.5px;
	color: var(--muted);
	font-family: var(--font);
}

.rt-arena-row-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rt-arena-methodology {
	padding: 26px;
}
.rt-arena-methodology__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.rt-arena-methodology__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.rt-arena-methodology__grid strong {
	display: block;
	font-size: 13.5px;
	color: var(--accent);
	margin-bottom: 6px;
}
.rt-arena-methodology__grid p {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.6;
	margin: 0;
}

/* ==========================================================================
   Front Page - AI Hub & Innovation Banner
   ========================================================================== */
.rt-ai-hub-section {
	padding-top: 10px;
	padding-bottom: 20px;
}
.rt-ai-hub-banner {
	padding: 36px 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 100%);
	border: 1px solid var(--line-2);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 28px;
}
@media (max-width: 768px) {
	.rt-ai-hub-banner { padding: 24px; }
}
.rt-ai-hub-banner__content {
	max-width: 720px;
}
.rt-ai-hub-banner__title {
	font-size: 26px;
	font-weight: 800;
	margin: 8px 0 10px;
	color: var(--ink);
}
.rt-ai-hub-banner__desc {
	font-size: 15px;
	color: var(--ink-2);
	line-height: 1.6;
	margin: 0;
}
.rt-ai-hub-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}
.rt-ai-hub-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	transition: all .25s ease;
}
.rt-ai-hub-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.rt-ai-hub-card__icon {
	font-size: 26px;
	flex-shrink: 0;
}
.rt-ai-hub-card__body {
	flex-grow: 1;
}
.rt-ai-hub-card__body strong {
	display: block;
	font-size: 14.5px;
	color: var(--ink);
	margin-bottom: 4px;
	transition: color .2s ease;
}
.rt-ai-hub-card:hover .rt-ai-hub-card__body strong {
	color: var(--accent);
}
.rt-ai-hub-card__body p {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
	line-height: 1.45;
}
.rt-ai-hub-card__arrow {
	font-size: 18px;
	color: var(--muted);
	transition: transform .2s ease, color .2s ease;
	flex-shrink: 0;
}
.rt-ai-hub-card:hover .rt-ai-hub-card__arrow {
	color: var(--accent);
	transform: translateX(-4px);
}

/* ==========================================================================
   Interactive AI Tools: Prompt Studio & Enhancer
   ========================================================================== */
.rt-prompt-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	align-items: start;
}
@media (max-width: 900px) {
	.rt-prompt-grid {
		grid-template-columns: 1fr;
	}
}
.rt-prompt-presets {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 12px 14px;
	background: var(--surface-2);
	border-radius: 12px;
	border: 1px solid var(--line);
}
.rt-prompt-presets__label {
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
}
.rt-prompt-presets__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.rt-chip--preset {
	background: var(--bg);
	border: 1px solid var(--line);
	color: var(--ink);
	cursor: pointer;
	padding: 5px 10px;
	font-size: 12px;
	border-radius: 8px;
	transition: all .2s ease;
}
.rt-chip--preset:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-1px);
}
.rt-prompt-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
@media (max-width: 600px) {
	.rt-prompt-row {
		grid-template-columns: 1fr;
	}
}
.rt-prompt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}
.rt-prompt-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}
.rt-prompt-field .rt-select,
.rt-prompt-field .rt-textarea {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 14px;
	color: var(--ink);
	font-size: 13.5px;
	font-family: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.rt-prompt-field .rt-select:focus,
.rt-prompt-field .rt-textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.rt-prompt-output-box {
	position: sticky;
	top: 90px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	display: flex;
	flex-direction: column;
}
.rt-prompt-output__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	gap: 12px;
}
.rt-prompt-code {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px;
	font-family: var(--mono, monospace);
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink);
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 480px;
	overflow-y: auto;
	transition: all .2s ease;
}
.rt-highlight-pulse {
	border-color: var(--accent) !important;
	box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
.rt-prompt-tips {
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--surface-2);
	border-radius: 12px;
	border: 1px dashed var(--line);
}
.rt-prompt-tips h4 {
	font-size: 13px;
	margin: 0 0 8px 0;
	color: var(--ink);
}
.rt-prompt-tips ul {
	margin: 0;
	padding-right: 18px;
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.6;
}

/* ==========================================================================
   Interactive AI Tools: AI Match & Readiness Quiz
   ========================================================================== */
.rt-quiz-progress-bar {
	width: 100%;
	height: 8px;
	background: var(--surface-2);
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid var(--line);
}
.rt-quiz-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--accent2, var(--accent)));
	border-radius: 99px;
	transition: width .35s ease;
}
.rt-quiz-step-info {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 18px;
}
.rt-quiz-card {
	padding: 32px 28px;
	border: 1px solid var(--line-2);
}
.rt-quiz-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 24px;
	line-height: 1.4;
}
.rt-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rt-quiz-opt {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--bg);
	border: 1.5px solid var(--line);
	border-radius: 14px;
	padding: 16px 20px;
	cursor: pointer;
	text-align: right;
	width: 100%;
	color: inherit;
	transition: all .2s ease;
}
.rt-quiz-opt:hover {
	border-color: var(--accent);
	background: var(--surface-2);
	transform: translateX(-3px);
}
.rt-quiz-opt__icon {
	font-size: 28px;
	flex-shrink: 0;
}
.rt-quiz-opt__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.rt-quiz-opt__text strong {
	font-size: 15px;
	color: var(--ink);
}
.rt-quiz-opt__text span {
	font-size: 12.5px;
	color: var(--muted);
}
.rt-quiz-result {
	text-align: center;
	padding: 20px 10px;
	animation: rtFadeIn .4s ease forwards;
}
.rt-quiz-result__badge {
	display: inline-block;
	background: rgba(245, 158, 11, 0.15);
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 99px;
	margin-bottom: 12px;
}
.rt-quiz-result__title {
	font-size: 24px;
	color: var(--ink);
	margin-bottom: 10px;
}
.rt-quiz-result__desc {
	font-size: 14.5px;
	color: var(--ink-2);
	max-width: 540px;
	margin: 0 auto 28px auto;
	line-height: 1.6;
}
.rt-quiz-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	text-align: right;
	margin-bottom: 30px;
}
.rt-quiz-tool-card {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px;
	transition: border-color .2s ease;
}
.rt-quiz-tool-card:hover {
	border-color: var(--accent);
}
.rt-quiz-tool-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.rt-quiz-tool-card__top strong {
	font-size: 14px;
	color: var(--ink);
}
.rt-quiz-tool-card p {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
	line-height: 1.45;
}
.rt-quiz-result__cta {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.rt-ticker__items { animation: none; }
}
