/**
 * Westphal Solutions. Business documents hub (self-contained)
 *
 * Owns everything under the `wsbizdocs` prefix. Reads only brand tokens from
 * main.css. Shares no classes with the finance hub on purpose: the two pages
 * solve different problems and neither should be able to restyle the other.
 *
 * Card treatment matches ws-finance.css deliberately. Same component doing the
 * same job across two hubs, so a visitor reads it as one system.
 */

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

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

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

.wsbizdocs__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);
}

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

/* Closing aside on a section. Hairline separates, never decorates. */
.wsbizdocs__note {
	max-width: var(--wsbizdocs-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;
}

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

/* === Card. Generators and the cross-family strip. === */

.wsbizdocs-card {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 0.95rem 1.05rem;
	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 the finance cards. */
.wsbizdocs-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) {
	.wsbizdocs-card:hover { transform: translateY(-2px); }
	.wsbizdocs-card:hover::before { transform: scaleY(1); }
}
.wsbizdocs-card:focus-visible { transform: translateY(-2px); }
.wsbizdocs-card:focus-visible::before { transform: scaleY(1); }

.wsbizdocs-card__name {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: var(--ws-heading);
}

.wsbizdocs-card__desc {
	display: block;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--ws-muted);
}

.wsbizdocs-card__meta {
	display: block;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--ws-border);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ws-grey);
}

/* Large card. Two per row, so it can carry real copy. */
.wsbizdocs-card--lg { padding: 1.6rem 1.7rem; }
.wsbizdocs-card--lg .wsbizdocs-card__name { margin-bottom: 10px; font-size: 1.25rem; }
.wsbizdocs-card--lg .wsbizdocs-card__desc { font-size: 0.95rem; line-height: 1.65; }

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

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

/* === Two families === */

.wsbizdocs-fam__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.wsbizdocs-fam__item {
	min-width: 0;
	padding-top: 18px;
	/* Lime edge marks the split. Single-sided border, so no radius. */
	border-top: 2px solid var(--ws-accent);
}

.wsbizdocs-fam__name {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.3;
	color: var(--ws-heading);
}

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

/* === Sequence === */

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

.wsbizdocs-seq__item {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
	padding: 26px 0;
	border-bottom: 1px solid var(--ws-border);
}
.wsbizdocs-seq__item:first-child { padding-top: 0; }
.wsbizdocs-seq__item:last-child { border-bottom: 0; padding-bottom: 0; }

/* Ordinal in the finance house style. Decorative, hidden from AT. */
.wsbizdocs-seq__num {
	font-family: var(--ws-code);
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ws-accent);
}

.wsbizdocs-seq__body { min-width: 0; }

.wsbizdocs-seq__name {
	margin: 0 0 2px;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1.3;
	color: var(--ws-heading);
}

.wsbizdocs-seq__when {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ws-grey);
}

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

/* === Checklist === */

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

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

/* Lime tick. Marker only, never carries meaning alone. */
.wsbizdocs-check__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 19px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--ws-accent);
	border-bottom: 2px solid var(--ws-accent);
	transform: rotate(-45deg);
}

/* === FAQ === */

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

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

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

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

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

.wsbizdocs-more__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

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

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

.wsbizdocs-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);
}

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

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

/* === Dark mode ===
   Charcoal block on a charcoal page needs an edge to read as a block. */

[data-theme="dark"] .wsbizdocs-cta { border: 1px solid var(--ws-border); }

/* === Narrow === */

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

@media (max-width: 700px) {
	.wsbizdocs__lede { font-size: 1.05rem; margin-bottom: 40px; }
	.wsbizdocs section { margin-bottom: 48px; }

	.wsbizdocs-set__grid,
	.wsbizdocs-fam__grid,
	.wsbizdocs-more__grid { grid-template-columns: 1fr; }

	.wsbizdocs-card--lg { padding: 1.25rem 1.35rem; }
	.wsbizdocs-card--lg .wsbizdocs-card__name { font-size: 1.1rem; }

	.wsbizdocs-seq__item { grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 0; }
	.wsbizdocs-cta { padding: 1.5rem; }
}

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

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