/**
 * Westphal Solutions. Policy hub (self-contained)
 *
 * Owns everything under the `wspolhub` prefix. Reads only brand tokens from
 * main.css.
 *
 * Card and section rhythm intentionally match ws-bizdocs.css. Two sibling hubs
 * doing the same job should read as one system. Deliberately a copy rather than
 * a shared class, because the two ship on different schedules and neither
 * should be able to restyle the other.
 */

.wspolhub {
	/* Prose measure per standards. Grids break wider on their own. */
	--wspolhub-measure: 740px;
	font-family: var(--ws-font);
	color: var(--ws-text);
}

.wspolhub section { margin-bottom: 64px; }

/* === Shared type === */

.wspolhub__lede {
	max-width: var(--wspolhub-measure);
	margin: 0 0 48px;
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--ws-text);
	text-wrap: pretty;
}

.wspolhub__h2 {
	margin: 0 0 12px;
	font-family: var(--ws-font);
	font-size: var(--ws-fs-h4, 1.6rem);
	font-weight: 900;
	line-height: 1.2;
	color: var(--ws-heading);
}

.wspolhub__intro {
	max-width: var(--wspolhub-measure);
	margin: 0 0 28px;
	line-height: 1.7;
	color: var(--ws-muted);
	text-wrap: pretty;
}

.wspolhub__body {
	max-width: var(--wspolhub-measure);
	margin: 0 0 16px;
	line-height: 1.7;
	color: var(--ws-muted);
	text-wrap: pretty;
}
.wspolhub__body:last-child { margin-bottom: 0; }

/* Closing aside. Hairline separates, never decorates. */
.wspolhub__note {
	max-width: var(--wspolhub-measure);
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--ws-border);
	line-height: 1.7;
	color: var(--ws-muted);
	text-wrap: pretty;
}

/* === Card === */

.wspolhub-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 1.6rem 1.7rem;
	border: 1px solid var(--ws-border);
	border-radius: var(--ws-radius);
	background-color: var(--ws-surface);
	font-weight: 400;
	color: var(--ws-text);
	text-decoration: none;
	transition: transform 0.2s var(--ws-ease);
}

/* Lime edge wipes in on hover. Same signal as every other card on the site. */
.wspolhub-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 3px;
	background: var(--ws-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.2s var(--ws-ease);
}

@media (hover: hover) {
	.wspolhub-card:hover { transform: translateY(-2px); }
	.wspolhub-card:hover::before { transform: scaleY(1); }
}
.wspolhub-card:focus-visible { transform: translateY(-2px); }
.wspolhub-card:focus-visible::before { transform: scaleY(1); }

.wspolhub-card__name {
	display: block;
	margin-bottom: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ws-heading);
}

.wspolhub-card__desc {
	display: block;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--ws-muted);
}

/* Pushed to the foot so cards of different copy length align. */
.wspolhub-card__go {
	display: block;
	margin-top: auto;
	padding-top: 18px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ws-slate);
}

.wspolhub-card--sm { padding: 0.95rem 1.05rem; }
.wspolhub-card--sm .wspolhub-card__name { margin-bottom: 6px; font-size: 1rem; }
.wspolhub-card--sm .wspolhub-card__desc { font-size: 0.9rem; line-height: 1.55; }

/* === Generator set === */

.wspolhub-set__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}

/* === Which ones you need === */

.wspolhub-need__list {
	max-width: var(--wspolhub-measure);
}

.wspolhub-need__item {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 28px;
	padding: 26px 0;
	border-bottom: 1px solid var(--ws-border);
}
.wspolhub-need__item:first-child { padding-top: 0; }
.wspolhub-need__item:last-child { border-bottom: 0; padding-bottom: 0; }

.wspolhub-need__cond { min-width: 0; }

.wspolhub-need__if {
	display: block;
	margin-bottom: 6px;
	font-family: var(--ws-code);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ws-accent);
}

.wspolhub-need__when {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ws-heading);
}

/* The answer. Lime edge marks it as the outcome of the condition. */
.wspolhub-need__doc {
	margin: 0;
	padding-left: 12px;
	border-left: 2px solid var(--ws-accent);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ws-text);
}

.wspolhub-need__text {
	min-width: 0;
	margin: 0;
	line-height: 1.7;
	color: var(--ws-muted);
	text-wrap: pretty;
}

/* === Limits === */

.wspolhub-limits__list {
	list-style: none;
	max-width: var(--wspolhub-measure);
	margin: 0;
	padding: 0;
}

.wspolhub-limits__list li {
	position: relative;
	padding: 12px 0 12px 26px;
	border-bottom: 1px solid var(--ws-border);
	line-height: 1.6;
	color: var(--ws-text);
}
.wspolhub-limits__list li:last-child { border-bottom: 0; }

/* Slate bar, not a lime tick. These are limits, not features. */
.wspolhub-limits__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 20px;
	width: 10px;
	height: 2px;
	background: var(--ws-slate);
}

/* === FAQ === */

.wspolhub-faq__item {
	max-width: var(--wspolhub-measure);
	padding: 22px 0;
	border-bottom: 1px solid var(--ws-border);
}
.wspolhub-faq__item:last-child { border-bottom: 0; }

.wspolhub-faq__q {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ws-heading);
}

.wspolhub-faq__a {
	margin: 0;
	line-height: 1.7;
	color: var(--ws-muted);
	text-wrap: pretty;
}

/* === Cross-family strip === */

.wspolhub-more__title {
	margin: 0 0 18px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ws-muted);
}

.wspolhub-more__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* === Closing block === */

.wspolhub-cta {
	margin-bottom: 48px;
	padding: 2.25rem;
	border-radius: var(--ws-radius);
	background: var(--ws-charcoal);
}

.wspolhub-cta__title {
	margin: 0 0 0.85rem;
	font-family: var(--ws-font);
	font-size: var(--ws-fs-h5, 1.35rem);
	font-weight: 700;
	color: var(--ws-white);
}

.wspolhub-cta__body {
	max-width: 42rem;
	margin: 0 0 1rem;
	line-height: 1.7;
	color: var(--ws-grey);
	text-wrap: pretty;
}

.wspolhub-cta .ws-button { margin-top: 0.4rem; }

/* Charcoal block on a charcoal page needs an edge to read as a block. */
[data-theme="dark"] .wspolhub-cta { border: 1px solid var(--ws-border); }

/* === Narrow === */

@media (max-width: 980px) {
	.wspolhub-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.wspolhub-set__grid { grid-template-columns: 1fr; }
	.wspolhub-need__item { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 700px) {
	.wspolhub__lede { font-size: 1.05rem; margin-bottom: 40px; }
	.wspolhub section { margin-bottom: 48px; }
	.wspolhub-more__grid { grid-template-columns: 1fr; }
	.wspolhub-card { padding: 1.25rem 1.35rem; }
	.wspolhub-card__name { font-size: 1.1rem; }
	.wspolhub-cta { padding: 1.5rem; }
}

/* === Reduced motion. Lands on the finished state. === */

@media (prefers-reduced-motion: reduce) {
	.wspolhub-card,
	.wspolhub-card::before { transition: none; }
	.wspolhub-card:hover { transform: none; }
}
