/* Curriki Review Template — Layout 2 (sticky sidebar). Every selector is
   scoped under .crt-review so nothing here can leak into the theme, the
   global Elementor header/footer, or any other page. */

.crt-review {
	--crt-b1: #084892;
	--crt-b1-25: #063A75;
	--crt-b2: #285AA5;
	--crt-b3: #3574D2;
	--crt-b5: #E5EEFF;
	--crt-highlight: #F7FAFF;
	--crt-y1: #F8AF2C;
	--crt-y2: #CF900F;
	--crt-y4: #FFE8C1;
	--crt-w1: #515151;
	--crt-w2: #767676;
	--crt-w3: #959595;
	--crt-w5: #F1F1F1;
	--crt-g1: #4D8755;
	--crt-g2: #6FBF77;
	--crt-r4: #FF7C38;
	--crt-r5: #FFBF9D;
	--crt-p1: #9B5DFB;
	--crt-p6: #F6E2FE;
	--crt-font-head: 'Montserrat', sans-serif;
	--crt-radius-sm: 10px;
	--crt-radius-md: 18px;
	--crt-radius-lg: 28px;
	--crt-radius-pill: 999px;
	--crt-shadow-sm: 0 2px 8px rgba(8, 72, 146, 0.07);
	--crt-shadow-md: 0 12px 32px rgba(8, 72, 146, 0.12);

	font-family: var(--crt-font-head);
	color: var(--crt-w1);
	line-height: 1.6;
}
.crt-review *, .crt-review *::before, .crt-review *::after { box-sizing: border-box; }
.crt-review h1, .crt-review h2, .crt-review h3, .crt-review h4 {
	font-family: var(--crt-font-head); color: var(--crt-b1); margin: 0; line-height: 1.15; font-weight: 700;
}
.crt-review p { margin: 0; }
.crt-review a { color: inherit; text-decoration: none; }
.crt-review img, .crt-review svg { display: block; max-width: 100%; }
.crt-review ul { margin: 0; padding: 0; list-style: none; }

.crt-review .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero band — full width colored gradient, distinct from Layout 1's plain header. */
.crt-review .crt-hero-band { background: linear-gradient(120deg, var(--crt-b1) 0%, var(--crt-b2) 55%, var(--crt-b3) 100%); padding: 26px 0 36px; color: #fff; }
.crt-review .crt-hero-band h1, .crt-review .crt-hero-band h2 { color: #fff; }
.crt-review .crt-back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: #fff; opacity: 0.9; }
.crt-review .crt-back-link svg { width: 15px; height: 15px; }
.crt-review .crt-hero-band-top { padding-top: 8px; }
.crt-review .crt-hero-band-main { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
/* Fixed height, flexible width (84px–200px): most product logos are
   horizontal wordmarks, not squares. A fixed 84x84 square forced a wide
   logo down to whatever height fit its full width, leaving most of the
   box empty — sizing off height instead lets it use the box properly. */
.crt-review .crt-hero-logo {
	height: 104px; min-width: 104px; max-width: 240px; border-radius: var(--crt-radius-md); flex: none; display: flex; align-items: center;
	justify-content: center; background: #fff; border: 1px solid rgba(255, 255, 255, 0.25); padding: 20px 32px; overflow: hidden;
}
.crt-review .crt-hero-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.crt-review .crt-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.crt-review .crt-pill { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; padding: 4px 12px; border-radius: var(--crt-radius-pill); }
.crt-review .crt-pill-tag { background: rgba(255, 255, 255, 0.16); color: #fff; }
.crt-review .crt-pill-reviewed { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--crt-g1); }
.crt-review .crt-pill-reviewed svg { width: 12px; height: 12px; }
.crt-review .crt-hero-band h1 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.crt-review .crt-hero-band-date { font-size: 13.5px; opacity: 0.85; font-weight: 500; }

/* Sidebar + main column grid. */
.crt-review .crt-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 0; padding-top: 40px; padding-bottom: 40px; }
/*
 * top: 120px clears the site's own fixed header (Curriki's Elementor
 * header, ~104.5px tall including the announcement bar) plus a small
 * visual gap — without it, the sidebar sticks 24px from the very top of
 * the viewport, which is *underneath* that header once you scroll, so
 * everything above "Status" gets hidden behind it.
 *
 * The two rules below add the WordPress admin toolbar's own height on
 * top of that, for logged-in visitors only (`body.admin-bar`) — 32px on
 * desktop, 46px on the narrow viewports where WordPress itself makes the
 * toolbar taller. A logged-out visitor never has that class, so this
 * never affects what most people actually see.
 */
.crt-review .crt-sidebar {
	position: sticky; top: 120px; align-self: start; background: #fff; border-radius: var(--crt-radius-md);
	box-shadow: var(--crt-shadow-md); border: 1px solid var(--crt-w5); padding: 22px;
}
body.admin-bar .crt-review .crt-body h2,
body.admin-bar .crt-review .crt-pros-cons,
body.admin-bar .crt-review .crt-verdict {
	scroll-margin-top: 152px;
}
body.admin-bar .crt-review .crt-sidebar { top: 152px; }
@media screen and (max-width: 782px) {
	body.admin-bar .crt-review .crt-sidebar { top: 166px; }
	body.admin-bar .crt-review .crt-body h2,
	body.admin-bar .crt-review .crt-pros-cons,
	body.admin-bar .crt-review .crt-verdict {
		scroll-margin-top: 166px;
	}
}
.crt-review .crt-sidebar h4 { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--crt-w3); margin: 0 0 12px; }
.crt-review .crt-sidebar-facts { margin: 0 0 22px; }
.crt-review .crt-sidebar-facts li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--crt-w5); }
.crt-review .crt-sidebar-facts li:last-child { border-bottom: none; }
.crt-review .crt-sidebar-facts .crt-k { color: var(--crt-w2); }
.crt-review .crt-sidebar-facts .crt-v { color: var(--crt-b1); font-weight: 700; text-align: right; }
.crt-review .crt-sidebar-nav li { margin-bottom: 2px; }
.crt-review .crt-sidebar-nav a { display: block; padding: 7px 10px; border-radius: var(--crt-radius-sm); font-size: 13.5px; color: var(--crt-w1); font-weight: 500; }
.crt-review .crt-sidebar-nav a:hover, .crt-review .crt-sidebar-nav a.crt-active { background: var(--crt-highlight); color: var(--crt-b1); font-weight: 700; }

