/* /private-equity/technology-due-diligence/, see
   inc/pe-pages/private-equity-technology-due-diligence.php. The tdd-* blocks
   and this page's tweaks to the shared ones. */

.pe-tdd-soft { color: var(--pe-soft); }

/* Why it matters: the export's 7/5 split, the card dropped below the H2. */
@media (min-width: 1024px) {
	.pe-tdd-why .pe-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.pe-tdd-why .pe-tdd-stat { margin-top: 4rem; }
}

/* tdd-stat-card */
.pe-tdd-stat {
	position: relative;
	padding: 2rem;
	border: 1px solid var(--pe-rule);
	background: var(--pe-paper);
}
@media (min-width: 768px) {
	.pe-tdd-stat { padding: 2.5rem; }
}
.pe-tdd-stat-corner {
	position: absolute;
	width: 0.75rem;
	height: 0.75rem;
	border-color: var(--pe-green);
}
.pe-tdd-stat-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.pe-tdd-stat-corner--br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.pe-tdd-stat-figure {
	margin-top: 1.5rem;
	color: var(--pe-green);
	font-size: 4.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
}
@media (min-width: 768px) {
	.pe-tdd-stat-figure { font-size: 6rem; }
}
.pe-tdd-stat-text { margin-top: 1rem; line-height: 1.625; }
.pe-tdd-stat-source { display: block; margin-top: 0.5rem; }
.pe-tdd-stat-bar { display: flex; width: 100%; height: 0.5rem; margin-top: 1.5rem; background: var(--pe-rule); }
.pe-tdd-stat-bar span { display: block; height: 100%; background: var(--pe-green); }
.pe-tdd-stat-note {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--pe-rule);
	color: var(--pe-soft);
	font-size: var(--pe-copy);
	line-height: 1.625;
}

/* tdd-risk-grid */
.pe-tdd-risks.pe-space--lg { margin-top: 5rem; }
.pe-tdd-risks-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2rem;
}
.pe-tdd-risks-head .pe-eyebrow { margin-bottom: 0; }
.pe-tdd-risks-count { display: none; }
@media (min-width: 768px) {
	.pe-tdd-risks-count { display: block; }
}
.pe-tdd-risks-grid {
	display: grid;
	gap: 1px;
	border: 1px solid var(--pe-rule);
	background: var(--pe-rule);
}
@media (min-width: 768px) {
	.pe-tdd-risks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.pe-tdd-risks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pe-tdd-risk {
	position: relative;
	overflow: hidden;
	padding: 2rem;
	background: var(--pe-paper);
	transition: background-color 0.3s;
}
.pe-tdd-risk:hover { background: var(--pe-ink); }
.pe-tdd-risk-big {
	position: absolute;
	top: -1.5rem;
	right: -0.5rem;
	color: color-mix(in srgb, var(--pe-ink) 5%, transparent);
	font-size: 7rem;
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1;
	pointer-events: none;
	transition: color 0.3s;
}
.pe-tdd-risk:hover .pe-tdd-risk-big { color: color-mix(in srgb, var(--pe-green) 15%, transparent); }
.pe-tdd-risk-code { position: relative; display: flex; align-items: center; gap: 0.75rem; }
.pe-tdd-risk-dot { width: 0.5rem; height: 0.5rem; background: var(--pe-green); }
.pe-tdd-risk-title {
	position: relative;
	margin-top: 1.5rem;
	font-size: 1.25rem;
	line-height: 1.4;
	transition: color 0.3s;
}
.pe-tdd-risk-body {
	position: relative;
	margin-top: 0.75rem;
	color: var(--pe-soft);
	font-size: var(--pe-copy);
	line-height: 1.625;
	transition: color 0.3s;
}
.pe-tdd-risk:hover .pe-tdd-risk-title { color: var(--pe-paper); }
.pe-tdd-risk:hover .pe-tdd-risk-body { color: color-mix(in srgb, var(--pe-paper) 70%, transparent); }
.pe-tdd-risk-rule {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--pe-green);
	transition: width 0.5s;
}
.pe-tdd-risk:hover .pe-tdd-risk-rule { width: 100%; }

