/* This CSS file is for general css styling that applies to all pages. Page or screen-specific css should be in the respective css file. */

:root {
	--color-bg: #faf7f5;
	--color-text: #111111;
	--color-muted: #666666;
	--color-accent: #0678d4;
	--color-surface: #ffffff;
	--color-border: rgba(0,0,0,0.08);
	--color-sidebar: #E8E3E0;
	--color-sidebar-context: #F0EDE9;
	--color-form-group: #F5F3F0;

	--font-sans: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Noto Serif", Georgia, "Times New Roman", Times, serif;
}

/* Box sizing reset */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	position: relative;
	padding-left: 300px; /* Account for sidebar on desktop */
}

/* Mobile layout adjustments */
@media (max-width: 767px) {
	body {
		padding-left: 0; /* No padding for sidebar on mobile */
	}

	.note {
		font-size: 0.85rem;
	}
}

h1, h2, h3, h4 {
	margin: 0 0 0.5rem 0;
	font-family: var(--font-serif);
}
h6 { font-size: 1rem; }
h5 { font-size: 1.125rem; }
h4 { font-size: 1.25rem; }
h3 { font-size: 1.5rem; }
h2 { font-size: 1.75rem; }
h1 { font-size: 2rem; }

a {
	color: #0ea5e9;
	text-decoration: none;
	transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:visited {
	color: #0ea5e9;
}

a:hover {
	color: #0284c7;
	text-decoration: underline;
	text-decoration-color: #0284c7;
}


/* Display & Box Model */

.screen {
	display: none;
	min-height: 100vh;
	padding: 2rem;
	max-width: 960px;
	margin: 0 auto;
}

.screen-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
}

.screen.is-active {
	display: block;
}

/* Bottom navigation removed - now in sidebar */

/* Horizontal Rule Styling */
hr {
	border: none;
	height: 1px;
	background-color: var(--color-border);
	margin: 1.5rem 0;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 2rem 0;
}

caption {
	margin: 0 0 0.5rem 0;
	color: var(--color-muted);
	text-align: left;
}

th, td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--color-border);
}

thead th {
	border-bottom: 2px solid var(--color-border);
}

th {
	text-align: left;
	font-weight: 700;
}

td {
	vertical-align: top;
}

tbody tr {
	transition: background-color 120ms ease;
}

tbody tr:nth-child(even) {
	background-color: rgba(0,0,0,0.03);
}

tbody tr:hover {
	background-color: rgba(0,0,0,0.06);
}

/* Definition List Styling */
dl {
	margin: 1rem 0;
	padding: 0;
}

dt {
	font-weight: 600;
	color: var(--color-text);
	margin: 0.75rem 0 0.25rem 0;
	font-size: 1rem;
	line-height: 1.4;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--color-border);
}

dd {
	color: var(--color-muted);
	margin: 0 0 1rem 0;
	padding: 0.25rem 0 0.75rem 1rem;
	font-size: 0.9rem;
	line-height: 1.6;
	border-left: 3px solid var(--color-accent);
	background-color: rgba(0, 0, 0, 0.02);
	transition: background-color 120ms ease;
}

dd:hover {
	background-color: rgba(0, 0, 0, 0.04);
}

/* List Styling */
ul, ol {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

li {
	margin: 0.5rem 0;
	line-height: 1.6;
}

/* Code Styling */
code {
	font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
	font-size: 0.9em;
	color: var(--color-text);
	background-color: var(--color-surface);
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	border: 1px solid var(--color-border);
	transition: background-color 120ms ease, border-color 120ms ease;
}

pre {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 1rem;
	margin: 1rem 0;
	overflow-x: auto;
	transition: border-color 120ms ease;
}

pre:hover {
	border-color: var(--color-accent);
}

pre code {
	background: none;
	border: none;
	padding: 0;
	border-radius: 0;
	font-size: 0.85rem;
	line-height: 1.5;
}

/* Mark Styling */
mark {
	background-color: rgba(245, 158, 11, 0.2);
	color: var(--color-text);
	padding: 0.1rem 0.3rem;
	border-radius: 3px;
	font-weight: 500;
	transition: background-color 120ms ease;
}

mark:hover {
	background-color: rgba(245, 158, 11, 0.25);
}

/* Note styling for descriptive text */
.note {
	color: var(--color-muted);
	font-size: 0.9rem;
	margin-top: 0.75rem !important;
}

/* Text Selection Styling */
::selection {
	background-color: rgba(245, 158, 11, 0.3);
	color: var(--color-text);
}

::-moz-selection {
	background-color: rgba(245, 158, 11, 0.3);
	color: var(--color-text);
}

/* Figure and Figcaption Styling */
figure {
	margin: 1.5rem 0;
	padding: 0;
	text-align: center;
}

figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

figcaption {
	margin-top: 0.75rem;
	padding: 0 1rem 0.5rem 1rem;
	color: var(--color-muted);
	font-size: 0.9rem;
	font-style: italic;
	line-height: 1.5;
	background-color: var(--color-surface);
}

/* Address Styling */
address {
	font-style: normal;
	color: var(--color-muted);
	background-color: var(--color-surface);
	border-left: 4px solid var(--color-accent);
	padding: 1rem 1.25rem;
	margin: 1rem 0;
	border-radius: 0 6px 6px 0;
	transition: background-color 120ms ease;
}

address:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

/* Visual */
#app .screen {
	
}
