/* CSS Custom Properties - Light Mode (Default) */
:root {
	--color-bg-primary: #ffffff;
	--color-bg-secondary: #f6f8fa;
	--color-bg-tertiary: #f6f8fa;
	--color-bg-quaternary: #eaeef2;
	--color-text-primary: #24292f;
	--color-text-secondary: #57606a;
	--color-text-tertiary: #57606a;
	--color-text-muted: #6e7781;
	--color-text-light: #57606a;
	--color-text-lighter: #6e7781;
	--color-text-lightest: #8c959f;
	--color-border-default: #d0d7de;
	--color-border-light: #d8dee4;
	--color-border-lighter: #eaeef2;
	--color-border-contrast: #d0d7de;
	--color-accent-primary: #0969da;
	--color-accent-hover: #0a50a3;
	--color-accent-light: #ddf4ff;
	--color-code-bg: #f6f8fa;
	--color-code-text: #cf222e;
	--color-pre-bg: #f6f8fa;
	--color-pre-text: #24292f;
	--color-pre-border: #d0d7de;
	--color-success: #1a7f37;
	--color-shadow: rgba(140, 149, 159, 0.2);
	--color-shadow-light: rgba(140, 149, 159, 0.1);
}

/* CSS Custom Properties - Dark Mode */
[data-theme="dark"] {
	--color-bg-primary: #161b22;
	--color-bg-secondary: #0d1117;
	--color-bg-tertiary: #21262d;
	--color-bg-quaternary: #30363d;
	--color-text-primary: #c9d1d9;
	--color-text-secondary: #8b949e;
	--color-text-tertiary: #8b949e;
	--color-text-muted: #6e7681;
	--color-text-light: #8b949e;
	--color-text-lighter: #6e7681;
	--color-text-lightest: #484f58;
	--color-border-default: #30363d;
	--color-border-light: #21262d;
	--color-border-lighter: #21262d;
	--color-border-contrast: #6e7681;
	--color-accent-primary: #58a6ff;
	--color-accent-hover: #79c0ff;
	--color-accent-light: #1f6feb;
	--color-code-bg: #30363d;
	--color-code-text: #ff7b72;
	--color-pre-bg: #161b22;
	--color-pre-text: #c9d1d9;
	--color-pre-border: #30363d;
	--color-success: #3fb950;
	--color-shadow: rgba(0, 0, 0, 0.5);
	--color-shadow-light: rgba(0, 0, 0, 0.8);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--color-text-primary);
	background: var(--color-bg-secondary);
	padding: 20px;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	background: var(--color-bg-primary);
	box-shadow: 0 1px 2px var(--color-shadow);
	padding: 40px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
