:root {
	--bg: #f6f8fb;
	--card: #ffffff;
	--muted: #6b7280;
	--text: #111827;
	--primary: #1a73e8;
	--radius: 10px;
	--shadow: 0 6px 18px rgba(16,24,40,0.06);
	--maxw: 1180px;
	--gap: 20px;
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
}

.site {
	max-width: var(--maxw);
	margin: 28px auto;
	padding: 18px;
	display: grid;
	gap: var(--gap);
}

.header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 0;
}

.page-title {
	font-size: 28px;
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 20px;
	align-items: start;
}

.sidebar {
	background: var(--card);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: var(--shadow);
	position: sticky;
	top: 22px;
	height: fit-content;
}

.toc-title {
	font-weight: 700;
	margin-bottom: 12px;
}

.toc {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.toc-item {
	position: relative;
	background: transparent;
	border: 0;
	padding: 10px 12px;
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
	font-weight: 500;
	color: #0f172a;
	transition: all 0.25s ease;
}

.toc-item:hover {
	background: #f2f7ff;
}

.toc-item.active {
	/*background: #e8f0fe;
	border: 1px solid rgba(26,115,232,0.18);*/
	color: var(--primary);
}

.toc-item.sub-item {
	background: transparent;
	border: 0;
	padding: 6px 12px 6px 24px;
	text-align: left;
	cursor: pointer;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
	color: #374151;
	transition: all 0.25s ease;
}

.toc-item.sub-item:hover {
	background: #f2f7ff;
}

.toc-item.sub-item.active {
	color: var(--primary);
}

.welcome-message {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	font-size: 16px;
	color: var(--muted);
	text-align: center;
}

.main {
	min-height: 480px;
}

.card {
	background: var(--card);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.section {
	display: none;
}

.section.active {
	display: block;
	padding: 24px 28px;
}

h2 {
	font-size: 26px;
	margin: 0 0 16px 0;
	font-weight: 700;
	padding-bottom: 6px;
}

.section h2 {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 18px;
}

.section h3 {
	font-size: 20px;
	font-weight: 600;
	color: #1a202c;
	border-left: 3px solid var(--muted);
	padding-left: 10px;
	margin-top: 28px;
	margin-bottom: 14px;
}

.section h3:first-of-type {
	padding-top: 0;
	margin-top: 0;
}

p, li {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 4px 0;
}

ul, ol {
	margin: 8px 0 12px 16px;
	padding-left: 16px;
}

ul li {
    list-style-type: disc;
}

.note {
	background: #fffbe6;
	padding: 12px;
	border-left: 4px solid #f7c948;
	border-radius: 8px;
	margin: 12px 0;
	color: #6b4a00;
}

.warn {
	background: #fff0f0;
	padding: 12px;
	border-left: 4px solid #ef4444;
	border-radius: 8px;
	margin: 12px 0;
	color: #7a1a1a;
}

.kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
	background: #f4f6f8;
	padding: 2px 6px;
	border-radius: 6px;
	font-weight: normal;
	/*font-size: 13px;*/
}

.img {
	width: 100%;
	border-radius: 8px;
	box-shadow: var(--shadow);
	display: block;
	cursor: pointer;
}

.caption {
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
}

.footnote {
    font-size: 0.85em;
	color: var(--muted);
	padding-left: 12px;
	display: none;
}

.footnote.active {
    display: block;
}

.callout {
	border-radius: 10px;
	box-shadow: var(--shadow);
	padding: 16px;
	margin: 18px 0;
	background: #f8fbff;
	border-left: 4px solid rgba(26,115,232,0.16);
	color: var(--text);
}

.callout-install {
	background: var(--card);
	border-left-color: var(--primary);
}

.callout-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.callout-header h4 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--primary);
}

.callout-icon {
	flex: 0 0 20px;
	color: var(--primary);
	opacity: 0.95;
}

.callout ol,
.callout ul {
	margin: 6px 0 0 20px;
	padding-left: 18px;
}

.hamburger {
    display: none;
    position: fixed;
    right: 12px;
    top: 12px;
    z-index: 80;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.hamburger svg rect {
	fill: currentColor;
}

.sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.35);
	z-index: 55;
}

#tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

#tooltip.show {
    opacity: 1;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.8);
}

.modal-content {
	display: block;
	margin: auto;
	width: auto;
	max-width: 90%;
	max-height: 80%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
}

.close:hover,
.close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

#caption {
	display: none;
}

.section-nav {
    display: none;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.section-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.next-section-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    display: block;
    width: fit-content;
    text-align: center;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.next-section-btn:hover {
    background: #0d5bb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.next-section-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.2);
}

@media (max-width: 980px) {
	.layout {
		grid-template-columns: 1fr;
	}
	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		transform: translateX(-100%);
		width: 260px;
		height: 100%;
		overflow: auto;
		z-index: 70;
		border-radius: 0;
		border-right: 1px solid rgba(0,0,0,0.04);
		transition: transform 0.3s ease;
	}
	.sidebar.open {
		transform: translateX(0);
	}
	.hamburger {
		display: flex;
	}
	.sidebar-backdrop.open {
		display: block;
	}
	.section-nav {
        display: block;
    }
}

@media (max-width: 480px) {
	.site {
		padding: 12px;
	}
	.section {
		padding: 16px;
	}
	.callout {
		padding: 12px;
	}
	.callout-header h4 {
		font-size: 15px;
	}
}

.support-note {
    margin-top: 1em;
    padding: 1em;
	border-radius: 6px;
    border-left: 4px solid var(--muted);
    background: #f8f8f8;
    font-size: 0.95em;
    width: 100%;
}

.status-list {
    list-style: none;
    padding-left: 0px;
}

.status-list li {
    display: flex;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    margin-top: 5px;
    flex-shrink: 0;
}

.status-indicator.red {
    background-color: #F75A5C;
}

.status-indicator.blue {
    background-color: #40A6D9;
}

.status-indicator.orange {
    background-color: #FFAA33;
}

.status-indicator.green {
    background-color: #50C878;
}

.status-indicator.gray {
    background-color: #636A6E;
}