/* tdd-output-panel */
.pe-tdd-output {
	display: grid;
	gap: 2rem;
	padding: 2rem;
}
.pe-tdd-output.pe-space--sm { margin-top: 2.5rem; }
@media (min-width: 768px) {
	.pe-tdd-output { padding: 2.5rem; }
}
@media (min-width: 1024px) {
	.pe-tdd-output { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}
.pe-tdd-output-text { margin-top: 0.75rem; font-size: 1.25rem; line-height: 1.375; }
@media (min-width: 768px) {
	.pe-tdd-output-text { font-size: 1.5rem; }
}
.pe-tdd-output-cells {
	display: grid;
	gap: 1px;
	background: color-mix(in srgb, var(--rv-white) 15%, transparent);
}
@media (min-width: 640px) {
	.pe-tdd-output-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pe-tdd-output-cell { padding: 1.5rem; background: var(--pe-bg); }
.pe-tdd-output-n { color: color-mix(in srgb, var(--rv-white) 50%, transparent); }
.pe-tdd-output-word,
.pe-tdd-output-accent { font-size: 1.125rem; line-height: 1.55; }
.pe-tdd-output-word { margin-top: 0.75rem; }
.pe-tdd-output-accent { color: var(--pe-green); font-weight: 600; }

/* tdd-area-list */
.pe-tdd-areas { border-top: 1px dashed var(--pe-rule); }
.pe-tdd-area {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 1.5rem;
	padding-block: 2.25rem;
	border-bottom: 1px solid var(--pe-rule);
}
@media (min-width: 768px) {
	.pe-tdd-area { grid-template-columns: 4.5rem minmax(0, 1fr); }
}
.pe-tdd-area-glyph {
	width: 3.5rem;
	height: 2.25rem;
	margin-top: 0.125rem;
	color: var(--pe-green);
}
@media (min-width: 768px) {
	.pe-tdd-area-glyph { width: 4rem; }
}
.pe-tdd-area-axis { stroke: var(--pe-rule); }
.pe-tdd-area-title {
	margin-top: 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}
@media (min-width: 768px) {
	.pe-tdd-area-title { font-size: 1.875rem; }
}
.pe-tdd-area-body {
	max-width: 36rem;
	margin-top: 1.25rem;
	color: var(--pe-soft);
	line-height: 1.625;
}

/* tdd-checklist */
.pe-tdd-checklist { display: grid; gap: 2.5rem; }
.pe-tdd-checkgroup { border-top: 1px solid var(--pe-fg); }
.pe-tdd-checkgroup-label { padding-block: 0.875rem; border-bottom: 1px solid var(--pe-rule); }
.pe-tdd-checkareas { display: grid; column-gap: 1.75rem; }
@media (min-width: 640px) {
	.pe-tdd-checkareas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.pe-tdd-checkareas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pe-tdd-checkarea { padding-block: 1.75rem 2rem; }
/* Stacked on a phone, a dashed rule keeps one area's checks off the next. */
@media (max-width: 639px) {
	.pe-tdd-checkarea + .pe-tdd-checkarea { border-top: 1px dashed var(--pe-rule); }
}
.pe-tdd-checkarea-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
/* Two lines held for every title on desktop so the four lists start level. */
@media (min-width: 1024px) {
	.pe-tdd-checkarea-title { min-height: 2.6em; }
}
.pe-tdd-checks { display: grid; gap: 0.75rem; margin-top: 1rem; }
.pe-tdd-checks li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--pe-soft);
	font-size: var(--pe-copy);
	line-height: 1.5;
}
.pe-tdd-check-box {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin-top: 0.25rem;
	border: 1.5px solid var(--rv-green-deep);
	background: var(--pe-card);
}

/* tdd-deliverables */
.pe-tdd-deliv { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
	.pe-tdd-deliv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.pe-tdd-deliv .pe-eyebrow { margin-bottom: 1rem; }
.pe-tdd-deliv-body { color: var(--pe-soft); line-height: 1.5; }
.pe-tdd-deliv-list { border: 1px solid var(--pe-rule); background: var(--pe-card); }
.pe-tdd-deliv-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	font-size: var(--pe-copy);
}
.pe-tdd-deliv-list li + li { border-top: 1px solid var(--pe-rule); }

/* Shared blocks, page tweaks. The "What investors receive" panels have no
   tag, so their H3 opens the panel. */
.pe--private-equity-technology-due-diligence .pe-model > .pe-h3:first-child { margin-top: 0; }

/* The export keeps the proof cards two across on phones. */
@media (max-width: 639px) {
	.pe--private-equity-technology-due-diligence .pe-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pe--private-equity-technology-due-diligence .pe-case--lead { grid-column: span 2; }
}