h1 {
	color: var(--color-text-secondary);
	border-bottom: 3px solid var(--color-accent-primary);
	padding-bottom: 10px;
	margin-bottom: 30px;
	transition: color 0.3s ease, border-color 0.3s ease;
}
h2 {
	color: var(--color-text-tertiary);
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 1.5em;
	transition: color 0.3s ease;
}
p {
	margin: 0.8rem 0;
	color: var(--color-text-light);
	transition: color 0.3s ease;
}
code {
	background: var(--color-code-bg);
	color: var(--color-code-text);
	padding: 2px 6px;
	font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
	font-size: 0.9em;
	transition: background-color 0.3s ease, color 0.3s ease;
}
pre {
	background: var(--color-pre-bg);
	padding: 15px;
	overflow-x: auto;
	border-left: 2px solid var(--color-pre-border);
	margin: 15px 0;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
pre code {
	background: none;
	padding: 0;
	color: var(--color-pre-text);
	transition: color 0.3s ease;
}
ul {
	margin: 1rem 0;
	padding-left: 1.5rem;
}
li {
	margin: 0.5rem 0;
	color: var(--color-text-light);
	transition: color 0.3s ease;
}
a {
	color: var(--color-accent-primary);
	text-decoration: none;
	transition: color 0.2s;
}
a:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
}
section {
	margin: 30px 0;
	padding: 20px;
	background: var(--color-bg-tertiary);
	border-left: 2px solid var(--color-border-contrast);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.endpoint {
	font-weight: 600;
	color: var(--color-accent-primary);
	font-family: monospace;
}
.badge {
	background: var(--color-accent-primary);
	color: white;
	padding: 4px 10px;
	font-size: 0.8em;
	font-weight: 600;
	margin-left: 8px;
	transition: background-color 0.3s ease;
}
footer {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 2px solid var(--color-border-lighter);
	color: var(--color-text-lighter);
	transition: border-color 0.3s ease, color 0.3s ease;
}
header {
	text-align: center;
	/* margin-bottom: 40px; */
	border-bottom: 3px solid var(--color-accent-primary);
	transition: border-color 0.3s ease;
}
.breadcrumb {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.breadcrumb-left {
	display: flex;
	align-items: center;
	gap: 15px;
}
.breadcrumb-right {
	display: flex;
	align-items: center;
}
.home-link {
	display: inline-block;
	transition: opacity 0.2s;
}
.home-link:hover {
	opacity: 0.8;
}
.logo {
	height: 40px;
	width: auto;
}
.ranking-link {
	color: var(--color-accent-primary);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95em;
	transition: color 0.2s;
}
.ranking-link:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
}
.runs-on-link {
	color: var(--color-text-secondary);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95em;
	transition: color 0.2s;
}
.runs-on-link:hover {
	color: var(--color-accent-primary);
	text-decoration: underline;
}
.platform-selector {
	margin-top: 15px;
	margin-bottom: 20px;
	padding: 15px;
	background: var(--color-bg-tertiary);
	transition: background-color 0.3s ease;
}
.platform-selector label {
	font-weight: 600;
	color: var(--color-text-light);
	margin-right: 10px;
	font-size: 0.95em;
	transition: color 0.3s ease;
}
.platform-select {
	padding: 8px 12px;
	border: 1px solid var(--color-border-default);
	font-size: 0.95em;
	font-family: inherit;
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.3s ease, color 0.3s ease;
}
.platform-select:focus {
	outline: none;
	border-color: var(--color-accent-primary);
	box-shadow: 0 0 0 1px var(--color-accent-light);
}
.nav-section {
	background: var(--color-bg-tertiary);
	padding: 12px;
	margin-bottom: 15px;
	transition: background-color 0.3s ease;
}
.nav-section h2 {
	margin-top: 0;
	font-size: 1em;
	color: var(--color-text-secondary);
	transition: color 0.3s ease;
}
.family-selector-summary {
	cursor: pointer;
	padding: 8px 0;
	font-weight: 600;
	font-size: 0.95em;
	color: var(--color-text-primary);
	list-style: none;
	user-select: none;
	display: flex;
	align-items: center;
}
.family-selector-summary::-webkit-details-marker {
	display: none;
}
.family-selector-summary::marker {
	display: none;
}
.family-selector-summary::before {
	content: '▶';
	display: inline-block;
	margin-right: 6px;
	font-size: 0.7em;
	transition: transform 0.2s;
}
.family-selector-details[open] .family-selector-summary::before {
	transform: rotate(90deg);
}
.family-selector-content {
	margin-top: 12px;
}
.family-filter {
	width: 100%;
	max-width: 300px;
	padding: 6px 10px;
	margin-left: 15px;
	border: 1px solid var(--color-border-default);
	border-radius: 4px;
	font-size: 0.85em;
	font-family: inherit;
	box-sizing: border-box;
	background: var(--color-bg-primary);
	color: var(--color-text-primary);
	transition: border-color 0.2s, background-color 0.3s ease, color 0.3s ease;
}
.family-filter:focus {
	outline: none;
	border-color: var(--color-accent-primary);
	box-shadow: 0 0 0 1px var(--color-accent-light);
}
.family-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	grid-auto-flow: dense;
	grid-auto-rows: min-content;
	gap: 12px;
	align-items: start;
}
.family-letter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: flex-start;
	padding: 12px;
	background: var(--color-bg-secondary, #f8f9fa);
	min-height: fit-content;
	width: 100%;
}
.family-group-letter {
	font-size: 0.75em;
	font-weight: 600;
	color: var(--color-text-secondary, #666);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-right: 4px;
	align-self: center;
}
.family-letter-group:not(:last-child)::after {
	display: none;
}
/* Dynamically span columns based on family count */
.family-letter-group[data-family-count="1"],
.family-letter-group[data-family-count="2"] {
	grid-column: span 1;
}
.family-letter-group[data-family-count="3"],
.family-letter-group[data-family-count="4"],
.family-letter-group[data-family-count="5"],
.family-letter-group[data-family-count="6"],
.family-letter-group[data-family-count="7"],
.family-letter-group[data-family-count="8"],
.family-letter-group[data-family-count="9"],
.family-letter-group[data-family-count="10"],
.family-letter-group[data-family-count="11"],
.family-letter-group[data-family-count="12"],
.family-letter-group[data-family-count="13"],
.family-letter-group[data-family-count="14"],
.family-letter-group[data-family-count="15"] {
	grid-column: span 2;
}
.family-letter-group[data-family-count="16"],
.family-letter-group[data-family-count="17"],
.family-letter-group[data-family-count="18"],
.family-letter-group[data-family-count="19"],
.family-letter-group[data-family-count="20"],
.family-letter-group[data-family-count="21"],
.family-letter-group[data-family-count="22"],
.family-letter-group[data-family-count="23"],
.family-letter-group[data-family-count="24"],
.family-letter-group[data-family-count="25"],
.family-letter-group[data-family-count="26"],
.family-letter-group[data-family-count="27"],
.family-letter-group[data-family-count="28"],
.family-letter-group[data-family-count="29"],
.family-letter-group[data-family-count="30"] {
	grid-column: span 3;
}
.family-link {
	display: inline-block;
	padding: 4px 8px;
	background: var(--color-bg-primary);
	border: none;
	text-decoration: none;
	color: var(--color-accent-primary);
	font-size: 0.85em;
	transition: all 0.2s;
}
.family-link:hover {
	background: var(--color-accent-primary);
	color: white;
}
.family-link.current {
	background: var(--color-accent-primary);
	color: white;
	font-weight: 600;
}
.family-count {
	font-size: 0.85em;
	opacity: 0.7;
	font-weight: normal;
}
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
	margin-top: 15px;
}
.info-item {
	padding: 15px;
	background: var(--color-bg-tertiary);
	transition: background-color 0.3s ease;
}
.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
}
.info-row:last-child {
	margin-bottom: 0;
}
.info-row .info-label {
	margin-bottom: 0;
	flex: 0 0 auto;
}
.info-row .info-value {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
	word-break: break-word;
	overflow-wrap: break-word;
}
.info-label {
	font-weight: 600;
	color: var(--color-text-light);
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 5px;
	transition: color 0.3s ease;
}
.info-value {
	color: var(--color-text-secondary);
	font-size: 1.1em;
	transition: color 0.3s ease;
}
.regions-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin-top: 15px;
}
.region-item {
	padding: 6px 10px;
	background: var(--color-bg-quaternary);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	font-family: monospace;
	color: var(--color-text-secondary);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.clickable-region {
	cursor: pointer;
	transition: all 0.2s;
}
.clickable-region:hover {
	background: var(--color-accent-light);
}
.clickable-region.selected {
	background: var(--color-accent-primary);
	color: white;
	font-weight: 600;
}
.clickable-region.selected .flag {
	filter: brightness(0) invert(1);
}
.region-item .flag {
	font-size: 1.5em;
	width: 32px;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
}
.instance-types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.instance-type {
	display: inline-block;
	padding: 4px 8px;
	background: var(--color-bg-quaternary);
	font-family: monospace;
	font-size: 0.9em;
	color: var(--color-accent-primary);
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
	cursor: pointer;
}
.instance-type:hover {
	background: var(--color-accent-primary);
	color: white;
}
.header-with-toc {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}
.header-with-toc h1 {
	margin-bottom: 0;
}
.horizontal-toc {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.toc-items {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	flex: 1;
}
.toc-link {
	color: var(--color-text-light);
	text-decoration: none;
	font-size: 0.9em;
	padding: 6px 12px;
	transition: all 0.2s;
	white-space: nowrap;
}
.toc-link:hover {
	color: var(--color-accent-primary);
	background: var(--color-bg-tertiary);
}
.toc-instance-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.toc-instance-selector label {
	font-size: 0.9em;
	color: var(--color-text-light);
	font-weight: 500;
	transition: color 0.3s ease;
}
.toc-instance-select {
	padding: 6px 12px;
	border: 1px solid var(--color-border-default);
	font-size: 0.9em;
	font-family: monospace;
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.3s ease, color 0.3s ease;
	min-width: 200px;
}
.toc-instance-select:focus {
	outline: none;
	border-color: var(--color-accent-primary);
	box-shadow: 0 0 0 1px var(--color-accent-light);
}
.og-image-container {
	text-align: center;
	margin: 30px 0;
}
.og-image {
	max-height: 300px;
	width: auto;
	height: auto;
	box-shadow: 0 1px 2px var(--color-shadow);
	transition: box-shadow 0.3s ease;
}
.header-with-permalink {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}
.header-text {
	flex: 1;
}
.header-permalink {
	opacity: 0;
	transition: opacity 0.2s;
	color: var(--color-accent-primary);
	text-decoration: none;
	font-weight: normal;
	font-size: 0.8em;
	margin-left: 8px;
	flex-shrink: 0;
}
.header-with-permalink:hover .header-permalink {
	opacity: 1;
}
.header-permalink:hover {
	text-decoration: underline;
}
html {
	scroll-behavior: smooth;
}
.header-with-permalink {
	scroll-margin-top: 20px;
}
.footer-separator {
	margin-top: 50px;
	border-top: 2px solid var(--color-border-default);
	transition: border-color 0.3s ease;
}
.format-links {
	margin-top: 0;
	padding-top: 20px;
	font-size: 0.9em;
	color: var(--color-text-muted);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	transition: color 0.3s ease;
}
.format-links-left {
	flex: 1;
	min-width: 0;
}
.format-links-right {
	flex-shrink: 1;
	min-width: 0;
	text-align: right;
	display: flex;
	align-items: center;
	gap: 15px;
}
.format-links a {
	color: var(--color-accent-primary);
	text-decoration: none;
	word-break: break-word;
	overflow-wrap: break-word;
}
.format-links a:hover {
	text-decoration: underline;
}
.dark-mode-toggle {
	background: transparent;
	border: 1px solid var(--color-border-default);
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 1.2em;
	line-height: 1;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
}
.dark-mode-toggle:hover {
	background: var(--color-bg-tertiary);
	border-color: var(--color-accent-primary);
}
.dark-mode-toggle:focus {
	outline: none;
	border-color: var(--color-accent-primary);
	box-shadow: 0 0 0 2px var(--color-accent-light);
}
.dark-mode-icon {
	display: inline-block;
	transition: transform 0.2s;
}
[data-theme="dark"] .dark-mode-icon {
	transform: rotate(180deg);
}
.format-links-section {
	margin-top: 30px;
	padding-top: 20px;
	font-size: 0.9em;
	color: var(--color-text-muted);
	transition: color 0.3s ease;
}
.format-links-section a {
	color: var(--color-accent-primary);
	text-decoration: none;
}
.format-links-section a:hover {
	text-decoration: underline;
}
.pricing-charts {
	margin-top: 30px;
}
.instance-chart-details {
	margin-bottom: 30px;
	border: 1px solid var(--color-border-contrast);
	background: var(--color-bg-tertiary);
	transition: border-color 0.3s ease, background-color 0.3s ease;
}
.instance-chart-summary {
	padding: 15px 20px;
	font-weight: 600;
	font-size: 1.1em;
	color: var(--color-text-secondary);
	cursor: pointer;
	user-select: none;
	font-family: monospace;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.3s ease, background-color 0.3s ease;
}
.instance-specs {
	font-weight: 400;
	color: var(--color-text-lighter);
	margin-left: auto;
	transition: color 0.3s ease;
}
.instance-chart-summary:hover {
	background: var(--color-bg-quaternary);
}
.instance-chart-details[open] .instance-chart-summary {
	border-bottom: 1px solid var(--color-border-contrast);
}
.chart-container {
	padding: 20px;
	background: var(--color-bg-primary);
	margin: 0;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.chart-container:not(:last-child) {
	border-bottom: 1px solid var(--color-border-default);
}
.chart-container h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1em;
	color: var(--color-text-light);
	font-weight: 600;
	transition: color 0.3s ease;
}
.chart-container canvas {
	max-height: 400px;
}
.ranking-description {
	font-size: 0.9em;
	color: var(--color-text-muted);
	margin-bottom: 15px;
	font-style: italic;
	transition: color 0.3s ease;
}
.ranking-architecture-filter {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}
.arch-filter-btn {
	padding: 6px 14px;
	border: none;
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	font-size: 0.9em;
	cursor: pointer;
	transition: all 0.2s;
	font-family: monospace;
}
.arch-filter-btn:hover {
	background: var(--color-bg-tertiary);
}
.arch-filter-btn.active {
	background: var(--color-accent-primary);
	color: white;
}
.ranking-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ranking-item {
	position: relative;
	border-left: 2px solid var(--color-border-contrast);
	transition: all 0.2s;
	overflow: hidden;
	background: var(--color-bg-tertiary);
}
.ranking-progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--color-accent-primary) 0%, var(--color-accent-hover) 100%);
	z-index: 0;
	transition: width 0.3s ease;
	opacity: 0.15;
}
.ranking-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 12px 15px;
	background: transparent;
}
.ranking-item:hover .ranking-content {
	transform: translateX(2px);
}
.ranking-item.current {
	border-left-color: var(--color-accent-primary);
}
.ranking-item.current .ranking-content {
	font-weight: 600;
}
.ranking-item.current .ranking-progress-bar {
	opacity: 0.2;
}
.ranking-rank {
	font-weight: 700;
	color: var(--color-text-muted);
	font-size: 1em;
	min-width: 40px;
	flex-shrink: 0;
	transition: color 0.3s ease;
}
.ranking-item.current .ranking-rank {
	color: var(--color-accent-primary);
}
.ranking-name {
	flex: 1 1 auto;
	min-width: 0;
}
.ranking-name a {
	color: var(--color-text-secondary);
	text-decoration: none;
	font-weight: 500;
	font-family: monospace;
	font-size: 1em;
	transition: color 0.3s ease;
}
.ranking-name a:hover {
	color: var(--color-accent-primary);
	text-decoration: underline;
}
.ranking-item.current .ranking-name a {
	color: var(--color-accent-primary);
}
.ranking-names {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.ranking-family-link {
	color: var(--color-text-secondary);
	text-decoration: none;
	font-weight: 500;
	font-family: monospace;
	font-size: 1em;
	transition: color 0.3s ease;
}
.ranking-family-link:hover {
	color: var(--color-accent-primary);
	text-decoration: underline;
}
.ranking-family-link.current-family {
	color: var(--color-accent-primary);
	font-weight: 600;
}
.ranking-item.current .ranking-family-link {
	color: var(--color-text-secondary);
}
.ranking-item.current .ranking-family-link.current-family {
	color: var(--color-accent-primary);
	font-weight: 600;
}
.ranking-metrics {
	display: flex;
	gap: 15px;
	flex-shrink: 0;
	font-size: 0.9em;
	color: var(--color-text-muted);
	transition: color 0.3s ease;
}
.ranking-speed {
	font-weight: 600;
	color: var(--color-text-secondary);
	transition: color 0.3s ease;
}
.ranking-vcpus {
	color: var(--color-text-light);
	transition: color 0.3s ease;
}
.ranking-expand {
	margin: 8px 0;
}
.ranking-expand summary {
	padding: 10px 15px;
	background: var(--color-bg-tertiary);
	border-left: 2px solid var(--color-border-contrast);
	cursor: pointer;
	font-weight: 600;
	color: var(--color-text-light);
	font-size: 0.95em;
	user-select: none;
	transition: all 0.2s;
}
.ranking-expand summary:hover {
	background: var(--color-bg-quaternary);
}
.ranking-expand[open] summary {
	border-bottom: 1px solid var(--color-border-contrast);
}
.ranking-list-hidden {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 0;
	background: var(--color-bg-tertiary);
	border-left: 2px solid var(--color-border-contrast);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
	main {
		padding: 20px;
	}
	h1 {
		font-size: 2em;
	}
	section {
		padding: 15px;
	}
	body {
		padding: 10px;
	}
	.container {
		padding: 20px;
	}
	img {
		max-width: 100%;
		height: auto;
	}
	.header-with-toc {
		gap: 12px;
		margin-bottom: 20px;
	}
	.header-with-toc h1 {
		font-size: 1.8em;
	}
	.horizontal-toc {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 10px 0;
		border-top: 1px solid var(--color-border-default);
	}
	.toc-items {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.toc-link {
		padding: 10px 12px;
		font-size: 0.85em;
		text-align: center;
		background: var(--color-bg-tertiary);
	border: 1px solid var(--color-border-contrast);
		display: block;
	}
	.toc-link:hover {
		background: var(--color-bg-quaternary);
	border-color: var(--color-border-contrast);
	}
	.toc-instance-selector {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}
	.toc-instance-selector label {
		font-size: 0.85em;
	}
	.toc-instance-select {
		width: 100%;
		min-width: 0;
		padding: 10px 12px;
		font-size: 0.9em;
	}
	@media (max-width: 480px) {
		.toc-items {
			grid-template-columns: 1fr;
		}
		.toc-link {
			padding: 12px;
		}
	}
	.og-image-container {
		width: 100%;
		overflow: hidden;
	}
	.og-image-container .og-image {
		max-width: 100% !important;
		max-height: none !important;
		width: 100% !important;
		height: auto !important;
		display: block;
	}
	.header-permalink {
		opacity: 1;
	}
	.format-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.format-links-left {
		width: 100%;
	}
	.format-links-right {
		width: 100%;
		text-align: left;
	}
	.nav-section {
		padding: 12px;
		margin-bottom: 20px;
	}
	.nav-section h2 {
		font-size: 1em;
		margin-bottom: 10px;
	}
	.ranking-item {
		flex-wrap: wrap;
		gap: 10px;
	}
	.ranking-content {
		flex-wrap: wrap;
		gap: 10px;
	}
	.ranking-metrics {
		flex-direction: column;
		gap: 5px;
		width: 100%;
		margin-left: 0;
		margin-top: 5px;
	}
	.ranking-name {
		flex: 1 1 100%;
	}
	.ranking-names {
		width: 100%;
	}
	.ranking-rank {
		min-width: 35px;
	}
}

/* Landing page specific styles */
.landing-main h1 {
	font-size: 2.5em;
	margin-bottom: 15px;
}
.feature-section {
	margin: 30px 0;
	padding: 25px;
	background: var(--color-bg-tertiary);
	border-left: 2px solid var(--color-border-contrast);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.feature-image {
	width: 100%;
	max-width: 600px;
	height: auto;
	display: block;
	margin: 0 auto 20px;
}
.feature-section h2 {
	margin-top: 0;
	color: var(--color-text-secondary);
	font-size: 1.5em;
	transition: color 0.3s ease;
}
.feature-section ul {
	margin-top: 15px;
}
.feature-section li {
	margin: 8px 0;
	color: var(--color-text-light);
	transition: color 0.3s ease;
}

/* Responsive layout: image left of text on larger screens */
@media (min-width: 768px) {
	.feature-section {
		display: flex;
		gap: 30px;
		align-items: flex-start;
	}
	.feature-image {
		flex: 0 0 400px;
		max-width: 400px;
		margin: 0;
	}
	.feature-section > h2,
	.feature-section > p,
	.feature-section > ul {
		flex: 1;
		min-width: 0;
	}
}
.cta-section {
	margin: 40px 0;
	padding: 30px;
	background: var(--color-bg-tertiary);
	text-align: center;
	border-left: 2px solid var(--color-border-contrast);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.cta-button {
	display: inline-block;
	padding: 12px 24px;
	background: var(--color-accent-primary);
	color: white;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s;
}
.cta-button:hover {
	background: var(--color-accent-hover);
	color: white;
	text-decoration: none;
}

/* API docs page specific styles */
.api-docs-main h1 {
	font-size: 2.5em;
	margin-bottom: 15px;
}
.api-section {
	margin: 35px 0;
	padding: 25px;
	background: var(--color-bg-tertiary);
	border-left: 2px solid var(--color-border-contrast);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.api-section h2 {
	margin-top: 0;
	color: var(--color-text-secondary);
	font-size: 1.5em;
	border-bottom: none;
	padding-bottom: 0;
	transition: color 0.3s ease;
}
.api-section h3 {
	margin-top: 20px;
	margin-bottom: 10px;
	color: var(--color-text-tertiary);
	font-size: 1.2em;
	font-weight: 600;
	transition: color 0.3s ease;
}
.api-section .endpoint {
	display: inline-block;
	font-weight: 600;
	color: var(--color-accent-primary);
	font-family: monospace;
	font-size: 1.1em;
	margin: 10px 0;
	padding: 5px 10px;
	background: var(--color-accent-light);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.api-section pre {
	background: var(--color-pre-bg);
	color: var(--color-pre-text);
	padding: 15px;
	overflow-x: auto;
	border-left: 3px solid var(--color-accent-primary);
	margin: 15px 0;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.api-section pre code {
	background: none;
	color: var(--color-pre-text);
	font-size: 0.9em;
	transition: color 0.3s ease;
}
.api-section ul {
	margin-top: 15px;
}
.api-section li {
	margin: 8px 0;
	color: var(--color-text-light);
	transition: color 0.3s ease;
}
.api-section li code {
	background: var(--color-accent-light);
	color: var(--color-text-secondary);
	padding: 2px 6px;
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* 404 page specific styles */
.not-found-main {
	max-width: 800px;
	margin: 100px auto;
	background: var(--color-bg-primary);
	border-radius: 8px;
	box-shadow: 0 2px 4px var(--color-shadow-light);
	padding: 60px 40px;
	text-align: center;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.not-found-main h1 {
	font-size: 4em;
	margin-bottom: 20px;
	color: var(--color-text-muted);
	border-bottom: none;
	padding-bottom: 0;
	transition: color 0.3s ease;
}
.not-found-main p {
	font-size: 1.2em;
	color: var(--color-text-lightest);
	margin-bottom: 30px;
	transition: color 0.3s ease;
}
.not-found-main a {
	color: var(--color-accent-primary);
	text-decoration: none;
}
.not-found-main a:hover {
	text-decoration: underline;
}
.not-found-main code {
	background: var(--color-bg-secondary);
	padding: 2px 6px;
	border-radius: 3px;
	font-family: monospace;
	transition: background-color 0.3s ease;
}

/* Finder page specific styles */
.finder-page-header {
	margin-bottom: 30px;
}
.finder-page-header h1 {
	margin-bottom: 10px;
}
.finder-page-description {
	color: var(--color-text-muted);
	font-size: 0.95em;
	margin-bottom: 30px;
	line-height: 1.6;
	transition: color 0.3s ease;
}
.finder-form {
	background: var(--color-bg-tertiary);
	padding: 30px;
	margin-bottom: 40px;
	transition: background-color 0.3s ease;
}
.finder-form-row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.finder-form-group {
	flex: 1 1 calc(33.333% - 16px);
	min-width: 220px;
	max-width: calc(33.333% - 16px);
}
.finder-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--color-text-secondary);
	font-size: 0.9em;
	transition: color 0.3s ease;
}
.finder-form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--color-border-light);
	font-size: 1em;
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.finder-input-pair {
	display: flex;
	gap: 14px;
	align-items: flex-end;
	flex-wrap: wrap;
}
.finder-number-input {
	flex: 1 1 120px;
	background: var(--color-bg-primary);
	border: 1px solid var(--color-border-light);
	padding: 10px 12px;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.finder-number-input input[type="number"] {
	width: 100%;
	border: none;
	font-size: 1.25em;
	font-weight: 600;
	color: var(--color-text-secondary);
	background: transparent;
	text-align: center;
	transition: color 0.3s ease;
}
.finder-number-input input[type="number"]:focus {
	outline: none;
}
.finder-number-label {
	display: block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-muted);
	margin-bottom: 6px;
	text-align: left;
	transition: color 0.3s ease;
}
.finder-input-separator {
	font-weight: 600;
	color: var(--color-text-muted);
	align-self: center;
	transition: color 0.3s ease;
}
.finder-field-hint {
	margin-top: 8px;
	font-size: 0.85em;
	color: var(--color-text-muted);
	line-height: 1.4;
	transition: color 0.3s ease;
}
.finder-toggle-group {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.finder-toggle-btn {
	flex: 1 1 auto;
	min-width: 100px;
	padding: 10px 16px;
	border: 1px solid var(--color-border-light);
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	font-size: 0.9em;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}
.finder-toggle-btn:hover {
	background: var(--color-bg-tertiary);
	border-color: var(--color-accent-primary);
}
.finder-toggle-btn--active {
	background: var(--color-accent-primary);
	color: white;
	border-color: var(--color-accent-primary);
}
.finder-toggle-btn--active:hover {
	background: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
}
.finder-form-actions {
	margin-top: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.finder-auto-submit-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.9em;
	color: var(--color-text-muted);
	user-select: none;
	transition: color 0.3s ease;
}
.finder-auto-submit-checkbox {
	cursor: pointer;
	width: 18px;
	height: 18px;
}
.finder-submit-btn {
	padding: 12px 32px;
	background: var(--color-accent-primary);
	color: white;
	border: none;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.2s;
	font-weight: 600;
}
.finder-submit-btn:hover {
	background: var(--color-accent-hover);
}
.finder-results-section {
	margin-top: 40px;
}
.finder-results-count {
	text-align: center;
	margin-bottom: 30px;
	color: var(--color-text-muted);
	font-size: 0.95em;
	transition: color 0.3s ease;
}
.finder-rankings-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 40px 0;
}
.finder-ranking-section {
	background: var(--color-bg-tertiary);
	padding: 20px;
	transition: background-color 0.3s ease;
}
.finder-ranking-title {
	font-size: 1.2em;
	font-weight: 600;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	text-align: center;
	transition: color 0.3s ease;
}
.finder-ranking-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.finder-ranking-item {
	display: flex;
	gap: 15px;
	background: var(--color-bg-primary);
	padding: 15px;
	transition: background-color 0.3s ease;
}
.finder-ranking-rank {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--color-text-muted);
	min-width: 40px;
	text-align: center;
	line-height: 1.2;
	transition: color 0.3s ease;
}
.finder-ranking-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.finder-ranking-header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.finder-ranking-instance-type {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--color-text-secondary);
	text-decoration: none;
	font-family: monospace;
	transition: color 0.3s ease;
}
.finder-ranking-instance-type:hover {
	color: var(--color-accent-primary);
	text-decoration: underline;
}
.finder-ranking-performance {
	font-size: 0.9em;
	color: var(--color-text-muted);
	background: var(--color-bg-quaternary);
	padding: 2px 8px;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	transition: color 0.3s ease, background-color 0.3s ease;
}
.finder-ranking-performance-label {
	font-size: 0.7em;
	color: var(--color-text-lightest);
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
}
.finder-ranking-specs {
	font-size: 0.85em;
	color: var(--color-text-lightest);
	transition: color 0.3s ease;
}
.finder-ranking-prices {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 5px;
}
.finder-ranking-price-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.finder-ranking-price-label {
	font-size: 0.85em;
	color: var(--color-text-muted);
	min-width: 80px;
	padding-top: 2px;
	transition: color 0.3s ease;
}
.finder-ranking-price-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.finder-ranking-price-value {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--color-text-secondary);
	white-space: nowrap;
	transition: color 0.3s ease;
}
.finder-ranking-price-line-container {
	width: 100%;
	height: 2px;
	background: var(--color-bg-quaternary);
	position: relative;
	transition: background-color 0.3s ease;
}
.finder-ranking-price-line {
	height: 100%;
	background: var(--color-success);
	transition: width 0.3s ease, background-color 0.3s ease;
	min-width: 2px;
}
.finder-instances-list {
	margin-top: 50px;
}
.finder-list-title {
	font-size: 1.5em;
	font-weight: 600;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	transition: color 0.3s ease;
}
.finder-instances-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.finder-instance-card {
	background: var(--color-bg-tertiary);
	padding: 20px;
	transition: background 0.2s;
}
.finder-instance-card:hover {
	background: var(--color-bg-quaternary);
}
.finder-instance-header {
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--color-border-contrast);
	transition: border-color 0.3s ease;
}
.finder-instance-type-link {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--color-text-secondary);
	text-decoration: none;
	font-family: monospace;
	display: block;
	margin-bottom: 5px;
	transition: color 0.3s ease;
}
.finder-instance-type-link:hover {
	color: var(--color-accent-primary);
	text-decoration: underline;
}
.finder-instance-family {
	font-size: 0.85em;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
}
.finder-instance-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.finder-instance-spec {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9em;
}
.finder-instance-label {
	color: var(--color-text-muted);
	transition: color 0.3s ease;
}
.finder-instance-value {
	color: var(--color-text-secondary);
	font-weight: 500;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	transition: color 0.3s ease;
}
.finder-instance-performance-label {
	font-size: 0.75em;
	color: var(--color-text-lightest);
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
}
.finder-instance-price {
	color: var(--color-success);
	font-weight: 600;
	transition: color 0.3s ease;
}
.finder-no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--color-text-lightest);
	font-size: 1.1em;
	transition: color 0.3s ease;
}
@media (max-width: 1024px) {
	.finder-rankings-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 768px) {
	.finder-form-row {
		flex-direction: column;
	}
	.finder-form-group {
		flex: 1 1 100%;
		max-width: 100%;
		width: 100%;
	}
	.finder-input-pair {
		flex-direction: row;
		align-items: flex-end;
	}
	.finder-input-separator {
		display: block;
	}
	.finder-number-input {
		flex: 1 1 auto;
	}
	.finder-form {
		padding: 20px;
	}
	.finder-rankings-grid {
		grid-template-columns: 1fr;
	}
}

