/* Static footer pages (EULA, policies, help, delete request) - layered on
   top of landing.css, which supplies the navbar, footer, buttons and tokens.
   Light theme only. */

.sk-landing.sk-static {
	--sk-doc-ink: #1f2937;
	--sk-doc-muted: #4b5563;
	--sk-doc-subtle: #6b7280;
	--sk-doc-line: #e5e7eb;
	--sk-doc-surface: #ffffff;
	--sk-doc-page: #f5f7f9;
	--sk-doc-tint: #eef6fb;
	--sk-doc-warn-tint: #fff7ed;
	--sk-doc-warn-line: #f59e0b;
	background: var(--sk-doc-page);
	/* landing.css pulls .sk-landing up 41px to cover Frappe's (hidden)
	   navbar; here that would tuck the breadcrumb under our fixed navbar. */
	margin-top: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.sk-static-main {
	flex: 1 0 auto;
	padding-top: var(--sk-navbar-height);
}

/* Anchored headings must clear the fixed navbar */
.sk-static [id] {
	scroll-margin-top: calc(var(--sk-navbar-height) + 16px);
}

html:has(.sk-static) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(.sk-static) {
		scroll-behavior: auto;
	}
}

/* ===== HERO ===== */
.sk-static-hero {
	background: linear-gradient(180deg, #ffffff 0%, var(--sk-doc-tint) 100%);
	border-bottom: 1px solid var(--sk-doc-line);
	padding: 40px 0 32px;
}

.sk-static-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--sk-doc-subtle);
	margin-bottom: 12px;
}

.sk-static-crumbs a {
	color: var(--sk-primary) !important;
}

.sk-static-crumbs a:hover {
	text-decoration: underline !important;
}

.sk-landing .sk-static-title {
	font-size: clamp(28px, 4vw, 40px);
	color: #1e293b;
	margin: 0;
	padding-bottom: 8px;
	display: inline-block;
	border-bottom: 4px solid var(--sk-accent);
}

.sk-landing .sk-static-lede {
	margin: 16px 0 0;
	max-width: 70ch;
	font-size: 17px;
	color: var(--sk-doc-muted);
}

/* ===== LAYOUT ===== */
.sk-static-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 240px;
	gap: 32px;
	align-items: start;
	padding-top: 32px;
	padding-bottom: 56px;
}

.sk-static-card {
	background: var(--sk-doc-surface);
	border: 1px solid var(--sk-doc-line);
	border-radius: 12px;
	padding: 40px 48px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	min-width: 0;
}

.sk-static-aside {
	position: sticky;
	top: calc(var(--sk-navbar-height) + 24px);
	background: var(--sk-doc-surface);
	border: 1px solid var(--sk-doc-line);
	border-radius: 12px;
	padding: 20px;
	font-size: 14px;
}

.sk-landing .sk-static-aside-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sk-doc-subtle);
	margin: 0 0 8px;
}

.sk-static-aside ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sk-static-aside li a {
	display: block;
	padding: 8px 12px;
	margin: 0 -12px;
	border-radius: 6px;
	border-left: 3px solid transparent;
	color: var(--sk-doc-ink) !important;
	transition: background 0.15s, color 0.15s;
}

.sk-static-aside li a:hover {
	background: var(--sk-doc-tint);
	color: var(--sk-primary) !important;
}

.sk-static-aside li a[aria-current="page"] {
	background: var(--sk-doc-tint);
	border-left-color: var(--sk-accent);
	color: var(--sk-primary) !important;
	font-weight: 600;
}

.sk-static-aside-contact {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--sk-doc-line);
	overflow-wrap: break-word;
}

.sk-landing .sk-static-aside-contact p {
	margin: 0 0 4px;
	color: var(--sk-doc-subtle);
}

.sk-static-aside-contact a {
	color: var(--sk-primary) !important;
	font-weight: 600;
}

/* ===== DOCUMENT TYPOGRAPHY ===== */
.sk-doc {
	color: var(--sk-doc-ink);
	font-size: 16px;
	line-height: 1.75;
}

.sk-landing .sk-doc h2 {
	font-size: 22px;
	color: #1e293b;
	margin: 40px 0 12px;
	padding-top: 24px;
	border-top: 1px solid var(--sk-doc-line);
}

.sk-landing .sk-doc > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.sk-landing .sk-doc h3 {
	font-size: 18px;
	color: #1e293b;
	margin: 28px 0 8px;
}

.sk-landing .sk-doc p {
	margin: 0 0 16px;
}

