/* ==========================================================================
   Know Your Rights explorer — topic tiles, live results, closers.
   ========================================================================== */

.jcu-rights {
	--jcur-purple: #68267e;
	--jcur-soft: rgba(104, 38, 126, 0.08);
	background: #fff;
}

/* Hero */

.jcu-rights__hero {
	background:
		radial-gradient(800px 400px at 85% -20%, rgba(104, 38, 126, 0.35), transparent),
		linear-gradient(160deg, rgba(10, 10, 11, 0.93), rgba(22, 18, 26, 0.88) 60%, rgba(29, 21, 34, 0.92)),
		#0a0a0b url("footer-bg.jpg") center / cover no-repeat;
	color: #fff;
	padding: 4rem 0 4.5rem;
}

.jcu-rights__hero-inner {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.jcu-rights__kicker {
	display: inline-block;
	color: #e3a3cd;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	margin-bottom: 0.8rem;
}

.jcu-rights__hero h1 {
	margin: 0 0 0.7rem;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.08;
	color: #fff;
}

.jcu-rights__hero p {
	margin: 0;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.08rem;
	line-height: 1.65;
}

.jcu-rights__stats {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.jcu-rights__stats li {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.85rem;
	padding: 0.45rem 1rem;
	border-radius: 999px;
}

.jcu-rights__stats strong {
	color: #fff;
	font-weight: 800;
}

/* Topic tiles */

.jcu-rights__inner {
	max-width: 1250px;
	margin: 0 auto;
	padding: 2.75rem 1.25rem 4.5rem;
}

.jcu-rights__topics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
	gap: 0.6rem;
	margin-bottom: 2.5rem;
}

/* Scoped + fully reset: the Elementor kit styles <button> globally
   (pink borders, crimson hover) and otherwise outranks these rules. */
.jcu-rights__topics .jcu-rights__topic,
.jcu-rights__topics .jcu-rights__topic:focus {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	background: #fff;
	border: 1px solid #eee5f1;
	border-radius: 12px;
	padding: 0.6rem 0.85rem;
	margin: 0;
	color: #1c1c1f;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.jcu-rights__topics .jcu-rights__topic:hover {
	background: #fff;
	border-color: #e3d4ea;
	color: #1c1c1f;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30, 10, 38, 0.1);
}

/* Kit button:hover paints text white — pin every part's color on hover */
.jcu-rights__topics .jcu-rights__topic:hover .jcu-rights__topic-name {
	color: #1c1c1f;
}

.jcu-rights__topics .jcu-rights__topic:hover .jcu-rights__topic-count {
	color: #9b8ba5;
}

.jcu-rights__topics .jcu-rights__topic:hover .jcu-rights__topic-icon {
	background: var(--jcur-soft);
	color: var(--jcur-purple);
}

.jcu-rights__topics .jcu-rights__topic.is-active:hover .jcu-rights__topic-name {
	color: #fff;
}

.jcu-rights__topics .jcu-rights__topic.is-active:hover .jcu-rights__topic-count {
	color: rgba(255, 255, 255, 0.7);
}

.jcu-rights__topics .jcu-rights__topic.is-active:hover .jcu-rights__topic-icon {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.jcu-rights__topic-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--jcur-soft);
	color: var(--jcur-purple);
	transition: background 0.2s, color 0.2s;
}

.jcu-rights__topic-icon svg {
	width: 19px;
	height: 19px;
}

.jcu-rights__topic-name {
	display: block;
	flex: 1;
	min-width: 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: #1c1c1f;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: break-word;
}

.jcu-rights__topic-count {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #9b8ba5;
	letter-spacing: 0.06em;
}

.jcu-rights__topics .jcu-rights__topic.is-active,
.jcu-rights__topics .jcu-rights__topic.is-active:hover {
	background: var(--jcur-purple);
	border-color: var(--jcur-purple);
	box-shadow: 0 12px 28px rgba(104, 38, 126, 0.35);
}