/* Ranking page specific styles */
.ranking-page-header {
	margin-bottom: 30px;
}
.ranking-page-header h1 {
	margin-bottom: 10px;
}
.ranking-page-description {
	color: var(--color-text-muted);
	font-size: 0.95em;
	margin-bottom: 20px;
	line-height: 1.6;
	transition: color 0.3s ease;
}
.ranking-stats {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.ranking-stat {
	background: var(--color-bg-tertiary);
	padding: 15px 20px;
	transition: background-color 0.3s ease;
}
.ranking-stat-label {
	font-size: 0.85em;
	color: var(--color-text-muted);
	margin-bottom: 5px;
	transition: color 0.3s ease;
}
.ranking-stat-value {
	font-size: 1.5em;
	font-weight: 600;
	color: var(--color-text-secondary);
	transition: color 0.3s ease;
}
.podium-section {
	margin: 40px 0;
	padding: 40px;
	background: var(--color-bg-tertiary);
	border-left: 2px solid var(--color-border-contrast);
	transition: background 0.3s ease;
}
.podium-title {
	text-align: center;
	font-size: 1.4em;
	font-weight: 600;
	color: var(--color-text-secondary);
	margin-bottom: 25px;
	transition: color 0.3s ease;
	letter-spacing: -0.02em;
}
.podium-architecture-filter {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.podium-arch-filter-btn {
	padding: 8px 16px;
	border: 1px solid var(--color-border-light);
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	font-size: 0.9em;
	cursor: pointer;
	transition: all 0.2s;
	font-family: monospace;
	min-width: 80px;
}
.podium-arch-filter-btn:hover {
	background: var(--color-bg-tertiary);
	border-color: var(--color-accent-primary);
}
.podium-arch-filter-btn.active {
	background: var(--color-accent-primary);
	color: white;
	border-color: var(--color-accent-primary);
}
.podium-container {
	display: none;
	justify-content: center;
	align-items: flex-end;
	gap: 20px;
	max-width: 600px;
	margin: 0 auto;
	padding: 0 20px;
}
.podium-container.active {
	display: flex;
}
.podium-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 180px;
}
.podium-item.second {
	order: 1;
}
.podium-item.first {
	order: 2;
	z-index: 1;
}
.podium-item.third {
	order: 3;
}
.podium-cup {
	font-size: 2.5em;
	margin-bottom: 10px;
	line-height: 1;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.podium-family-name {
	font-size: 1.2em;
	font-weight: 700;
	margin-bottom: 4px;
	text-align: center;
	letter-spacing: -0.02em;
}
.podium-family-name a {
	color: var(--color-text-primary);
	text-decoration: none;
	font-family: monospace;
	transition: color 0.3s ease;
}
.podium-family-name a:hover {
	color: var(--color-accent-primary);
	text-decoration: none;
}
.podium-score {
	font-size: 0.9em;
	color: var(--color-text-muted);
	margin-bottom: 15px;
	font-family: monospace;
	transition: color 0.3s ease;
}
.podium-base {
	width: 100%;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	font-size: 2.5em;
	transition: height 0.3s ease, background-color 0.3s ease;
	padding-top: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.podium-base.first {
	height: 160px;
	background: #f5c518; /* Premium Gold */
	background: linear-gradient(180deg, #f5c518 0%, #eeb800 100%);
}
.podium-base.second {
	height: 130px;
	background: #e0e0e0; /* Premium Silver */
	background: linear-gradient(180deg, #e0e0e0 0%, #d6d6d6 100%);
	color: #757575;
}
.podium-base.third {
	height: 100px;
	background: #d48e58; /* Premium Bronze */
	background: linear-gradient(180deg, #d48e58 0%, #c47d45 100%);
}
.podium-rank {
	font-family: monospace;
	line-height: 1;
	opacity: 0.8;
}
@media (max-width: 768px) {
	.podium-section {
		padding: 20px 15px;
		margin: 30px 0;
	}
	.ranking-stats {
		gap: 10px;
	}
	.ranking-stat {
		padding: 12px 15px;
		flex: 1 1 calc(50% - 5px);
		min-width: 0;
	}
	.ranking-stat-value {
		font-size: 1.3em;
	}
	.podium-container {
		flex-direction: column;
		align-items: center;
		padding: 10px;
	}
	.podium-item {
		max-width: 100%;
		width: 100%;
	}
	.podium-item.first {
		order: 1;
	}
	.podium-item.second {
		order: 2;
	}
	.podium-item.third {
		order: 3;
	}
	.podium-base.first {
		height: 120px;
	}
	.podium-base.second {
		height: 100px;
	}
	.podium-base.third {
		height: 80px;
	}
	.podium-title {
		font-size: 1.1em;
		margin-bottom: 15px;
	}
}