.sk-landing .sk-doc a {
	color: var(--sk-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sk-landing .sk-doc a:hover {
	color: #003a63;
}

.sk-doc strong {
	color: #111827;
}

.sk-doc ul,
.sk-doc ol {
	margin: 0 0 16px;
	padding-left: 1.5em;
}

.sk-doc li {
	margin-bottom: 8px;
	padding-left: 4px;
}

.sk-doc li > ul,
.sk-doc li > ol {
	margin-top: 8px;
}

.sk-doc ol.sk-doc-alpha {
	list-style: none;
	counter-reset: sk-alpha;
	padding-left: 2.25em;
}

.sk-doc ol.sk-doc-alpha > li {
	counter-increment: sk-alpha;
	position: relative;
}

.sk-doc ol.sk-doc-alpha > li::before {
	content: "(" counter(sk-alpha, lower-alpha) ")";
	position: absolute;
	left: -2.25em;
	width: 2em;
	color: var(--sk-doc-subtle);
	font-weight: 600;
}

.sk-doc ol.sk-doc-roman {
	list-style: lower-roman;
}

.sk-landing .sk-doc-muted {
	font-size: 14px;
	color: var(--sk-doc-subtle);
}

/* Callouts */
.sk-doc-note {
	background: var(--sk-doc-tint);
	border-left: 4px solid var(--sk-primary);
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin: 0 0 24px;
}

.sk-doc-note--warn {
	background: var(--sk-doc-warn-tint);
	border-left-color: var(--sk-doc-warn-line);
}

.sk-landing .sk-doc-note p:last-child {
	margin-bottom: 0;
}

/* Table of contents */
.sk-doc-toc {
	border: 1px solid var(--sk-doc-line);
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 32px;
	font-size: 15px;
}

.sk-landing .sk-doc-toc-title {
	font-weight: 700;
	margin: 0 0 8px;
}

.sk-doc-toc ol {
	columns: 2;
	column-gap: 32px;
	margin: 0;
}

.sk-doc-toc li {
	break-inside: avoid;
	margin-bottom: 4px;
}

.sk-landing .sk-doc-toc a {
	text-decoration: none;
}

.sk-landing .sk-doc-toc a:hover {
	text-decoration: underline;
}

.sk-doc-signoff {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--sk-doc-line);
}

/* Help & Support: contact cards */
.sk-doc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 0 0 20px;
}

.sk-landing .sk-doc .sk-doc-contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid var(--sk-doc-line);
	border-radius: 10px;
	background: #ffffff;
	color: var(--sk-doc-ink);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	overflow-wrap: break-word;
}

.sk-landing .sk-doc a.sk-doc-contact:hover {
	border-color: var(--sk-primary);
	box-shadow: 0 4px 16px rgba(0, 72, 124, 0.1);
	color: var(--sk-doc-ink);
}

.sk-doc-contact-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sk-doc-subtle);
}

.sk-doc-contact-value {
	font-weight: 700;
	color: var(--sk-primary);
}

.sk-doc-contact-hint {
	font-size: 14px;
	color: var(--sk-doc-muted);
	line-height: 1.5;
}

/* Help & Support: FAQ */
.sk-doc-faq details {
	border: 1px solid var(--sk-doc-line);
	border-radius: 8px;
	margin-bottom: 12px;
	background: #ffffff;
}

.sk-doc-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 44px 14px 18px;
	font-weight: 600;
	position: relative;
}

.sk-doc-faq summary::-webkit-details-marker {
	display: none;
}

.sk-doc-faq summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: var(--sk-primary);
}

.sk-doc-faq details[open] summary::after {
	content: "\2212";
}

.sk-doc-faq summary:focus-visible {
	outline: 2px solid var(--sk-accent);
	outline-offset: 2px;
	border-radius: 8px;
}

.sk-landing .sk-doc-faq details p {
	padding: 0 18px 16px;
	margin: 0;
	color: var(--sk-doc-muted);
}

/* Delete Request: numbered steps + CTA */
.sk-doc ol.sk-doc-steps {
	list-style: none;
	counter-reset: sk-step;
	padding-left: 0;
}

.sk-doc ol.sk-doc-steps > li {
	counter-increment: sk-step;
	position: relative;
	padding-left: 48px;
	margin-bottom: 20px;
}

.sk-doc ol.sk-doc-steps > li::before {
	content: counter(sk-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sk-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sk-landing .sk-doc-cta {
	margin: 8px 0 8px;
}

.sk-landing .sk-doc .sk-doc-cta .sk-btn {
	color: #ffffff;
	text-decoration: none;
}

/* Current page in the footer link row */
.sk-footer-policies a[aria-current="page"] {
	font-weight: 700;
	text-decoration-thickness: 2px;
}

/* The static pages keep their footer flush at the bottom */
.sk-static .sk-footer {
	flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
	.sk-static-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sk-static-aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.sk-static-hero {
		padding: 28px 0 24px;
	}

	.sk-static-layout {
		padding-top: 20px;
		padding-bottom: 32px;
		gap: 20px;
	}

	.sk-static-card {
		padding: 24px 20px;
		border-radius: 10px;
	}

	.sk-container.sk-static-layout,
	.sk-static-hero .sk-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sk-doc {
		font-size: 15px;
	}

	.sk-doc-toc ol {
		columns: 1;
	}
}

@media print {
	.sk-navbar,
	.sk-static-aside,
	.sk-footer,
	.sk-doc-toc {
		display: none !important;
	}

	.sk-static-main {
		padding-top: 0;
	}

	.sk-static-layout {
		display: block;
	}

	.sk-static-card {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
}
