/* The dialog design can be changed independently of the trigger and cards. */
.tpc-element .tpc-dialog {
	position:fixed; inset:0; box-sizing:border-box; width:min(var(--tpc-modal-width),calc(100% - 2rem)); max-width:none; max-height:82vh; max-height:82dvh;
	margin:auto; padding:min(var(--tpc-modal-pad),5vw); border:1px solid var(--tpc-modal-line); border-radius:var(--tpc-modal-radius);
	background:var(--tpc-modal-bg); color:var(--tpc-modal-ink); overflow:auto; overscroll-behavior:contain;
	font:400 var(--tpc-modal-size)/1.4 var(--tpc-modal-font); text-align:left; overflow-wrap:anywhere;
	opacity:0; transform:translateY(8px);
	transition:opacity .2s,transform .24s cubic-bezier(.22,1,.36,1),display .24s allow-discrete,overlay .24s allow-discrete;
}
.tpc-element .tpc-dialog[open] { opacity:1; transform:none; }
.tpc-dialog::backdrop { background:transparent; transition:background-color .22s,display .24s allow-discrete,overlay .24s allow-discrete; }
.tpc-dialog[open]::backdrop { background:rgb(45 29 19 / .35); background:color-mix(in srgb,var(--tpc-overlay) var(--tpc-overlay-strength),transparent); }
@starting-style {
	.tpc-element .tpc-dialog[open] { opacity:0; transform:translateY(8px); }
	.tpc-dialog[open]::backdrop { background:transparent; }
}
.tpc-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:.8rem; margin:0 0 1.15em; }
.tpc-element .tpc-dialog-head h2 { margin:0; font:750 var(--tpc-modal-title-size)/1.1 var(--tpc-modal-font); letter-spacing:-.04em; color:inherit; }
.tpc-close { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--tpc-modal-line); border-radius:50%; background:transparent; color:inherit; cursor:pointer; font:400 1.5rem/1 Arial,sans-serif; }
.tpc-element .tpc-table { width:100%; margin:0; table-layout:fixed; border-collapse:collapse; color:inherit; font:inherit; text-align:left; }
.tpc-element .tpc-table th,.tpc-element .tpc-table td { padding:var(--tpc-row-pad) .5em; border:0; border-bottom:1px solid var(--tpc-modal-line); vertical-align:top; overflow-wrap:anywhere; text-align:left; color:inherit; }
.tpc-table th:first-child { width:24%; }
.tpc-element .tpc-table thead th:nth-child(2) { color:var(--tpc-std-head-ink); background:var(--tpc-std-head-bg); }
.tpc-element .tpc-table thead th:nth-child(3) { color:var(--tpc-prod-head-ink); background:var(--tpc-prod-head-bg); }
.tpc-element .tpc-dialog-copy { margin:1em 0; color:inherit; font:inherit; }
@media (max-width:34rem) {
	.tpc-element .tpc-dialog[data-mobile="sheet"] { width:100%; max-height:88dvh; margin:auto 0 0; border-radius:var(--tpc-modal-radius) var(--tpc-modal-radius) 0 0; padding-bottom:max(min(var(--tpc-modal-pad),5vw),env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { .tpc-element .tpc-dialog,.tpc-dialog::backdrop { transition:none; } }

/* The mobile reveal animates the panel outline. Its text stays at reading size. */
@media (max-width:36rem) {
	.tpc-element .tpc-dialog[data-morph] { transition:none; transform:none; }
	.tpc-dialog[data-morph][open]:not([data-closing]) > * {
		animation:tpc-comparison-content 340ms ease-out both;
	}
	.tpc-dialog[data-closing]::backdrop { background:transparent; }
}
@keyframes tpc-comparison-content {
	0%,25% { opacity:0; }
	100% { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
	.tpc-dialog[data-morph][open]:not([data-closing]) > * { animation:none; }
}
