/* ארגז הכלים (includes/toolbox.php, toolbox-tools.php, toolbox-articles.php, templates/single-tool.php):
   the bar with the tabs and the search, the sections, the tool and article cards, and a tool's own page.
   The tutorial cards and covers are in rac-tutorials.css, the topic chips in rac-filter.css.
   Selectors start with "body" so the theme's link colours never win. */

body .rac-tb,
body .rac-tool-card,
body .rac-art-card,
body.rac-tool-single .rac-tool-page {
	--tb-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--tb-line: rgba(194, 205, 232, .12);
	font-family: var(--ra-font, "Assistant", system-ui, sans-serif);
}
body .rac-tb { display: flex; flex-direction: column; color: var(--ra-text, #f2f6ff); }
body .rac-tb [hidden] { display: none !important; }

/* ---------------------------------------------------------------- the bar: kind tabs and the search */
body .rac-tb-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}
body .rac-tb-tabs { max-width: 100%; }
/* One row when it fits; on a very narrow screen or with enlarged text the tabs wrap instead of
   scrolling the last one out of sight (WCAG 1.4.10). */
body .rac-tb-tabs ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--tb-line);
	border-radius: 26px;
	background: rgba(19, 27, 58, .55);
}
body .rac-tb-tabs li { flex: 0 0 auto; margin: 0; }
body .rac-tb .rac-tb-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 18px;
	border-radius: 999px;
	color: var(--ra-text-2, #c2cde8);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
body .rac-tb .rac-tb-tab.is-on {
	color: var(--ra-text, #f2f6ff);
	font-weight: 700;
	background: rgba(47, 224, 230, .12);
	box-shadow: inset 0 0 0 1px rgba(47, 224, 230, .3);
}
body .rac-tb .rac-tb-tab:focus-visible { outline: 2px solid var(--ra-cyan-300, #7df0f4); outline-offset: 2px; }
/* The count is a quiet number next to the word, not another pill. */
body .rac-tb .rac-tb-n {
	color: var(--ra-text-3, #8b99bc);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
body .rac-tb .rac-tb-tab.is-on .rac-tb-n { color: var(--ra-cyan-300, #7df0f4); }
@media (hover: hover) and (pointer: fine) {
	body .rac-tb .rac-tb-tab:not(.is-on):hover { color: var(--ra-text, #f2f6ff); background: rgba(194, 205, 232, .06); }
}

body .rac-tb-search {
	flex: 0 1 320px;
	min-width: 220px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid rgba(194, 205, 232, .24);
	border-radius: 999px;
	background: rgba(10, 16, 35, .45);
	color: var(--ra-text-3, #8b99bc);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
body .rac-tb-search:focus-within { border-color: var(--ra-cyan-400, #2fe0e6); box-shadow: 0 0 0 3px rgba(47, 224, 230, .14); }
body .rac-tb-search svg { flex: 0 0 auto; }
/* One frame, the box's: the Elementor kit's own field look is taken off (input[type] beats its selector). */
body .rac-tb .rac-tb-search input[type="search"],
body .rac-tb .rac-tb-search input[type="search"]:hover,
body .rac-tb .rac-tb-search input[type="search"]:focus {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--ra-text, #f2f6ff);
	font-family: inherit;
	font-size: 16px;
}
body .rac-tb .rac-tb-search input[type="search"]::placeholder { color: var(--ra-text-3, #8b99bc); opacity: 1; }
body .rac-tb .rac-tb-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* The topics: a second, quieter row. No frames, plain counts; only the chosen one is tinted. */
body .rac-tb-topics { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
body .rac-tb .rac-tb-topics-k { flex: 0 0 auto; color: var(--ra-text-3, #8b99bc); font-size: 14px; font-weight: 600; }
body .rac-tb .rac-chips { flex: 1 1 auto; min-width: 0; margin: 0; }
body .rac-tb .rac-chips ul { gap: 6px; }
body .rac-tb .rac-chips .rac-chip {
	gap: 6px;
	min-height: 38px;
	padding: 6px 14px;
	border: 0;
	background: rgba(194, 205, 232, .06);
	color: var(--ra-text-2, #c2cde8);
	font-size: 15px;
	font-weight: 600;
}
body .rac-tb .rac-chips .rac-chip-n {
	display: inline;
	min-width: 0;
	height: auto;
	padding: 0;
	background: none;
	color: var(--ra-text-3, #8b99bc);
	font-size: 13px;
	font-weight: 600;
}
body .rac-tb .rac-chips .rac-chip.is-on { background: rgba(47, 224, 230, .12); color: var(--ra-cyan-300, #7df0f4); }
body .rac-tb .rac-chips .rac-chip.is-on .rac-chip-n { background: none; color: var(--ra-cyan-300, #7df0f4); }
@media (hover: hover) and (pointer: fine) {
	body .rac-tb .rac-chips .rac-chip:not(.is-on):hover { background: rgba(194, 205, 232, .12); color: var(--ra-text, #f2f6ff); }
}
@media (pointer: coarse) {
	body .rac-tb .rac-chips .rac-chip { min-height: 44px; }
}
body .rac-tb .rac-tb-live {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Nothing matches. */
body .rac-tb-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-top: 24px;
	padding: 32px;
	border: 1px dashed rgba(125, 240, 244, .28);
	border-radius: 22px;
	background: rgba(255, 255, 255, .02);
}
body .rac-tb-empty p { margin: 0; max-width: 52ch; color: var(--ra-text-2, #c2cde8); font-size: 17px; line-height: 1.6; }
body .rac-tb-empty .rac-tb-empty-h { color: var(--ra-text, #f2f6ff); font-size: 22px; font-weight: 800; }
body .rac-tb .rac-tb-clear {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	margin-top: 6px;
	padding: 11px 22px;
	border: 1px solid #2b3b61;
	border-radius: 12px;
	color: var(--ra-text, #f2f6ff);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
body .rac-tb .rac-tb-clear:hover { border-color: rgba(47, 224, 230, .5); }
body .rac-tb .rac-tb-clear:focus-visible { outline: 2px solid var(--ra-cyan-300, #7df0f4); outline-offset: 3px; }

/* ---------------------------------------------------------------- the sections */
body .rac-tb-sec { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
body .rac-tb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 20px;
	padding-top: 24px;
	border-top: 1px solid rgba(194, 205, 232, .1);
}
body .rac-tb .rac-tb-h { margin: 0; color: var(--ra-text, #f2f6ff); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
body .rac-tb .rac-tb-h:focus { outline: none; }
body .rac-tb .rac-tb-hn { color: var(--ra-text-3, #8b99bc); font-size: .6em; font-weight: 700; font-variant-numeric: tabular-nums; }
body .rac-tb .rac-tb-sub { margin: 6px 0 0; color: var(--ra-text-2, #c2cde8); font-size: 16px; line-height: 1.55; }
body .rac-tb .rac-tb-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ra-cyan-300, #7df0f4);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
body .rac-tb .rac-tb-more::after { content: " ←"; white-space: pre; }
body .rac-tb .rac-tb-more:hover { color: var(--ra-text, #f2f6ff); }
body .rac-tb .rac-tb-more:focus-visible { outline: 2px solid var(--ra-cyan-300, #7df0f4); outline-offset: 2px; border-radius: 6px; }

body .rac-tb-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------------- a tool card */
body .rac-tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--tb-line);
	border-radius: var(--ra-r-lg, 24px);
	background: linear-gradient(180deg, rgba(19, 27, 58, .92), rgba(12, 18, 38, .96));
	box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
	color: var(--ra-text, #f2f6ff);
	transition: transform 260ms var(--tb-ease), border-color 200ms ease, box-shadow 260ms var(--tb-ease);
}
body .rac-tool-card .rac-tool-top { display: flex; align-items: center; gap: 14px; }
body .rac-tool-card .rac-tool-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body .rac-tool-card .rac-tool-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
body .rac-tool-card .rac-tool-title a { color: var(--ra-text, #f2f6ff); text-decoration: none; }
/* The whole card opens the tool's page, through its name. */
body .rac-tool-card .rac-tool-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
body .rac-tool-card .rac-tool-title a:focus-visible { outline: none; }
body .rac-tool-card:has(.rac-tool-title a:focus-visible) { outline: 2px solid var(--ra-cyan-300, #7df0f4); outline-offset: 3px; }
body .rac-tool-card .rac-tool-domain { align-self: flex-start; color: var(--ra-text-3, #8b99bc); font-size: 13.5px; }
body .rac-tool-card .rac-tool-star {
	flex: 0 0 auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 210, 122, .12);
	color: #ffd27a;
	font-size: 12.5px;
	font-weight: 800;
}
body .rac-tool-card .rac-tool-text { margin: 0; color: var(--ra-text-2, #c2cde8); font-size: 16px; line-height: 1.6; }
body .rac-tool-card .rac-tool-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
body .rac-tool-card .rac-tool-topics { color: var(--ra-cyan-300, #7df0f4); font-size: 14px; font-weight: 700; }
body .rac-tool-card .rac-tool-go {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(194, 205, 232, .12);
	color: var(--ra-cyan-300, #7df0f4);
	font-size: 15px;
	font-weight: 700;
}
body .rac-tool-card .rac-tool-go::after { content: " ←"; white-space: pre; }
body .rac-tb-badge {
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 196, 87, .92);
	color: #1a1200;
	font-size: 13px;
	font-weight: 800;
}

/* The logo tile: the logo on white, or the tool's initials on its topic's colour. */
.rac-tool-logo {
	--ac: #2fe0e6;
	--ac-soft: rgba(47, 224, 230, .26);
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--ac) 42%, transparent);
	border-radius: 16px;
	background: linear-gradient(150deg, var(--ac-soft), rgba(10, 16, 35, .9)), #141a3d;
	color: #fff;
	font-family: var(--ra-font, "Assistant", system-ui, sans-serif);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: .02em;
	direction: ltr;
}
.rac-tool-logo--a1 { --ac: #b6a3ff; --ac-soft: rgba(182, 163, 255, .32); }
.rac-tool-logo--a2 { --ac: #5eead4; --ac-soft: rgba(94, 234, 212, .26); }
.rac-tool-logo--a3 { --ac: #ffd27a; --ac-soft: rgba(255, 210, 122, .26); }
.rac-tool-logo.has-img { padding: 8px; background: rgba(255, 255, 255, .96); border-color: rgba(255, 255, 255, .5); }
.rac-tool-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rac-tool-logo--big {
	width: 92px;
	height: 92px;
	border-radius: 24px;
	font-size: 32px;
	box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .9), 0 0 50px -14px color-mix(in srgb, var(--ac) 45%, transparent);
}
.rac-tool-logo--big.has-img { padding: 14px; }

/* Price: one colour per kind. */
.rac-tprice {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(47, 224, 230, .12);
	color: #7df0f4;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
}
.rac-tprice--free { background: rgba(94, 234, 212, .12); color: #5eead4; }
.rac-tprice--trial { background: rgba(182, 163, 255, .14); color: #b6a3ff; }
.rac-tprice--paid { background: rgba(255, 210, 122, .12); color: #ffd27a; }
body .rac-tprice-text--free { color: #5eead4; }
body .rac-tprice-text--freemium { color: #7df0f4; }
body .rac-tprice-text--trial { color: #b6a3ff; }
body .rac-tprice-text--paid { color: #ffd27a; }

/* ---------------------------------------------------------------- an article card */
body .rac-art-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--tb-line);
	border-radius: var(--ra-r-lg, 24px);
	background: linear-gradient(180deg, rgba(19, 27, 58, .92), rgba(12, 18, 38, .96));
	box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
	color: var(--ra-text, #f2f6ff);
	transition: transform 260ms var(--tb-ease), border-color 200ms ease, box-shadow 260ms var(--tb-ease);
}
body .rac-art-card .rac-art-cover {
	position: relative;
	aspect-ratio: 40 / 21;
	overflow: hidden;
	border-bottom: 1px solid rgba(194, 205, 232, .08);
	background:
		radial-gradient(90% 120% at 0% 0%, rgba(255, 210, 122, .18), transparent 60%),
		radial-gradient(80% 100% at 100% 100%, rgba(110, 132, 255, .22), transparent 65%),
		linear-gradient(160deg, #141b3f, #0a0f26);
}
body .rac-art-card .rac-art-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--tb-ease); }
body .rac-art-card .rac-art-kind {
	position: absolute;
	top: 14px;
	inset-inline-start: 16px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 210, 122, .45);
	border-radius: 999px;
	background: rgba(7, 11, 26, .78);
	color: #ffd27a;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
}
body .rac-art-card .rac-art-lines { position: absolute; inset-block-end: 18px; inset-inline-start: 18px; display: flex; flex-direction: column; gap: 7px; width: 46%; }
body .rac-art-card .rac-art-lines i { display: block; height: 6px; border-radius: 6px; background: rgba(242, 246, 255, .3); }
body .rac-art-card .rac-art-lines i:nth-child(2) { width: 80%; background: rgba(242, 246, 255, .2); }
body .rac-art-card .rac-art-lines i:nth-child(3) { width: 62%; background: rgba(242, 246, 255, .14); }
body .rac-art-card .rac-art-quote { position: absolute; inset-block-end: -34px; inset-inline-end: 18px; color: rgba(255, 210, 122, .12); font-size: 150px; font-weight: 800; line-height: 1; }
body .rac-art-card .rac-art-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
body .rac-art-card .rac-art-meta { margin: 0; color: var(--ra-text-3, #8b99bc); font-size: 14px; font-weight: 700; }
body .rac-art-card .rac-art-topic { color: #ffd27a; }
body .rac-art-card .rac-art-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.35; }
body .rac-art-card .rac-art-title a { color: var(--ra-text, #f2f6ff); text-decoration: none; }
body .rac-art-card .rac-art-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
body .rac-art-card .rac-art-title a:focus-visible { outline: none; }
body .rac-art-card:has(.rac-art-title a:focus-visible) { outline: 2px solid var(--ra-cyan-300, #7df0f4); outline-offset: 3px; }
body .rac-art-card .rac-art-text { margin: 0; color: var(--ra-text-2, #c2cde8); font-size: 16px; line-height: 1.6; }
body .rac-art-card .rac-art-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--ra-cyan-300, #7df0f4);
	font-size: 15px;
	font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
	body .rac-tool-card:hover,
	body .rac-art-card:hover { transform: translateY(-4px); border-color: rgba(47, 224, 230, .35); box-shadow: 0 24px 50px -28px rgba(47, 224, 230, .35); }
	body .rac-art-card:hover .rac-art-cover img { transform: scale(1.04); }
}

/* ---------------------------------------------------------------- a tool's own page */
body.rac-tool-single .rac-tool-page {
	width: min(100% - 32px, 1200px);
	margin-inline: auto;
	padding: clamp(120px, 12vw, 160px) 0 clamp(64px, 8vw, 110px);
	color: var(--ra-text, #f2f6ff);
}
body.rac-tool-single .rac-tool-hero { padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid rgba(194, 205, 232, .08); }
body.rac-tool-single .rac-tool-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--ra-text-3, #8b99bc); font-size: 15px; font-weight: 700; }
body.rac-tool-single .rac-tool-crumbs li { margin: 0; }
body.rac-tool-single .rac-tool-crumbs li + li::before { content: "›"; margin-inline-end: 8px; }
body.rac-tool-single .rac-tool-crumbs a { color: var(--ra-text-3, #8b99bc); text-decoration: none; }
body.rac-tool-single .rac-tool-crumbs a:hover { color: var(--ra-cyan-300, #7df0f4); }
body.rac-tool-single .rac-tool-crumbs [aria-current] { color: var(--ra-text-2, #c2cde8); }
body.rac-tool-single .rac-tool-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 26px; }
body.rac-tool-single .rac-tool-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
body.rac-tool-single .rac-tool-h1 { margin: 0; color: var(--ra-text, #f2f6ff); font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; }
body.rac-tool-single .rac-tool-lead { margin: 0; max-width: 60ch; color: var(--ra-text-2, #c2cde8); font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.6; }
body.rac-tool-single .rac-tool-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
body.rac-tool-single .rac-tool-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 4px 13px;
	border: 1px solid rgba(47, 224, 230, .3);
	border-radius: 999px;
	color: var(--ra-cyan-300, #7df0f4);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
body.rac-tool-single .rac-tool-chip:hover { background: rgba(47, 224, 230, .12); }
body.rac-tool-single .rac-tool-hero .rac-tool-domain { color: var(--ra-text-3, #8b99bc); font-size: 14.5px; }
body.rac-tool-single .rac-tool-ctas { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 12px; }

body .rac-tool-page a.rac-tool-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	padding: 14px 24px;
	box-sizing: border-box;
	border-radius: 14px;
	background: var(--ra-cyan-400, #2fe0e6);
	color: #041018;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 14px 34px -14px rgba(47, 224, 230, .7), inset 0 1px 0 rgba(255, 255, 255, .4);
	transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--tb-ease);
}
body .rac-tool-page a.rac-tool-btn:hover { background: var(--ra-cyan-300, #7df0f4); color: #041018; }
body .rac-tool-page a.rac-tool-btn:active { transform: scale(.97); }
body .rac-tool-page a.rac-tool-btn:focus-visible { outline: 2px solid var(--ra-cyan-300, #7df0f4); outline-offset: 3px; }
body .rac-tool-page a.rac-tool-btn--ghost {
	padding: 13px 22px;
	border: 1px solid rgba(194, 205, 232, .24);
	background: rgba(10, 16, 35, .35);
	color: var(--ra-text, #f2f6ff);
	box-shadow: none;
}
body .rac-tool-page a.rac-tool-btn--ghost svg { color: var(--ra-cyan-300, #7df0f4); }
body .rac-tool-page a.rac-tool-btn--ghost:hover { background: rgba(47, 224, 230, .1); color: var(--ra-text, #f2f6ff); }
body .rac-tool-page a.rac-tool-btn--block { display: flex; width: 100%; padding-inline: 18px; font-size: 16px; }

body.rac-tool-single .rac-tool-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 36px; margin-top: clamp(32px, 4vw, 56px); }
body.rac-tool-single .rac-tool-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
body.rac-tool-single .rac-tool-h2 { margin: 0 0 14px; color: var(--ra-text, #f2f6ff); font-size: 28px; font-weight: 800; line-height: 1.25; }
body.rac-tool-single .rac-tool-content { color: var(--ra-text-2, #c2cde8); font-size: 18px; line-height: 1.75; }
body.rac-tool-single .rac-tool-content > * { margin-top: 0; margin-bottom: 0; }
body.rac-tool-single .rac-tool-content > * + * { margin-top: 1em; }
body.rac-tool-single .rac-tool-content h2,
body.rac-tool-single .rac-tool-content h3 { color: var(--ra-text, #f2f6ff); line-height: 1.3; margin-top: 1.6em; }
body.rac-tool-single .rac-tool-content a { color: var(--ra-cyan-300, #7df0f4); text-decoration: underline; text-underline-offset: 3px; }
body.rac-tool-single .rac-tool-content img { max-width: 100%; height: auto; border-radius: 16px; }

body.rac-tool-single .rac-tool-tip {
	padding: 26px 28px;
	border: 1px solid rgba(47, 224, 230, .22);
	border-radius: 22px;
	background: radial-gradient(120% 140% at 100% 0%, rgba(47, 224, 230, .1), transparent 60%), #0d1430;
}
body.rac-tool-single .rac-tool-tip-who { display: flex; align-items: center; gap: 14px; }
body.rac-tool-single .rac-tool-tip-face {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(125, 240, 244, .35);
	border-radius: 50%;
	object-fit: cover;
	background: linear-gradient(150deg, #1b3a6b, #0a1020);
	color: var(--ra-cyan-300, #7df0f4);
	font-size: 18px;
	font-weight: 800;
}
body.rac-tool-single .rac-tool-tip-h { margin: 0; color: var(--ra-text, #f2f6ff); font-size: 22px; font-weight: 800; }
body.rac-tool-single .rac-tool-tip-name { margin: 2px 0 0; color: var(--ra-text-3, #8b99bc); font-size: 15px; }
body.rac-tool-single .rac-tool-tip-text { margin-top: 16px; color: var(--ra-text, #f2f6ff); font-size: 19px; line-height: 1.7; }
body.rac-tool-single .rac-tool-tip-text p { margin: 0; }
body.rac-tool-single .rac-tool-tip-text p + p { margin-top: .8em; }

body.rac-tool-single .rac-tool-fit { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
body.rac-tool-single .rac-tool-fit li { display: flex; align-items: flex-start; gap: 12px; color: var(--ra-text-2, #c2cde8); font-size: 18px; line-height: 1.6; }
body.rac-tool-single .rac-tool-fit svg { flex: 0 0 auto; margin-top: 4px; color: var(--ra-cyan-400, #2fe0e6); }
body.rac-tool-single #rac-tool-video:focus { outline: none; }
body.rac-tool-single .rac-tool-vid-title { margin: -6px 0 16px; font-size: 17px; }
body.rac-tool-single .rac-tool-vid-title a { color: var(--ra-text-2, #c2cde8); text-decoration: underline; text-underline-offset: 3px; }
body.rac-tool-single .rac-tool-vid-title a:hover { color: var(--ra-cyan-300, #7df0f4); }

body.rac-tool-single .rac-tool-facts {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--tb-line);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(19, 27, 58, .92), rgba(12, 18, 38, .96));
}
body.rac-tool-single .rac-tool-facts-h { margin: 0; color: var(--ra-text, #f2f6ff); font-size: 18px; font-weight: 800; }
body.rac-tool-single .rac-tool-facts dl { display: flex; flex-direction: column; gap: 12px; margin: 0; }
body.rac-tool-single .rac-tool-facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(194, 205, 232, .1); }
body.rac-tool-single .rac-tool-facts dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
body.rac-tool-single .rac-tool-facts dt { color: var(--ra-text-3, #8b99bc); font-size: 15px; }
body.rac-tool-single .rac-tool-facts dd { margin: 0; color: var(--ra-text, #f2f6ff); font-size: 15px; font-weight: 700; text-align: end; overflow-wrap: anywhere; }
body.rac-tool-single .rac-tool-disclosure { margin: 0; color: var(--ra-text-3, #8b99bc); font-size: 13.5px; line-height: 1.55; }

body.rac-tool-single .rac-tool-end { display: flex; flex-direction: column; gap: 40px; margin-top: 64px; }
body.rac-tool-single .rac-tool-more { padding-top: 28px; border-top: 1px solid rgba(194, 205, 232, .1); }
body.rac-tool-single .rac-tool-more .rac-tool-h2 { margin-bottom: 20px; }
body.rac-tool-single .rac-tool-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	padding: 28px 30px;
	border: 1px solid rgba(47, 224, 230, .22);
	border-radius: 22px;
	background: radial-gradient(120% 140% at 100% 0%, rgba(47, 224, 230, .12), transparent 60%), #0d1430;
}
body.rac-tool-single .rac-tool-cta > div { flex: 1 1 360px; min-width: 0; }
body.rac-tool-single .rac-tool-cta p { margin: 0; color: var(--ra-text-2, #c2cde8); font-size: 17px; line-height: 1.6; }
body.rac-tool-single .rac-tool-cta .rac-tool-cta-h { margin-bottom: 8px; color: var(--ra-text, #f2f6ff); font-size: 24px; font-weight: 800; }
body.rac-tool-single .rac-tool-cta .rac-tut-btn { margin-top: 0; }

/* A tutorial's page: the tools it teaches. */
body.rac-tut-single .rac-tut-tools { margin-top: 56px; }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 900px) {
	body.rac-tool-single .rac-tool-body { grid-template-columns: 1fr; }
	body.rac-tool-single .rac-tool-facts { position: static; }
}
@media (max-width: 600px) {
	body .rac-tb-search { flex: 1 1 100%; min-width: 0; }
	body .rac-tb-tabs { flex: 1 1 100%; }
	/* All four kinds fit across a phone: the tabs share the width instead of scrolling the last one out of sight. */
	body .rac-tb-tabs li { flex: 1 1 auto; }
	body .rac-tb .rac-tb-tab { display: flex; justify-content: center; gap: 5px; padding-inline: 8px; font-size: 15px; }
	/* Every topic stays in sight: the chips wrap (the catalog's sideways strip is turned off here). */
	body .rac-tb .rac-chips { margin-inline: 0; }
	body .rac-tb .rac-chips ul { flex-wrap: wrap; overflow: visible; padding: 0; }
	body .rac-tb-topics { align-items: flex-start; }
	body .rac-tb .rac-tb-topics-k { padding-top: 12px; }
	body .rac-tool-card { padding: 20px; }
	body.rac-tool-single .rac-tool-ctas { width: 100%; }
	body.rac-tool-single .rac-tool-ctas .rac-tool-btn { flex: 1 1 100%; }
	body.rac-tool-single .rac-tool-tip { padding: 22px 20px; }
	body.rac-tool-single .rac-tool-tip-text { font-size: 18px; }
	body.rac-tool-single .rac-tool-cta { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	body .rac-tb .rac-tb-tab,
	body .rac-tool-card,
	body .rac-art-card,
	body .rac-art-card .rac-art-cover img,
	body .rac-tool-page a.rac-tool-btn { transition: none; }
	body .rac-tool-card:hover,
	body .rac-art-card:hover,
	body .rac-art-card:hover .rac-art-cover img { transform: none; }
}
