/**
 * Keyword directory components (/key/ hub + /{keyword}/ landing pages).
 * Loaded only as an addition — does not touch the compiled Tailwind bundle.
 */

/* ---------- Quick answer (GEO) ---------- */
.cispp-quick {
	border-left: 4px solid #f97316;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
}
.cispp-quick__label {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fdba74;
}
.cispp-quick__text {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #fff7ed;
}

/* ---------- Service cards ---------- */
.cispp-card {
	position: relative;
	height: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 1.75rem 1.5rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.cispp-card:hover {
	transform: translateY(-3px);
	border-color: #fdba74;
	box-shadow: 0 14px 30px rgba(249, 115, 22, 0.12);
}
.cispp-card__num {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	color: #f97316;
	margin-bottom: 0.75rem;
}
.cispp-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
}
.cispp-card__desc {
	margin: 0.6rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #475569;
}

/* ---------- Numbered steps ---------- */
.cispp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}
.cispp-steps > li {
	display: flex;
	gap: 1.1rem;
	padding-bottom: 1.6rem;
	position: relative;
}
.cispp-steps > li:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 1.05rem;
	top: 2.4rem;
	bottom: 0.2rem;
	width: 2px;
	background: #fed7aa;
}
.cispp-steps__num {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	background: #f97316;
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	position: relative;
	z-index: 1;
	box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

/* ---------- Comparison table ---------- */
.cispp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
}
.cispp-table thead th {
	background: #0f172a;
	color: #fff;
	text-align: left;
	font-weight: 600;
	padding: 0.9rem 1rem;
	font-size: 0.875rem;
}
.cispp-table tbody th {
	text-align: left;
	font-weight: 600;
	color: #0f172a;
	background: #f8fafc;
}
.cispp-table th,
.cispp-table td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e2e8f0;
	color: #475569;
	vertical-align: top;
}
.cispp-table tbody tr:last-child th,
.cispp-table tbody tr:last-child td {
	border-bottom: 0;
}
.cispp-table tbody tr:nth-child(even) td {
	background: #fcfcfd;
}

/* ---------- Semantic term chips ---------- */
.cispp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.cispp-chip {
	display: inline-flex;
	align-items: center;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
	background: #fff;
	padding: 0.45rem 0.9rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #334155;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* ---------- Related article cards ---------- */
.cispp-rel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: #fff;
	text-decoration: none;
	transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.cispp-rel:hover {
	transform: translateY(-3px);
	border-color: #fdba74;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}
.cispp-rel__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}
.cispp-rel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cispp-rel__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
}
.cispp-rel__title {
	font-weight: 700;
	color: #0f172a;
	line-height: 1.4;
}
.cispp-rel:hover .cispp-rel__title {
	color: #c2410c;
}
.cispp-rel__excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: #64748b;
}
.cispp-rel__meta {
	font-size: 0.75rem;
	font-weight: 600;
	color: #f97316;
}

/* ---------- E-E-A-T ---------- */
.cispp-eeat h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}
.cispp-eeat p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #475569;
}
.cispp-eeat {
	border-top: 3px solid #f97316;
	padding-top: 1rem;
}

/* ---------- FAQ (details/summary) ---------- */
.cispp-faq details {
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #fff;
	margin-bottom: 0.75rem;
	overflow: hidden;
}
.cispp-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	font-weight: 600;
	color: #0f172a;
}
.cispp-faq summary::-webkit-details-marker {
	display: none;
}
.cispp-faq summary::after {
	content: "+";
	font-size: 1.35rem;
	font-weight: 400;
	color: #f97316;
	line-height: 1;
	transition: transform 0.2s;
}
.cispp-faq details[open] summary::after {
	transform: rotate(45deg);
}
.cispp-faq__a {
	padding: 0 1.25rem 1.2rem;
	color: #475569;
	line-height: 1.7;
	font-size: 0.9375rem;
}

/* ---------- Authoritative citation cards ---------- */
.cispp-cite {
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #f97316;
	border-radius: 0.75rem;
	padding: 1.5rem;
}
.cispp-cite blockquote {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: #1e293b;
}
.cispp-cite figcaption {
	margin-top: 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #64748b;
}
.cispp-cite figcaption a {
	color: #c2410c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Keyword link grid (hub + footer band) ---------- */
.cispp-key-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.75rem;
}
@media (min-width: 640px) {
	.cispp-key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.cispp-key-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cispp-key-grid a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.9rem 1.1rem;
	border-radius: 0.75rem;
	background: #fff;
	color: #0f172a;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.35;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	transition: all 0.25s;
}
.cispp-key-grid a:hover,
.cispp-key-grid a:focus {
	background: #fff7ed;
	border-color: #fb923c;
	color: #9a3412;
	transform: translateY(-2px);
}
.cispp-key-grid .cispp-key-sub {
	font-weight: 400;
	font-size: 0.75rem;
	color: #64748b;
}
.cispp-key-grid a:hover .cispp-key-sub {
	color: #c2410c;
}
.cispp-key-grid__title {
	display: block;
}

/* Dark variant for the footer band */
.cispp-key-grid--dark a {
	background: #0b1220;
	color: #e2e8f0;
	border-color: #1e293b;
}
.cispp-key-grid--dark a:hover,
.cispp-key-grid--dark a:focus {
	background: #431407;
	border-color: #f97316;
	color: #fff;
}
.cispp-key-grid--dark .cispp-key-sub {
	color: #94a3b8;
}
.cispp-key-grid--dark a:hover .cispp-key-sub {
	color: #fdba74;
}

/* ---------- Random cross-links between keyword pages (~20 per page) ---------- */
.cispp-topics {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.625rem;
}
@media (min-width: 640px) {
	.cispp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.cispp-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cispp-topics a {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.75rem 0.95rem;
	border-radius: 0.625rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #0f172a;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.cispp-topics a:hover,
.cispp-topics a:focus {
	background: #fff7ed;
	border-color: #fb923c;
	transform: translateY(-2px);
}
.cispp-topics__title {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.35;
}
.cispp-topics a:hover .cispp-topics__title {
	color: #9a3412;
}
.cispp-topics__cat {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: #94a3b8;
}

/* Category jump navigation on the /key/ hub */
.cispp-catnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.cispp-catnav a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
	background: #fff;
	padding: 0.4rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	transition: all 0.2s;
}
.cispp-catnav a:hover,
.cispp-catnav a:focus {
	background: #fff7ed;
	border-color: #fb923c;
	color: #9a3412;
}
.cispp-catnav a span {
	font-size: 0.6875rem;
	font-weight: 700;
	color: #f97316;
}