.crt-review .crt-main-col { min-width: 0; padding-top: 30px; }

.crt-review .crt-gallery-frame {
	border-radius: var(--crt-radius-lg); overflow: hidden; box-shadow: var(--crt-shadow-md); border: 1px solid var(--crt-w5); background: var(--crt-highlight);
}
.crt-review .crt-gallery-track { display: flex; transition: transform 0.35s ease; }
.crt-review .crt-gallery-slide { flex: 0 0 100%; min-width: 0; }
.crt-review .crt-gallery img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* Controls live in their own row below the frame, not on top of the
   screenshot — nothing to accidentally cover the image with. */
.crt-review .crt-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.crt-review .crt-gallery-arrow {
	flex: none; width: 36px; height: 36px; border-radius: 50%;
	background: #fff; border: 1px solid var(--crt-w5); box-shadow: var(--crt-shadow-sm);
	display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--crt-b2); padding: 0;
}
.crt-review .crt-gallery-arrow svg { width: 18px; height: 18px; }
/* :focus too, not just :hover — a clicked button keeps focus after the
   mouse leaves it, and the theme's own button:focus rule (a bright pink)
   would otherwise take over the moment hover ends. :focus-visible keeps a
   visible ring for keyboard users without it showing on an ordinary click. */
.crt-review .crt-gallery-arrow:hover, .crt-review .crt-gallery-arrow:focus { background: var(--crt-b2); color: #fff; outline: none; }
.crt-review .crt-gallery-arrow:focus-visible { box-shadow: 0 0 0 3px var(--crt-b5); }
.crt-review .crt-gallery-dots { display: flex; align-items: center; gap: 8px; }
.crt-review .crt-gallery-dot {
	width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--crt-w5);
	background: var(--crt-w5); cursor: pointer; transition: width 0.2s ease, background 0.2s ease;
}
.crt-review .crt-gallery-dot:hover, .crt-review .crt-gallery-dot:focus { background: var(--crt-b5); border-color: var(--crt-b3); outline: none; }
.crt-review .crt-gallery-dot:focus-visible { box-shadow: 0 0 0 3px var(--crt-b5); }
.crt-review .crt-gallery-dot.is-active { width: 22px; border-radius: 4px; background: var(--crt-b2); border-color: var(--crt-b2); }
.crt-review .crt-gallery-dot.is-active:hover, .crt-review .crt-gallery-dot.is-active:focus { background: var(--crt-b2); }

