/* Site chrome around the kit: the bar above the cover and the footer.
   Colours come from the kit's variables so both themes follow. */

:root { --accent: #0f766e; --accent-soft: #ccfbf1; --accent-strong: #115e59; }
:root[data-theme="dark"] { --accent: #2dd4bf; --accent-soft: #042f2e; --accent-strong: #5eead4; }
/* The kit's light --text-faint (#87817a) is 3.7:1 on the page background,
   under WCAG AA's 4.5:1, and the site uses it for the footer's "not a
   diagnosis" line and the result card's notes. #6c6762 is 5.4:1 there and
   4.5:1 on the table-head tone, still lighter than --text-soft. */
:root:not([data-theme="dark"]) { --text-faint: #6c6762; }

.site-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	padding: 14px 0;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--border);
}
.site-brand {
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.01em;
	color: var(--text);
	text-decoration: none;
}
.site-brand:hover { color: var(--accent-strong); }
.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
}
.site-nav a, .site-lang {
	color: var(--text-soft);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-lang:hover { color: var(--accent-strong); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-lang { margin-left: auto; }

/* The kit leaves prose links unstyled; these follow the accent. */
main > :is(section, p, ul, ol, blockquote, table) a:not([class]), main .callout a:not([class]) {
	color: var(--accent-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
main > :is(section, p, ul, ol, blockquote, table) a:not([class]):hover, main .callout a:not([class]):hover { color: var(--accent); }

/* The kit's Contents drawer is <page-nav>: it adopts <page-toc> and lists a
   docs tree's pages from site-manifest.json. This site's own bar does that
   job, so there is no page-nav and <page-toc> takes the drawer's place,
   styled like it; left alone it renders as a block above the page. */
.layout:not(:has(page-nav)) > page-toc {
	position: fixed;
	top: 0;
	left: -100%;
	z-index: 99;
	width: var(--oku-drawer-w);
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 56px 20px 24px;
	background: var(--surface);
	border-right: 1px solid var(--border-soft);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
	font-size: 13.5px;
	line-height: 1.5;
	transition: left 0.25s ease;
}
body.drawer-open .layout:not(:has(page-nav)) > page-toc { left: 0; }
body.drawer-pinned .layout:not(:has(page-nav)) > page-toc { box-shadow: none; }

.site-footer {
	margin-top: 56px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	color: var(--text-faint);
	font-size: 13px;
	line-height: 1.6;
}
.site-footer p { margin: 0 0 8px; }
main .site-footer a:not([class]) { color: var(--text-soft); }

/* Links under a page body (back to the list, the info page). */
.site-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; font-size: 15px; }
.site-links a { color: var(--accent-strong); font-weight: 600; }

/* The exercise list. */
.site-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.site-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.site-card p { margin: 4px 0 0; font-size: 15px; }
.site-card-title { font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.site-card-title:hover { color: var(--accent-strong); text-decoration: underline; }
main .site-card .site-card-facts { color: var(--text-faint); font-size: 13.5px; }
main .site-cards > .site-card { margin: 0; }
