/* ============================================================
   Master Theses Modal Block – Trigger line
   ============================================================ */

.wp-block-cdres-master-theses-modal .mtm-line {
	margin: 0;
	line-height: 1.8;
}

/* Any <a> inside the text triggers the modal – style like a dotted underline */
.wp-block-cdres-master-theses-modal .mtm-line a {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	cursor: pointer;
	transition: text-decoration-style 0.15s ease;
}

.wp-block-cdres-master-theses-modal .mtm-line a:hover {
	text-decoration-style: solid;
}


/* ============================================================
   Bottom Sheet – Thesis grid modifier
   ============================================================ */

/* Wider inner container to fit the 3-col thesis grid */
.ts-sheet--theses .ts-sheet__inner--theses {
	max-width: 1100px;
	padding: 24px 32px 56px;
}

@media (max-width: 767px) {
	.ts-sheet--theses .ts-sheet__inner--theses {
		padding: 16px 20px 48px;
	}
}

/* Fix equal-width columns inside the modal.
   minmax(0, 1fr) overrides the browser default min-width:auto on grid items,
   which prevents long thesis titles from pushing one column wider. */
.ts-sheet--theses .wp-block-cdres-master-theses__grid {
	grid-template-columns: 1fr;
}

/* A4 portrait ratio (210 × 297 mm) for cards inside the modal.
   Overrides the fixed min-height from the base block CSS. */
.ts-sheet--theses .wp-block-cdres-master-theses__card {
	min-height: unset;
	aspect-ratio: 210 / 297;
}

@media (min-width: 576px) {
	.ts-sheet--theses .wp-block-cdres-master-theses__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.ts-sheet--theses .wp-block-cdres-master-theses__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
