/* ========== Base reset & typography ========== */

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Inter, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #1f2937;
	background-color: #f7f7f7;
}

a {
	color: #1f4fd8;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: #1f4fd8;
}

/* ========== Layout ========== */

main {
	max-width: 1040px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}

/* ========== Cards / sections ========== */

.card {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 24px;
}

.card h1,
.card h2,
.card h3,
.card h4 {
	margin-top: 0;
	margin-bottom: 12px;
	font-weight: 600;
}

.card h1 {
	font-size: 22px;
}

.card h2 {
	font-size: 18px;
}

.card p {
	margin: 8px 0;
}

.muted {
	color: #6b7280;
}

.small {
	font-size: 13px;
}

/* ========== Lists ========== */

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

li {
	margin-bottom: 6px;
}

/* ========== Tables ========== */

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

th,
td {
	border: 1px solid rgba(0, 0, 0, 0.12);
	padding: 8px 10px;
	vertical-align: top;
}

th {
	background-color: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}

/* ========== Buttons ========== */

.btn {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid transparent;
}

.btn.primary {
	background-color: #1f4fd8;
	color: #ffffff;
	border-color: #1f4fd8;
}

.btn.primary:hover {
	background-color: #183fb2;
	border-color: #183fb2;
	text-decoration: none;
}

.btn.btn-outline {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.2);
	color: #1f2937;
}

.btn.btn-outline:hover {
	background: rgba(0, 0, 0, 0.04);
	text-decoration: none;
}

.btn-link {
	background: none;
	border: none;
	padding: 0;
	color: #1f4fd8;
	cursor: pointer;
	font-size: 14px;
}

/* ========== Header ========== */

header.header {
	background: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
	max-width: 1040px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	font-weight: 600;
	font-size: 16px;
	color: #111827;
}

ul.header-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-main {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ========== Footer ========== */

footer {
	background: #ffffff;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin-top: 48px;
}

.footer-content {
	max-width: 1040px;
	margin: 0 auto;
	padding: 32px 20px;
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.footer-section {
	min-width: 160px;
}

.footer-section h4 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}

ul.footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.footer-list li {
	margin-bottom: 6px;
}

.footer-bottom {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding: 16px 20px;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
}

/* ========== Utilities ========== */

hr {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin: 32px 0;
}

/* ========== Metrics button ========== */

.btn-metrics {
	background: #ffffff;
	color: #1f4fd8;
	border: 1px solid #1f4fd8;
}

.btn-metrics:hover {
	background: rgba(31, 79, 216, 0.06);
	text-decoration: none;
}