.jcu-rights__topic.is-active .jcu-rights__topic-icon {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.jcu-rights__topic.is-active .jcu-rights__topic-name {
	color: #fff;
}

.jcu-rights__topic.is-active .jcu-rights__topic-count {
	color: rgba(255, 255, 255, 0.7);
}

/* Results */

.jcu-rights__results {
	scroll-margin-top: 110px;
}

.jcu-rights__results-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 800;
	color: #1c1c1f;
}

.jcu-rights__results-title span {
	color: var(--jcur-purple);
}

.jcu-rights__loadmore-wrap {
	text-align: center;
	margin-top: 3rem;
}

.jcu-rights__none {
	margin-top: 2rem;
	color: #777;
}

/* Footer row: glossary promo + helpline */

.jcu-rights__footer {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 1.25rem;
	margin-top: 3.5rem;
}

.jcu-rights__glossary {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	background: #faf8fb;
	border: 1px solid #eee5f1;
	border-radius: 16px;
	padding: 1.5rem 1.75rem;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.jcu-rights__glossary:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(30, 10, 38, 0.12);
}

.jcu-rights__glossary-letters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: linear-gradient(150deg, #5a2148, var(--jcur-purple));
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
}

.jcu-rights__glossary strong {
	display: block;
	color: #1c1c1f;
	font-size: 1.12rem;
	font-weight: 800;
}

.jcu-rights__glossary em {
	display: block;
	color: #777;
	font-size: 0.9rem;
	font-style: normal;
	margin-top: 0.2rem;
}

.jcu-rights__glossary svg {
	width: 20px;
	height: 20px;
	color: var(--jcur-purple);
	margin-left: auto;
	flex-shrink: 0;
	transition: transform 0.2s;
}

.jcu-rights__glossary:hover svg {
	transform: translateX(4px);
}

/* Helpline card — flat ink house style */

.jcu-rights__help {
	background:
		linear-gradient(rgba(31, 14, 33, 0.94), rgba(31, 14, 33, 0.94)),
		#221024 url("footer-bg.jpg") center / cover no-repeat;
	border-radius: 16px;
	padding: 1.5rem 1.75rem;
	color: #fff;
}

.jcu-rights__help-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #cf9ec2;
	padding-bottom: 0.6rem;
	margin-bottom: 0.8rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jcu-rights__help-number {
	display: block;
	color: #fff !important;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.jcu-rights__help-number:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
	text-decoration-color: #cf9ec2;
}

.jcu-rights__help p {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}

/* Responsive */

@media (max-width: 900px) {
	.jcu-rights__footer {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.jcu-rights__topics {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Collapsible topics on phones --------------------------------------
   Desktop always shows the full grid; below 820px only the first six
   tiles show until the More toggle expands the rest. */

/* Doubled-up selector: reset.css's [type="button"] { display:inline-block }
   ties a single class on specificity and loads later */
.jcu-rights__topics .jcu-rights__topics-toggle {
	display: none;
}

@media (max-width: 820px) {
	.jcu-rights__topics:not(.is-expanded) .jcu-rights__topic--extra {
		display: none;
	}

	/* Scoped + reset like the tiles: the kit styles <button> globally */
	.jcu-rights__topics .jcu-rights__topics-toggle,
	.jcu-rights__topics .jcu-rights__topics-toggle:focus {
		display: block;
		grid-column: 1 / -1;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		margin: 0.2rem 0 0;
		padding: 0.55rem 0;
		font-family: inherit;
		font-size: 0.9rem;
		font-weight: 800;
		letter-spacing: 0.02em;
		text-transform: none;
		color: #68267e;
		cursor: pointer;
	}

	.jcu-rights__topics .jcu-rights__topics-toggle:hover {
		background: transparent;
		color: #4f1d60;
	}

	.jcu-rights__topics-toggle span {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
	}

	.jcu-rights__topics-toggle span[hidden] {
		display: none;
	}

	.jcu-rights__topics-toggle svg {
		width: 16px;
		height: 16px;
	}
}
