/* Why disability insurance (.di-why) and Business owners (.di-biz) pages. Spec inner-pages.md sections 5 and 6.
   Shared page pieces use .di-page*; nothing here hardcodes a color, every value is a token. */

/* ---------- Shared page pieces ---------- */
.di-page > .di-container > * {
	margin-block: 0;
}
.di-page__header {
	max-width: 760px;
	margin-bottom: 40px;
}
.di-page__title {
	margin-bottom: 20px;
}
.di-reviewer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}
.di-page__answer {
	max-width: 760px;
}
.di-page__hero {
	margin: 40px 0 0;
}
.di-page__hero img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--card);
}
.di-page__sec {
	margin-block: 0;
	padding-top: 64px;
}
.di-page__sec--md {
	padding-top: 64px;
}
.di-page__sec--lg {
	padding-top: 80px;
}
.di-page__h2 {
	margin: 0 0 8px;
	color: var(--wp--preset--color--ink);
}
.di-page__h2--sm {
	margin-bottom: 20px;
	font-size: 28px;
	line-height: var(--wp--custom--line-height--heading-2);
	letter-spacing: normal;
}
.di-page__intro {
	max-width: 720px;
	margin: 0 0 32px;
	color: var(--wp--preset--color--slate);
}

/* ---------- Why disability insurance ---------- */
.di-why__evidence {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
}
.di-why__evidence article {
	min-width: 0;
	padding-top: 20px;
	border-top: var(--wp--custom--border--emphasis) solid var(--wp--preset--color--accent);
}
.di-why__stat {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 52px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.02em;
}
.di-why__text {
	margin: 0 0 14px;
	line-height: 1.5;
	text-wrap: pretty;
}
.di-why__evidence .di-source a {
	text-decoration: underline;
}
.di-why__asset {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 48px;
	align-items: center;
}
.di-why__asset-copy {
	min-width: 0;
	max-width: 620px;
}
.di-why__asset-copy p {
	margin: 0 0 16px;
}
.di-why__asset-copy p:last-child {
	margin-bottom: 0;
}
.di-why__card {
	box-sizing: border-box;
	min-width: 0;
	padding: 32px;
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card-lg);
	background: var(--wp--preset--color--card);
}
.di-why__card-title {
	margin: 0 0 16px;
	font-weight: 600;
}
.di-why__inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 20px;
}
.di-why__inputs > * {
	min-width: 0;
}
.di-why__inputs .di-field {
	flex-direction: column;
	gap: 6px;
	font-size: var(--wp--preset--font-size--small);
}
.di-why__inputs .di-field__error {
	margin: 6px 0 0;
}
.di-why__label {
	margin: 0 0 4px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}
.di-why__output {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 48px;
	font-weight: 500;
	line-height: 1.05;
	color: var(--wp--preset--color--accent);
	overflow-wrap: anywhere;
}
.di-why__note {
	margin: 12px 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}
.di-why__myths {
	max-width: 760px;
}
.di-why__myths .di-page__h2 {
	margin-bottom: 24px;
}
/* Desktop: the table reads as the design's ruled rows. At 781px and below it becomes a bordered scroll
   container (.di-table-wrap) so the two columns keep a readable width. */
.di-why__myth-wrap {
	border: 0;
	border-top: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	border-radius: 0;
	background: transparent;
	overflow: visible;
}
.di-why__myth-table {
	min-width: 0;
	table-layout: fixed;
	font-size: inherit;
}
.di-why__myth-table td {
	vertical-align: top;
	padding: 24px 12px 24px 0;
	border-bottom: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	font-weight: 400;
}
.di-why__myth-table td + td {
	padding: 24px 0 24px 12px;
}
.di-why__myth-table tbody tr:last-child td {
	border-bottom: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
}
.di-why__myth-table tbody td:first-child {
	font-weight: 400;
}
.di-why__myth p {
	margin: 0;
}
.di-why__myth-label {
	margin-bottom: 4px !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}
.di-why__myth-label--accent {
	color: var(--wp--preset--color--accent);
}
.di-why__myth-claim {
	font-weight: 600;
	line-height: 1.4;
}
.di-why__myth-fact {
	line-height: 1.5;
	color: var(--wp--preset--color--slate);
}
.di-why__next {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.di-why__next-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	min-height: 110px;
	height: 100%;
	padding: 20px;
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.di-why__next-card:hover {
	border-color: var(--wp--preset--color--accent);
}
.di-why__next-eyebrow {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.di-why__next-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 22px;
	line-height: 1.25;
}

/* ---------- Business owners ---------- */
.di-biz__figure {
	max-width: 760px;
	margin: 40px 0 0;
}
.di-biz__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--card);
}
.di-biz__figure figcaption {
	margin-top: 10px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}
