/* Pharmaguddu Tools - calculator hub. All rules scoped to .pg-hub. */
.pg-hub {
	--pg-brand: #0b3d91;
	--pg-soft: #eef4ff;
	--pg-border: #e5e7eb;
	--pg-muted: #5b6475;
	max-width: 1100px;
	margin: 24px auto;
}

.pg-hub [hidden] {
	display: none !important;
}

.pg-hub__bar {
	margin-bottom: 20px;
}

.pg-hub__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.pg-hub .pg-hub__search {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px;
	background-color: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
}

.pg-hub .pg-hub__search:focus {
	outline: none;
	border-color: var(--pg-brand);
	box-shadow: 0 0 0 3px rgba(11, 61, 145, .18);
}

.pg-hub__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.pg-hub .pg-hub__chip {
	min-height: 40px;
	padding: 6px 14px;
	font: inherit;
	font-size: .9rem;
	color: var(--pg-brand);
	background: #fff;
	border: 1px solid var(--pg-brand);
	border-radius: 999px;
	cursor: pointer;
}

.pg-hub .pg-hub__chip[aria-pressed="true"] {
	color: #fff;
	background: var(--pg-brand);
}

.pg-hub__cat {
	margin-bottom: 28px;
}

.pg-hub .pg-hub__title {
	margin: 0 0 12px;
	padding: 8px 12px;
	font-size: 1.15rem;
	color: var(--pg-brand);
	background: var(--pg-soft);
	border-radius: 8px;
}

.pg-hub__title span {
	color: var(--pg-muted);
	font-weight: 400;
}

.pg-hub .pg-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pg-hub .pg-hub__card {
	margin: 0;
}

.pg-hub__card a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--pg-border);
	border-radius: 10px;
}

.pg-hub__card a:hover,
.pg-hub__card a:focus-visible {
	border-color: var(--pg-brand);
	box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.pg-hub__card a:focus-visible {
	outline: 3px solid rgba(11, 61, 145, .35);
	outline-offset: 2px;
}

.pg-hub__name {
	font-weight: 700;
	color: var(--pg-brand);
	line-height: 1.3;
}

.pg-hub__blurb {
	font-size: .9rem;
	color: var(--pg-muted);
}

.pg-hub__draft {
	font-size: .75rem;
	font-style: normal;
	font-weight: 600;
	color: #b45309;
}

.pg-hub__none {
	padding: 16px;
	text-align: center;
	color: var(--pg-muted);
}

@media (max-width: 600px) {
	.pg-hub .pg-hub__grid {
		grid-template-columns: 1fr;
	}

	/* One swipeable row of filter buttons on phones. */
	.pg-hub__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.pg-hub .pg-hub__chip {
		flex: 0 0 auto;
	}
}
