/* ================================
   Secondary pages
   Implementation, Security, FAQ, Why We Built Sienna
   ================================ */

/* ---------- Prose sections ------------------------------------------------ */
/* Fomantic headings carry their own small margins, so the text pages used to
   run together. These rules only apply inside .prose-page, leaving the
   homepage and features pages untouched. */
.prose-page h3 {
	margin-top: 2.5rem !important;
	margin-bottom: 0.75rem !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
}

.prose-page h3:first-child {
	margin-top: 0 !important;
}

.prose-page p {
	margin-bottom: 1rem;
	color: var(--color-text-secondary);
}

.prose-page ul.ui.list {
	margin-top: 0.25rem;
	margin-bottom: 1.25rem;
}

.prose-page ul.ui.list > li {
	margin-bottom: 0.4rem;
	color: var(--color-text-secondary);
}

/* Reuse the homepage step cards on the implementation page. */
.prose-page .steps-grid {
	margin-top: 2.5rem;
}

.prose-block {
	margin-top: 3.5rem;
}

.prose-cta {
	margin-top: 2.5rem;
}

/* ---------- Callout boxes ------------------------------------------------- */
.callout-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.callout-box {
	padding: 1.75rem;
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 16px;
	box-shadow: 0 4px 16px var(--color-shadow-lightest);
}

.callout-heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.75rem !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
}

.callout-heading i {
	width: 20px;
	height: 20px;
	color: var(--color-primary-light);
}

.callout-box p {
	margin: 0 0 0.75rem;
	color: var(--color-text-muted);
}

.callout-box p:last-child {
	margin-bottom: 0;
}

.callout-note {
	padding-top: 0.75rem;
	border-top: 1px solid var(--color-border-lighter);
	font-size: 0.9rem;
	color: var(--color-text-muted-light);
}

/* ---------- "What we do not claim" panel ---------------------------------- */
.claims-panel {
	margin-top: 2.5rem;
	padding: 1.75rem;
	background: var(--color-bg-light);
	border: 1px solid var(--color-border-light);
	border-radius: 16px;
}

.claims-panel h3 {
	margin-top: 0 !important;
}

.claims-list {
	margin: 0;
	padding-left: 1.1rem;
}

.claims-list li {
	margin-bottom: 0.5rem;
	color: var(--color-text-muted);
}

/* ---------- FAQ ----------------------------------------------------------- */
.faq-jump {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	padding: 0;
	list-style: none;
}

.faq-jump li {
	margin: 0;
}

.faq-jump a {
	display: inline-block;
	padding: 0.35rem 0.8rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-primary-dark);
	background: var(--color-primary-bg-light);
	border: 1px solid var(--color-primary-border-light);
	border-radius: 999px;
}

.faq-jump a:hover,
.faq-jump a:focus-visible {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-bg);
}

.faq-group {
	margin-top: 3.5rem;
}

.faq-group:first-of-type {
	margin-top: 2.5rem;
}

.faq-group-title {
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-primary-border-light);
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-primary-dark) !important;
}

.faq-item {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--color-border-lighter);
}

.faq-item h4 {
	margin: 0 0 0.5rem;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--color-bg-dark);
}

.faq-item p {
	margin: 0;
	color: var(--color-text-muted);
}

.faq-item p + p {
	margin-top: 0.6rem;
}

.faq-status {
	display: inline-block;
	margin-left: 0.45rem;
	padding: 0.1rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
	color: var(--color-text-muted);
	background: var(--color-bg-light);
	border: 1px dashed var(--color-border-light);
	border-radius: 6px;
}

/* ---------- Why-we-built-this scroll cue ---------------------------------- */
/* Moved out of the inline <style> block in why-we-built-this.php. */
.scroll-cue {
	margin-top: 2rem;
	text-align: center;
	opacity: 0.85;
}

.scroll-link {
	font-size: 0.9rem;
	color: var(--color-bg);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.scroll-link:hover,
.scroll-link:focus-visible {
	color: var(--color-bg);
	opacity: 0.9;
}

/* ---------- Link visibility ---------- */
/* Footer links: make them obviously clickable */
footer .ui.inverted.link.list .item {
	color: var(--color-primary-light) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

footer .ui.inverted.link.list .item:hover,
footer .ui.inverted.link.list .item:focus-visible {
	opacity: 1;
	color: var(--color-white) !important;
}

/* Footer utility row keeps legal and support links separate from the main
   navigation without adding another full-width list. */
.footer-utility {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	max-width: 720px;
	margin: 0.75rem auto 0;
}

.footer-utility .ui.link.list {
	margin: 0 !important;
}

.footer-utility .footer-support-nav {
	justify-self: end;
	padding-right: 1.5rem;
}

.footer-utility .footer-legal-nav {
	justify-self: start;
	padding-left: 1.5rem;
	border-left: 1px solid var(--color-primary-light);
}

/* Inline content links: stand out from surrounding prose */
.ui.message a,
section .ui.container > p a,
.home-hero p a,
.home-intro p a {
	color: var(--color-primary) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.ui.message a:hover,
section .ui.container > p a:hover,
.home-hero p a:hover,
.home-intro p a:hover {
	opacity: 0.9;
}

/* Guided-demo feedback is the post-submit scroll target. Offset the fixed
   navbar so the heading is not hidden when it is brought into view. */
.demo-feedback {
	scroll-margin-top: 90px;
}

.demo-feedback:focus {
	outline: none;
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 767px) {
	.callout-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.prose-page h3 {
		margin-top: 2rem !important;
	}

	.faq-group {
		margin-top: 2.5rem;
	}
}

@media (max-width: 640px) {
	.footer-utility {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.footer-utility .footer-support-nav,
	.footer-utility .footer-legal-nav {
		justify-self: center;
		padding-right: 0;
		padding-left: 0;
		border-left: 0;
	}
}
