/* FT Medical Reviewer Byline — inherits the theme's fonts and text colour. */
.ftmr-bb-wrap { margin: 0 20px; }
.ftmr-bb-wrap .ftmr-byline { margin: 14px 0 0; }
.ftmr-byline {
	--ftmr-accent: #00a99d;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5em;
	margin: .75rem 0 1.25rem;
	font-size: 14px;
	line-height: 1.4;
	color: inherit;
}
.ftmr-byline__photo {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	margin: 0 !important;
}
.ftmr-byline__label { color: #555; }
.ftmr-byline__name {
	all: unset;
	cursor: pointer;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: underline;
	text-decoration-color: rgba(0, 169, 157, .45);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: text-decoration-color .15s ease;
}
.ftmr-byline__name:hover { text-decoration-color: var(--ftmr-accent); }
.ftmr-byline__name:focus-visible { outline: 2px solid var(--ftmr-accent); outline-offset: 3px; border-radius: 2px; }

/* Modal */
.ftmr-modal {
	--ftmr-accent: #00a99d;
	width: min(1000px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #222;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
	overflow: auto;
}
.ftmr-modal::backdrop { background: rgba(20, 20, 20, .55); }
.ftmr-modal[open] { animation: ftmr-in .2s ease-out; }
@keyframes ftmr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ftmr-modal__inner {
	position: relative;
	display: flex;
	gap: 48px;
	padding: 64px 72px 56px;
}
.ftmr-modal__media { flex: 0 0 240px; }
.ftmr-modal__photo {
	display: block;
	width: 240px !important;
	height: 240px !important;
	object-fit: cover;
	border-radius: 12px;
	margin: 0 !important;
}
.ftmr-modal__body { flex: 1 1 auto; min-width: 0; }
.ftmr-modal__tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 4px;
	background: #e5f6f5;
	color: #00706a;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ftmr-modal__name {
	margin: 18px 0 16px !important;
	font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
	line-height: 1.15 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #1a1a1a;
}
.ftmr-modal__bio { font-size: 15px; line-height: 1.75; color: #444; }
.ftmr-modal__bio > *:first-child { margin-top: 0; }
.ftmr-modal__bio h2, .ftmr-modal__bio h3 {
	font-size: 1rem !important;
	margin: 1.4em 0 .4em !important;
	color: #1a1a1a;
	text-transform: none !important;
	letter-spacing: normal !important;
}
.ftmr-modal__bio ul { margin: 0 0 1em 1.2em; padding: 0; }
.ftmr-modal__bio li { margin: .25em 0; }

.ftmr-modal__close {
	all: unset;
	position: absolute;
	top: 20px;
	right: 24px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 32px;
	line-height: 1;
	color: #777;
	cursor: pointer;
}
.ftmr-modal__close:hover { background: #f2f2f2; color: #222; }
.ftmr-modal__close:focus-visible { outline: 2px solid var(--ftmr-accent); }

html.ftmr-lock { overflow: hidden; }

@media (max-width: 720px) {
	.ftmr-modal__inner { flex-direction: column; gap: 20px; padding: 56px 24px 32px; }
	.ftmr-modal__media { flex-basis: auto; }
	.ftmr-modal__photo { width: 120px !important; height: 120px !important; }
}
@media (prefers-reduced-motion: reduce) { .ftmr-modal[open] { animation: none; } }

/* Guard against theme-wide button styles (e.g. button:focus { position: relative; background: … }). */
.ftmr-byline .ftmr-byline__name,
.ftmr-byline .ftmr-byline__name:hover,
.ftmr-byline .ftmr-byline__name:focus,
.ftmr-byline .ftmr-byline__name:active {
	position: static;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	color: #1a1a1a;
	font-size: inherit;
	line-height: inherit;
}
.ftmr-modal .ftmr-modal__close,
.ftmr-modal .ftmr-modal__close:focus,
.ftmr-modal .ftmr-modal__close:active {
	position: absolute;
	top: 16px;
	right: 16px;
	left: auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: #777;
	font-size: 32px;
	line-height: 1;
}
.ftmr-modal .ftmr-modal__close:hover { background: #f2f2f2; color: #222; }
.ftmr-modal .ftmr-modal__bio h2,
.ftmr-modal .ftmr-modal__bio h3 {
	font-size: 17px !important;
	font-weight: 500 !important;
	margin: 1.5em 0 .5em !important;
}