.di-biz__policies {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.di-biz__policy {
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-sizing: border-box;
	min-width: 0;
	padding: 28px;
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card-lg);
	background: var(--wp--preset--color--card);
}
.di-biz__policy-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.di-biz__policy-eyebrow {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.di-biz__policy-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 26px;
	font-weight: 500;
	line-height: var(--wp--custom--line-height--heading-2);
}
.di-biz__policy-text {
	margin: 0;
	line-height: 1.5;
	color: var(--wp--preset--color--slate);
}
.di-biz__policy-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	margin: auto 0 0;
	padding-top: 14px;
	border-top: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
}
.di-biz__policy-facts dt {
	color: var(--wp--preset--color--slate);
}
.di-biz__policy-facts dd {
	min-width: 0;
	margin: 0;
	font-weight: 600;
}
.di-biz__diagram {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 48px;
	align-items: start;
}
.di-biz__diagram-copy {
	min-width: 0;
	max-width: 560px;
}
.di-biz__diagram-copy .di-page__h2 {
	margin-bottom: 16px;
}
.di-biz__diagram-copy p {
	margin: 0 0 16px;
}
.di-biz__diagram-copy .di-biz__small {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}

/* Buy-sell diagram. The SVG is drawn 300 units wide at a floor of 300px, so its text (15px, 16px, 22px in
   user units) renders at 15px or more at every width; narrower viewports scroll inside the figure. */
.di-bs {
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 24px;
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--card);
}
.di-bs__scroll {
	max-width: 100%;
	overflow-x: auto;
}
.di-bs__svg {
	display: block;
	width: 100%;
	min-width: 300px;
	max-width: 360px;
	height: auto;
	margin-inline: auto;
	font-family: var(--wp--preset--font-family--sans);
}
.di-bs__box {
	fill: var(--wp--preset--color--card);
	stroke: var(--wp--preset--color--ink);
	stroke-width: 1.5;
}
.di-bs__box--event {
	fill: var(--wp--preset--color--paper-alt);
	stroke: var(--wp--preset--color--slate);
}
.di-bs__box--pay {
	fill: var(--wp--preset--color--accent-soft);
	stroke: var(--wp--preset--color--accent);
}
.di-bs__t {
	font-size: 16px;
	font-weight: 600;
	fill: var(--wp--preset--color--ink);
}
.di-bs__t--accent {
	fill: var(--wp--preset--color--accent);
}
.di-bs__s {
	font-size: 15px;
	fill: var(--wp--preset--color--slate);
}
.di-bs__n {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 22px;
	font-weight: 500;
	fill: var(--wp--preset--color--accent);
}
.di-bs__dash {
	stroke: var(--wp--preset--color--slate);
	stroke-width: 1.5;
	stroke-dasharray: 4 4;
}
.di-bs__flow {
	stroke: var(--wp--preset--color--accent);
	stroke-width: 1.5;
}
.di-bs__head {
	fill: var(--wp--preset--color--accent);
}
.di-bs__alt {
	margin-top: 20px;
	padding-top: 16px;
	border-top: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--slate);
}
.di-bs__alt-title {
	margin: 0 0 8px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.di-bs__alt ol {
	margin: 0;
	padding-left: 22px;
}
.di-bs__alt li + li {
	margin-top: 4px;
}

.di-biz__checklist {
	max-width: 760px;
}
.di-biz__checklist .di-page__h2 {
	margin-bottom: 24px;
}
.di-biz__band {
	gap: 32px;
}
.di-biz__band-title {
	margin-bottom: 12px;
	font-size: 36px;
	line-height: var(--wp--custom--line-height--heading-1);
	letter-spacing: var(--wp--custom--letter-spacing--heading-1);
}
.di-biz__band-text {
	font-size: var(--wp--preset--font-size--body);
	text-wrap: pretty;
}

/* ---------- Mobile (D7: 781px) ---------- */
@media (max-width: 1100px) {
	.di-why__evidence {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	}
	.di-biz__policies {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	}
}
@media (max-width: 781px) {
	.di-biz__band-title {
		font-size: 30px;
	}
	.di-page__h2--sm {
		font-size: 28px;
	}
	.di-why__stat {
		font-size: 44px;
	}
	.di-why__card {
		padding: 24px 20px;
	}
	.di-why__myth-wrap {
		border: var(--wp--custom--border--width) solid var(--wp--preset--color--line);
		border-radius: var(--wp--custom--radius--card);
		background: var(--wp--preset--color--card);
		overflow-x: auto;
	}
	.di-why__myth-table {
		min-width: 560px;
	}
	.di-why__myth-table td,
	.di-why__myth-table td + td {
		padding: 20px;
	}
	.di-why__myth-table tbody tr:last-child td {
		border-bottom: 0;
	}
	.di-bs {
		padding: 16px;
	}
}