.crt-review .crt-video { margin-top: 28px; }
.crt-review .crt-video h2 { font-weight: 800; font-size: 20px; margin: 0 0 14px; }
.crt-review .crt-video-frame {
	border-radius: var(--crt-radius-lg); overflow: hidden; box-shadow: var(--crt-shadow-md); border: 1px solid var(--crt-w5);
	background: #000; position: relative; aspect-ratio: 16 / 9;
}
.crt-review .crt-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.crt-review .crt-body { margin-top: 8px; }
/* Same fixed-header offset as .crt-sidebar above — otherwise clicking a
   "On This Page" link scrolls its target right under the fixed header.
   Covers every anchor target the sidebar nav can jump to: section
   headings, and the Strengths/Limitations and Final Verdict blocks. */
.crt-review .crt-body h2 { font-weight: 800; font-size: 22px; margin: 40px 0 14px; scroll-margin-top: 120px; }
.crt-review .crt-body h2:first-of-type { margin-top: 44px; }
.crt-review .crt-body h3 { font-weight: 700; font-size: 16px; color: var(--crt-b1); margin: 22px 0 10px; }
.crt-review .crt-body p { font-size: 15px; color: var(--crt-w1); margin: 0 0 14px; }

.crt-review .crt-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 40px; scroll-margin-top: 120px; }
.crt-review .crt-pros-cons .crt-card { border-radius: var(--crt-radius-md); padding: 20px; border: 1px solid var(--crt-w5); }
.crt-review .crt-pros-cons .crt-strengths { background: #F3FAF4; }
.crt-review .crt-pros-cons .crt-limitations { background: #FFF8F4; }
.crt-review .crt-pros-cons h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.crt-review .crt-pros-cons .crt-strengths h3 { color: var(--crt-g1); }
.crt-review .crt-pros-cons .crt-limitations h3 { color: var(--crt-r4); }
.crt-review .crt-pros-cons li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; margin-bottom: 11px; }
.crt-review .crt-pros-cons li:last-child { margin-bottom: 0; }
.crt-review .crt-pros-cons .crt-ic {
	width: 17px; height: 17px; border-radius: 50%; flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.crt-review .crt-strengths .crt-ic { background: var(--crt-g2); color: #fff; }
.crt-review .crt-limitations .crt-ic { background: var(--crt-r5); color: #7A2E00; }
.crt-review .crt-pros-cons .crt-ic svg { width: 10px; height: 10px; }
@media (max-width: 640px) { .crt-review .crt-pros-cons { grid-template-columns: 1fr; } }

.crt-review .crt-verdict {
	background: linear-gradient(120deg, var(--crt-b5), var(--crt-highlight)); border-left: 4px solid var(--crt-b1);
	border-radius: 0 var(--crt-radius-md) var(--crt-radius-md) 0; padding: 26px 28px; margin-top: 0;
	scroll-margin-top: 120px;
}
.crt-review .crt-verdict h2 { margin-top: 0 !important; }
.crt-review .crt-verdict p { color: var(--crt-w1); }
.crt-review .crt-grade-badge {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--crt-b1); color: #fff; font-weight: 800; margin-left: 6px;
}

.crt-review .crt-more { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--crt-w5); padding-bottom: 20px; }
.crt-review .crt-more h2 { font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.crt-review .crt-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crt-review .crt-more-card {
	background: var(--crt-highlight); border: 1px solid var(--crt-w5); border-radius: var(--crt-radius-md); padding: 16px;
	display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease;
}
.crt-review .crt-more-card:hover { transform: translateY(-4px); box-shadow: var(--crt-shadow-md); }
/* White, not the card's --crt-highlight tint: most logo files already have
   their own solid white background baked in, so a white box is what makes
   the logo blend in cleanly instead of showing as a mismatched rectangle. */
.crt-review .crt-more-card .crt-logo-box {
	background: #fff; border: 1px solid var(--crt-w5); border-radius: var(--crt-radius-sm); height: 100px;
	display: flex; align-items: center; justify-content: center; padding: 6px 14px;
}
/* max-height used to be 26px against a 64px box — leaving nearly half the
   box empty around a tiny logo. Matched to what the box's own padding
   actually leaves available (64 - 6*2 = 52, minus a small buffer). */
.crt-review .crt-more-card .crt-logo-box img { max-height: 88px; max-width: 100%; width: auto; display: block; }
.crt-review .crt-more-card .crt-tag {
	align-self: flex-start; display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
	padding: 3px 9px; border-radius: var(--crt-radius-pill);
}
.crt-review .crt-more-card .crt-name { font-weight: 700; font-size: 14.5px; color: var(--crt-b1); }

@media (max-width: 900px) {
	.crt-review .crt-layout { grid-template-columns: 1fr; margin-top: 0; padding-top: 28px; }
	.crt-review .crt-sidebar { position: static; margin-bottom: 24px; }
	.crt-review .crt-more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .crt-review .crt-more-grid { grid-template-columns: 1fr; } }
