/*
CPR — Public Pages
Used by generated states.html and other public-facing pages.
Owns layout and scrolling for public content.
*/

/* ---------- Base ---------- */

html, body {
	margin: 0;
	padding: 0;
	background: #e8e8ed;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #111;
}

/* ---------- Header ---------- */

.states-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 3px solid #0b3c6d;
	padding: 14px 20px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.states-header-inner {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.cap-logo {
	width: 64px;
	height: auto;
}

.header-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.title-main {
	font-size: 26px;
	font-weight: 700;
	color: #0a2a66;
}

.title-sub {
	font-size: 22px;
	font-weight: 600;
	color: #0a2a66;
}

.header-meta {
	font-size: 16px;
	color: #333;
}

.header-meta .sep {
	margin: 0 6px;
	color: #888;
}

.as-of {
	font-size: 14px;
	color: #555;
}
.header-btn {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0a2a66;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-btn:hover {
  background: #081f4d;
}

/* Mobile polish */
@media (max-width: 600px) {
  .header-btn {
    margin-left: 0;
    margin-top: 10px;
    align-self: flex-start;
  }
}
/* ---------- Content ---------- */

.states-content {
	background: #e8e8ed;
	padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.states-content-inner {
	max-width: 720px;
	margin: 32px auto;
	padding: 28px 28px 72px;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 0 28px rgba(0, 0, 0, 0.12);
}

/* ---------- Mobile ---------- */

@media (max-width: 899px) {
	.states-content-inner {
		max-width: 100%;
		margin: 0;
		padding: 20px 20px 72px;
		border-radius: 0;
		box-shadow: none;
	}
}

/* ---------- Text ---------- */

.narrative,
.summary {
	font-size: 18px;
	line-height: 1.55;
	margin: 12px 0;
}

/* ---------- Table ---------- */

.states-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	margin-top: 18px;
}

.state-row td {
	padding: 12px 8px;
	border-top: 1px solid #e2e2e2;
	vertical-align: top;
}

.state-name {
	font-weight: 700;
	width: 42%;
}

.status {
	white-space: nowrap;
}

/* ---------- Pills ---------- */

.pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
}

.pill.leg { background: #2e7d32; }
.pill.init { background: #1565c0; }

/* ---------- Details ---------- */

.detail-content {
	padding: 8px 12px 14px 28px;
	font-size: 17px;
	color: #333;
}

/* ---------- Footer ---------- */

.footer {
	margin-top: 28px;
	font-size: 17px;
}