:root {
	--brand: #3dc3ee;
	--brand-dark: #1f9fc9;
	--ink: #1f2933;
	--muted: #69707a;
	--line: #e3e8ee;
	--surface: #ffffff;
	--bg: #f6f9fc;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: 'Open Sans', Tahoma, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
}

.wrap {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- header ---------- */

.site-header {
	background: #fff;
	border-bottom: 3px solid var(--brand);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	min-height: 106px;
	padding: 14px 16px;
}

.brand img {
	display: block;
	max-width: 300px;
	width: 100%;
	height: auto;
}

/* ---------- hero / search ---------- */

.site-main { padding: 28px 0 48px; }

.hero { text-align: center; padding: 8px 0 4px; }

.hero h1 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #111;
}

.hero-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.search {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 0 auto;
}

.search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.search input[type="search"]:focus {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
	border-color: var(--brand);
}

.search button {
	flex: 0 0 auto;
	padding: 12px 22px;
	font: inherit;
	font-weight: 700;
	color: #04303d;
	background: var(--brand);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.search button:hover { background: var(--brand-dark); color: #fff; }

.search-result {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.search-result a { margin-left: 8px; color: var(--brand-dark); }

/* ---------- jump nav ---------- */

.jump-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 8px;
	padding: 0;
}

.jump-nav a {
	display: inline-block;
	padding: 7px 14px;
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.jump-nav a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- group / card ---------- */

.group { margin-top: 34px; }

.group-title {
	margin: 0 0 14px;
	padding-bottom: 8px;
	font-size: 22px;
	border-bottom: 2px solid var(--brand);
}

.card {
	margin-bottom: 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #eeeeee;
	border-bottom: 1px solid var(--line);
}

.card-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
}

.card-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.card-body { padding: 6px 16px 14px; }

.section-title {
	margin: 16px 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: #444;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- document rows ---------- */

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

.doc-row { border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }

.doc-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 11px 4px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 8px;
}

.doc-link:hover { background: #f2f8fb; }
.doc-link:hover .doc-title { color: var(--brand-dark); }
.doc-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.doc-ext {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	padding: 4px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .3px;
	color: #fff;
	background: #8a93a0;
	border-radius: 5px;
}

.doc-ext.ext-pdf { background: #d94141; }
.doc-ext.ext-doc { background: #2b579a; }
.doc-ext.ext-xls { background: #1e7145; }
.doc-ext.ext-link { background: #7a5af8; }

.doc-body { flex: 1 1 auto; min-width: 0; }

.doc-title {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	word-wrap: break-word;
}

.badge-new {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: #e8590c;
	border-radius: 999px;
	vertical-align: middle;
}

.doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 3px;
	font-size: 14px;
	color: var(--muted);
}

.doc-note { color: #8a93a0; }

.doc-action {
	flex: 0 0 auto;
	align-self: center;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--brand-dark);
	background: #eaf8fd;
	border-radius: 8px;
	white-space: nowrap;
}

/* ---------- empty ---------- */

.empty-state {
	margin: 40px 0;
	padding: 40px 20px;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--line);
	border-radius: 12px;
}

.btn-light {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 20px;
	color: var(--ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.btn-light:hover { border-color: var(--brand); }

/* ---------- footer ---------- */

.site-footer {
	padding: 22px 0 30px;
	font-size: 14px;
	text-align: center;
	color: var(--muted);
	border-top: 1px solid var(--line);
	background: #fff;
}

.site-footer p { margin: 2px 0; }
.site-footer .muted { font-size: 14px; color: #9aa3ae; }

/* ---------- utilities ---------- */

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
	.site-header .wrap { min-height: 80px; padding: 10px 16px; }
	.brand img { max-width: 220px; }

	.hero h1 { font-size: 21px; }

	.search { flex-wrap: wrap; }
	.search input[type="search"] { flex: 1 1 100%; }
	.search button { flex: 1 1 100%; }

	.card-body { padding: 4px 10px 10px; }

	.doc-link { flex-wrap: wrap; gap: 8px; }
	.doc-action { display: none; }
	.doc-ext { min-width: 44px; }
}
