/* Open5500 shared stylesheet: used by every page (the app, the static pages and the
   server-rendered employer/broker/carrier/state pages).

   1. Design tokens: the ONE place colors, fonts and sizes are defined. When the brand
      (logo, palette, fonts) arrives, change it here and every page follows.
   2. Base: reset and typography defaults.
   3. Site header and footer (markup comes from /assets/chrome.js).

   Page-specific styles live with each page (assets/app.css for the app). */

/* ---------- 1. tokens ---------- */
:root {
	--paper: #f3f4f1;
	--panel: #ffffff;
	--ink: #17212b;
	--muted: #5d6a72;
	--rule: #dde1db;
	--accent: #0d6b66;
	--accent-soft: #e2efed;
	--warn: #a4570e;
	--warn-soft: #f8ecdf;
	--low: #2f6b2f;
	--low-soft: #e5f0e2;
	--code: #eef1ec;
	--display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
	--body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--page-max: 1200px;
	--header-h: 56px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0f1417;
		--panel: #161e22;
		--ink: #e5eae7;
		--muted: #95a3aa;
		--rule: #283338;
		--accent: #5ab8ae;
		--accent-soft: #173431;
		--warn: #e0a266;
		--warn-soft: #3a2a1a;
		--low: #8fcf8a;
		--low-soft: #1d3320;
		--code: #0f1418;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #0f1417;
	--panel: #161e22;
	--ink: #e5eae7;
	--muted: #95a3aa;
	--rule: #283338;
	--accent: #5ab8ae;
	--accent-soft: #173431;
	--warn: #e0a266;
	--warn-soft: #3a2a1a;
	--low: #8fcf8a;
	--low-soft: #1d3320;
	--code: #0f1418;
	color-scheme: dark;
}

/* ---------- 2. base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
}
a {
	color: var(--accent);
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- 3. site header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--panel);
	border-bottom: 1px solid var(--rule);
	font: 14px/1.4 var(--body);
}
.site-header .wrap {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 20px;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 20px;
}
.site-logo {
	font-family: var(--display);
	font-weight: 700;
	font-size: 20px;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: 0.005em;
	white-space: nowrap;
}
.site-nav,
.site-util {
	display: flex;
	align-items: center;
	gap: 2px;
}
.site-util {
	margin-left: auto;
}
.site-nav a,
.site-util a,
.site-util .btn {
	color: var(--muted);
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
	font-weight: 500;
	white-space: nowrap;
}
.site-nav a:hover,
.site-util a:hover {
	color: var(--ink);
}
.site-nav a[aria-current="page"],
.site-util a[aria-current="page"] {
	color: var(--ink);
	background: var(--accent-soft);
}
.site-util #authSlot .btn {
	color: var(--accent);
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
}
.site-menu {
	display: none;
	margin-left: auto;
	border: 1px solid var(--rule);
	background: var(--panel);
	color: var(--ink);
	border-radius: 6px;
	padding: 6px 12px;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
@media (max-width: 760px) {
	.site-nav,
	.site-util {
		display: none;
	}
	.site-menu {
		display: inline-block;
	}
	.site-header.open .wrap {
		flex-wrap: wrap;
		padding-top: 10px;
		padding-bottom: 10px;
		row-gap: 4px;
	}
	.site-header.open .site-nav,
	.site-header.open .site-util {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		margin: 0;
		order: 2;
	}
	.site-header.open .site-util {
		order: 3;
		border-top: 1px solid var(--rule);
		padding-top: 4px;
	}
	.site-header.open .site-util #authSlot .btn {
		text-align: left;
		width: 100%;
	}
}

/* ---------- 3. site footer ---------- */
.site-footer {
	border-top: 1px solid var(--rule);
	margin-top: 32px;
	font: 13px/1.5 var(--body);
	color: var(--muted);
}
.site-footer .wrap {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 24px 20px 36px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 20px;
}
.site-footer h2 {
	font: 600 13px/1.4 var(--body);
	color: var(--ink);
	margin: 0 0 6px;
	letter-spacing: 0;
	text-transform: none;
}
.site-footer a {
	color: inherit;
	text-decoration: none;
	display: block;
	padding: 2px 0;
}
.site-footer a:hover {
	color: var(--ink);
	text-decoration: underline;
}
.site-footer .site-logo {
	display: inline-block;
	padding: 0;
	font-size: 18px;
}
.site-footer p {
	margin: 6px 0 0;
}
@media (max-width: 760px) {
	.site-footer .wrap {
		grid-template-columns: 1fr 1fr;
	}
	.site-footer .about {
		grid-column: 1 / -1;
	}
}
