/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
/* Automata Dark (E2 blue-black neutrals, slate primary) with Porcelain for light mode. Flat surfaces, no gradients. */
:root {
	--outer: #12161e;
	--surface: #171c27;
	--raised: #1f2737;
	--border: #262f40;
	--border-strong: #344056;
	--text: #dbe2ec;
	--muted: #8d98ab;
	--primary: #cad6e5;
	--primary-hover: #dee6f0;
	--on-primary: #18202b;
	--link: #5aa8f0;
	--focus: #0078d4;
	--radius-control: 6px;
	--radius-card: 12px;
	--header: 60px;
}

@media (prefers-color-scheme: light) {
	:root {
		--outer: #f5f7fa;
		--surface: #ffffff;
		--raised: #eef1f5;
		--border: #dfe4eb;
		--border-strong: #c9d1dc;
		--text: #1c2532;
		--muted: #5b6779;
		--primary: #384e68;
		--primary-hover: #2d415a;
		--on-primary: #ffffff;
		--link: #005fb8;
	}
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

body {
	margin: 0;
	background: var(--outer);
	color: var(--text);
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

code {
	font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
	background: var(--raised);
	border-radius: 4px;
	padding: 0.1em 0.35em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

.visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.top {
	position: sticky; top: 0; z-index: 10;
	background: var(--outer);
	border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.language select {
	background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: var(--radius-control);
	padding: 5px 8px; font: inherit; font-size: 13px;
}

/* Buttons and chips */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 42px; padding: 0 18px;
	border-radius: var(--radius-control); border: 1px solid transparent;
	font-weight: 600; font-size: 15px; white-space: nowrap;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--primary); color: var(--on-primary); }
.button.primary:hover { background: var(--primary-hover); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.button.secondary:hover { background: var(--raised); }
.button-meta { font-weight: 500; font-size: 13px; opacity: 0.7; }
.chip {
	display: inline-flex; align-items: center;
	font-size: 13px; font-weight: 600; color: var(--muted);
	border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 10px;
}

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
h1 { margin: 0 0 18px; font-size: 46px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.lead { margin: 0 0 32px; color: var(--muted); font-size: 18px; max-width: 34em; }
.hero-image { width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--border); }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 13px; white-space: pre; }

/* Sections */
.band { padding: 72px 0; border-top: 1px solid var(--border); }
h2 { margin: 0 0 28px; font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
h3 { margin: 0 0 8px; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Downloads */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.platform {
	display: flex; flex-direction: column; gap: 16px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px;
}
.platform.pending { align-items: flex-start; }
.platform-head { display: flex; align-items: baseline; gap: 10px; }
.platform-head h3 { margin: 0; font-size: 20px; }
.platform-arch { color: var(--muted); font-size: 14px; }
.platform-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-body { margin: 0; color: var(--muted); font-size: 14px; }
.checksums { font-size: 13px; color: var(--muted); }
.checksums summary { cursor: pointer; width: fit-content; }
.checksum { display: grid; gap: 2px; margin-top: 10px; }
.checksum-file { color: var(--text); }
.checksum code { font-size: 12px; overflow-wrap: anywhere; background: none; padding: 0; }
.empty {
	background: var(--surface); border: 1px dashed var(--border-strong);
	border-radius: var(--radius-card); padding: 18px; color: var(--muted); margin: 0;
}

/* What's new */
.highlights { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 14px; }
.highlights li { position: relative; padding-left: 22px; color: var(--text); }
.highlights li::before {
	content: ""; position: absolute; left: 4px; top: 0.7em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
}
.full-notes { border-top: 1px solid var(--border); padding-top: 18px; }
.full-notes summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; width: fit-content; }
.full-notes ul { margin: 18px 0 0; padding-left: 20px; }
.full-notes li { margin-bottom: 10px; color: var(--muted); font-size: 14px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.docs-side { position: sticky; top: calc(var(--header) + 24px); align-self: start; max-height: calc(100vh - var(--header) - 48px); overflow: auto; }
.docs-search input {
	width: 100%; background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: var(--radius-control);
	padding: 8px 12px; font: inherit; font-size: 14px; margin-bottom: 16px;
}
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.topic-list a {
	display: block; padding: 6px 12px; border-radius: var(--radius-control);
	color: var(--muted); font-size: 14px; line-height: 1.4;
}
.topic-list a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.topic-list a[aria-current="page"] { color: var(--text); background: var(--raised); font-weight: 600; }
.doc { max-width: 720px; }
.doc h1 { font-size: 34px; margin-bottom: 10px; }
.doc-summary { margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.doc h2 { font-size: 18px; margin: 0 0 12px; }
.doc p { margin: 0 0 18px; }
.doc-steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.doc-steps li {
	counter-increment: step; position: relative; padding: 14px 16px 14px 52px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.doc-steps li::before {
	content: counter(step); position: absolute; left: 16px; top: 14px;
	width: 24px; height: 24px; border-radius: 50%; background: var(--raised);
	display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1;
}
.pager { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.pager a:hover { background: var(--surface); text-decoration: none; }
.pager-next { text-align: right; }
.pager-label { font-size: 13px; color: var(--muted); }
.pager-title { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
	.hero { padding: 48px 0 40px; }
	.hero-grid { grid-template-columns: 1fr; gap: 36px; }
	h1 { font-size: 34px; }
	.features, .platforms { grid-template-columns: 1fr; }
	.band { padding: 56px 0; }
	.docs-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
	.docs-side { position: static; max-height: none; }
	.topic-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
	.topic-list a { white-space: nowrap; }
}

@media (max-width: 560px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.top-row { gap: 12px; }
	.nav { gap: 14px; }
	.nav a:not([href$="/docs/"]) { display: none; }
	.button { width: 100%; }
	.platform-actions { flex-direction: column; }
	.doc h1 { font-size: 28px; }
	.pager { grid-template-columns: 1fr; }
}

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

/* Development status and disclaimer */
.status-banner { background: var(--raised); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.status-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 8px; padding-bottom: 8px; }
.status-banner strong { color: var(--text); font-weight: 650; }
.status-banner a { margin-left: auto; }
.status-badge {
	font-size: 11px; font-weight: 650; letter-spacing: 0.02em; color: var(--muted);
	border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 8px; line-height: 18px;
}
.download-note { margin: -12px 0 20px; color: var(--muted); font-size: 14px; }
.disclaimer { margin: 18px 0 0; max-width: 820px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.legal { padding-top: 48px; padding-bottom: 72px; }
.effective { margin: -16px 0 32px; font-size: 13px; color: var(--muted); }
.legal-section { padding-top: 24px; border-top: 1px solid var(--border); margin-top: 24px; }
.legal-section h2 { font-size: 18px; margin-bottom: 10px; }
.legal-section p { color: var(--muted); }
@media (max-width: 560px) {
	.status-banner a { margin-left: 0; }
	.status-badge { display: none; }
}
